--todo 8042

ALTER TABLE STATEMENTLINE DROP CONSTRAINT STATEMENTLINE_INVOICEHEADER_ID;

ALTER TABLE STATEMENTLINE 
       ADD  ( CONSTRAINT STATEMENTLINE_INVOICEHEADER_ID
              FOREIGN KEY (INVOICEHEADER_ID)
                             REFERENCES INVOICEHEADER
                             ON DELETE CASCADE) ;