diff --git a/migration/340s-trunk/172_moreforeignkeys.sql b/migration/340s-trunk/172_moreforeignkeys.sql new file mode 100644 index 0000000000..6a6fdc75c8 --- /dev/null +++ b/migration/340s-trunk/172_moreforeignkeys.sql @@ -0,0 +1,6 @@ +ALTER TABLE PP_MRP ADD (CONSTRAINT DDOrder_PPMRP FOREIGN KEY (DD_Order_ID) REFERENCES DD_ORDER); + +ALTER TABLE PP_MRP ADD (CONSTRAINT DDOrderLine_PPMRP FOREIGN KEY (DD_OrderLine_ID) REFERENCES DD_ORDERLINE); + +ALTER TABLE PP_ORDER_BOMLINE ADD (CONSTRAINT ADUser_PPOrderBOMLine FOREIGN KEY (AD_User_ID) REFERENCES AD_USER); + diff --git a/migration/340s-trunk/postgresql/172_moreforeignkeys.sql b/migration/340s-trunk/postgresql/172_moreforeignkeys.sql new file mode 100644 index 0000000000..537fe2838b --- /dev/null +++ b/migration/340s-trunk/postgresql/172_moreforeignkeys.sql @@ -0,0 +1,6 @@ +ALTER TABLE PP_MRP ADD CONSTRAINT DDOrder_PPMRP FOREIGN KEY (DD_Order_ID) REFERENCES DD_ORDER; + +ALTER TABLE PP_MRP ADD CONSTRAINT DDOrderLine_PPMRP FOREIGN KEY (DD_OrderLine_ID) REFERENCES DD_ORDERLINE; + +ALTER TABLE PP_ORDER_BOMLINE ADD CONSTRAINT ADUser_PPOrderBOMLine FOREIGN KEY (AD_User_ID) REFERENCES AD_USER; +