ALTER TABLE NFPREVALIDFIS_AUX DROP CONSTRAINT FKFIS00883NOTAFISC
/

ALTER TABLE NFPREVALIDFIS_AUX
    ADD CONSTRAINT FKFIS00883NOTAFISC FOREIGN KEY  (CDFILIAL, NRLANCTONF)
       REFERENCES NOTAFISCAL (CDFILIAL, NRLANCTONF) ON DELETE CASCADE
/

ALTER TABLE ERRONFPREVALID_AUX DROP CONSTRAINT FKFIS00889NOTAFISC
/

ALTER TABLE ERRONFPREVALID_AUX
    ADD CONSTRAINT FKFIS00889NOTAFISC FOREIGN KEY  (CDFILIAL, NRLANCTONF)
       REFERENCES NOTAFISCAL (CDFILIAL, NRLANCTONF) ON DELETE CASCADE
/