--TD 22572

ALTER TABLE DELIVERYVARIATIONS
  DROP CONSTRAINT DELVAR_PACKINGNOTE_ID;

ALTER TABLE DELIVERYVARIATIONS  
ADD CONSTRAINT DELVAR_PACKINGNOTE_ID FOREIGN KEY (PACKINGNOTE_ID) REFERENCES PACKINGNOTE (PACKINGNOTE_ID) ON DELETE SET NULL;
