diff --git a/migration/340s-351a/147_create_missing_foreign_keys.sql b/migration/340s-351a/147_create_missing_foreign_keys.sql index 8cf3fa37fa..eb5c69d8be 100644 --- a/migration/340s-351a/147_create_missing_foreign_keys.sql +++ b/migration/340s-351a/147_create_missing_foreign_keys.sql @@ -88,7 +88,7 @@ ALTER TABLE AD_Package_Exp_Detail ADD (CONSTRAINT ADPrintFormat_ADPackageExpDeta ALTER TABLE AD_Package_Exp_Detail ADD (CONSTRAINT ADProcess_ADPackageExpDetail FOREIGN KEY (AD_Process_ID) REFERENCES AD_Process); -ALTER TABLE AD_Package_Exp_Detail ADD (CONSTRAINT ADReference_ADPackageExpDetail FOREIGN KEY (AD_Reference_ID) REFERENCES AD_Reference); +-- ALTER TABLE AD_Package_Exp_Detail ADD (CONSTRAINT ADReference_ADPackageExpDetail FOREIGN KEY (AD_Reference_ID) REFERENCES AD_Reference); ALTER TABLE AD_Package_Exp_Detail ADD (CONSTRAINT ADReportView_ADPackageExpDetai FOREIGN KEY (AD_ReportView_ID) REFERENCES AD_ReportView); @@ -375,4 +375,4 @@ ALTER TABLE W_Store ADD (CONSTRAINT CPaymentTerm_WStore FOREIGN KEY (C_PaymentTe ALTER TABLE W_Store ADD (CONSTRAINT MPriceList_WStore FOREIGN KEY (M_PriceList_ID) REFERENCES M_PriceList); -ALTER TABLE W_Store ADD (CONSTRAINT MWarehouse_WStore FOREIGN KEY (M_Warehouse_ID) REFERENCES M_Warehouse); \ No newline at end of file +ALTER TABLE W_Store ADD (CONSTRAINT MWarehouse_WStore FOREIGN KEY (M_Warehouse_ID) REFERENCES M_Warehouse); diff --git a/migration/340s-351a/147a_create_missing_foreign_keys.sql b/migration/340s-351a/147a_create_missing_foreign_keys.sql new file mode 100755 index 0000000000..a5ab1c103a --- /dev/null +++ b/migration/340s-351a/147a_create_missing_foreign_keys.sql @@ -0,0 +1 @@ +ALTER TABLE AD_Package_Exp_Detail ADD (CONSTRAINT ADReference_ADPackageExpDetail FOREIGN KEY (AD_Reference_ID) REFERENCES AD_Reference); diff --git a/migration/340s-351a/postgresql/147_create_missing_foreign_keys.sql b/migration/340s-351a/postgresql/147_create_missing_foreign_keys.sql index bd5ec6d086..2d34faeae9 100644 --- a/migration/340s-351a/postgresql/147_create_missing_foreign_keys.sql +++ b/migration/340s-351a/postgresql/147_create_missing_foreign_keys.sql @@ -88,7 +88,7 @@ ALTER TABLE AD_Package_Exp_Detail ADD CONSTRAINT ADPrintFormat_ADPackageExpDeta ALTER TABLE AD_Package_Exp_Detail ADD CONSTRAINT ADProcess_ADPackageExpDetail FOREIGN KEY (AD_Process_ID) REFERENCES AD_Process; -ALTER TABLE AD_Package_Exp_Detail ADD CONSTRAINT ADReference_ADPackageExpDetail FOREIGN KEY (AD_Reference_ID) REFERENCES AD_Reference; +-- ALTER TABLE AD_Package_Exp_Detail ADD CONSTRAINT ADReference_ADPackageExpDetail FOREIGN KEY (AD_Reference_ID) REFERENCES AD_Reference; ALTER TABLE AD_Package_Exp_Detail ADD CONSTRAINT ADReportView_ADPackageExpDetai FOREIGN KEY (AD_ReportView_ID) REFERENCES AD_ReportView; @@ -375,4 +375,4 @@ ALTER TABLE W_Store ADD CONSTRAINT CPaymentTerm_WStore FOREIGN KEY (C_PaymentTer ALTER TABLE W_Store ADD CONSTRAINT MPriceList_WStore FOREIGN KEY (M_PriceList_ID) REFERENCES M_PriceList; -ALTER TABLE W_Store ADD CONSTRAINT MWarehouse_WStore FOREIGN KEY (M_Warehouse_ID) REFERENCES M_Warehouse; \ No newline at end of file +ALTER TABLE W_Store ADD CONSTRAINT MWarehouse_WStore FOREIGN KEY (M_Warehouse_ID) REFERENCES M_Warehouse; diff --git a/migration/340s-351a/postgresql/147a_create_missing_foreign_keys.sql b/migration/340s-351a/postgresql/147a_create_missing_foreign_keys.sql new file mode 100755 index 0000000000..6ffd44cb47 --- /dev/null +++ b/migration/340s-351a/postgresql/147a_create_missing_foreign_keys.sql @@ -0,0 +1 @@ +ALTER TABLE AD_Package_Exp_Detail ADD CONSTRAINT ADReference_ADPackageExpDetail FOREIGN KEY (AD_Reference_ID) REFERENCES AD_Reference;