--TD 22572

ALTER TABLE PACKINGNOTESTOCKTRANSACTION
  DROP CONSTRAINT PACKINGNOTESTOCKTRANSACTION_PA;
ALTER TABLE PACKINGNOTESTOCKTRANSACTION  
  ADD CONSTRAINT PACKINGNOTESTOCKTRANSACTION_PA FOREIGN KEY (PACKINGNOTELINE_ID)
  REFERENCES PACKINGNOTELINE(PACKINGNOTELINE_ID) ON DELETE CASCADE;