Add new foreign keys

This commit is contained in:
Carlos Ruiz 2016-10-29 12:30:49 +02:00
parent 3c9b9f4ef8
commit 144cc95db8
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,9 @@
ALTER TABLE AD_Package_Imp_Detail ADD CONSTRAINT ADPackageImp_ADPackageImpDetai FOREIGN KEY (AD_Package_Imp_ID) REFERENCES AD_Package_Imp DEFERRABLE INITIALLY DEFERRED;
ALTER TABLE AD_Package_Imp_Detail ADD CONSTRAINT ADTable_ADPackageImpDetail FOREIGN KEY (AD_Table_ID) REFERENCES AD_Table DEFERRABLE INITIALLY DEFERRED;
ALTER TABLE AD_Password_History ADD CONSTRAINT ADUser_ADPasswordHistory FOREIGN KEY (AD_User_ID) REFERENCES AD_User DEFERRABLE INITIALLY DEFERRED;
SELECT register_migration_script('201610291223_NewFKs.sql') FROM dual
;

View File

@ -0,0 +1,9 @@
ALTER TABLE AD_Package_Imp_Detail ADD CONSTRAINT ADPackageImp_ADPackageImpDetai FOREIGN KEY (AD_Package_Imp_ID) REFERENCES AD_Package_Imp DEFERRABLE INITIALLY DEFERRED;
ALTER TABLE AD_Package_Imp_Detail ADD CONSTRAINT ADTable_ADPackageImpDetail FOREIGN KEY (AD_Table_ID) REFERENCES AD_Table DEFERRABLE INITIALLY DEFERRED;
ALTER TABLE AD_Password_History ADD CONSTRAINT ADUser_ADPasswordHistory FOREIGN KEY (AD_User_ID) REFERENCES AD_User DEFERRABLE INITIALLY DEFERRED;
SELECT register_migration_script('201610291223_NewFKs.sql') FROM dual
;