ALTER TABLE PRATFILITIPOPRAT DROP CONSTRAINT FKPLA01149PRATFILI
/
ALTER TABLE PRATFILITIPOPRAT ADD
	CONSTRAINT FKPLA01156PRATO FOREIGN KEY (CDFILAUXPRAT, CDPRATO)
		REFERENCES PRATO (CDFILAUXPRAT, CDPRATO) ON DELETE CASCADE
/
CREATE INDEX FKPLA01156PRATO ON PRATFILITIPOPRAT (CDFILAUXPRAT, CDPRATO)
/
ALTER TABLE PRATFILITIPOPRAT ADD
	CONSTRAINT FKPLA01157FILIAL FOREIGN KEY (CDFILIAL)
		REFERENCES FILIAL (CDFILIAL) ON DELETE CASCADE