ALTER TABLE FCT_ANEXOCONTRATO DROP CONSTRAINT FK_FCT_CONTRATO_ANEXOCONTRATO
/

ALTER TABLE FCT_ANEXOCONTRATO 
  ADD CONSTRAINT FKSM00380CONTRATOANEXOCONTRATO FOREIGN KEY (NRSEQCONTRATO)
      REFERENCES FCT_CONTRATO (NRSEQCONTRATO) ON DELETE CASCADE
/

CREATE INDEX SM00380_FK ON FCT_ANEXOCONTRATO (NRSEQCONTRATO ASC)
/ 