BF [ 2542949 ] Constraints missing in HR&Payrol

https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2542949&group_id=176962
This commit is contained in:
teo_sarca 2009-01-30 09:31:59 +00:00
parent ef1b9a5fd7
commit ba6001b42f
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,9 @@
ALTER TABLE HR_Department ADD (CONSTRAINT CActivity_HRDepartment FOREIGN KEY (C_Activity_ID) REFERENCES C_Activity);
ALTER TABLE HR_Movement ADD (CONSTRAINT ADOrgTrx_HRMovement FOREIGN KEY (AD_OrgTrx_ID) REFERENCES AD_Org);
ALTER TABLE HR_Movement ADD (CONSTRAINT CCampaign_HRMovement FOREIGN KEY (C_Campaign_ID) REFERENCES C_Campaign);
ALTER TABLE HR_Movement ADD (CONSTRAINT User1_HRMovement FOREIGN KEY (User1_ID) REFERENCES C_ElementValue);
ALTER TABLE HR_Movement ADD (CONSTRAINT User2_HRMovement FOREIGN KEY (User2_ID) REFERENCES C_ElementValue);
ALTER TABLE HR_Movement ADD (CONSTRAINT CProject_HRMovement FOREIGN KEY (C_Project_ID) REFERENCES C_Project);
ALTER TABLE HR_Movement ADD (CONSTRAINT CProjectPhase_HRMovement FOREIGN KEY (C_ProjectPhase_ID) REFERENCES C_ProjectPhase);
ALTER TABLE HR_Movement ADD (CONSTRAINT CProjectTask_HRMovement FOREIGN KEY (C_ProjectTask_ID) REFERENCES C_ProjectTask);
ALTER TABLE HR_Movement ADD (CONSTRAINT PPOrderNode_HRMovement FOREIGN KEY (PP_Order_Node_ID) REFERENCES PP_Order_Node);

View File

@ -0,0 +1,9 @@
ALTER TABLE HR_Department ADD CONSTRAINT Activity_HRDepartment FOREIGN KEY (C_Activity_ID) REFERENCES C_Activity;
ALTER TABLE HR_Movement ADD CONSTRAINT ADOrgTrx_HRMovement FOREIGN KEY (AD_OrgTrx_ID) REFERENCES AD_Org;
ALTER TABLE HR_Movement ADD CONSTRAINT CCampaign_HRMovement FOREIGN KEY (C_Campaign_ID) REFERENCES C_Campaign;
ALTER TABLE HR_Movement ADD CONSTRAINT User1_HRMovement FOREIGN KEY (User1_ID) REFERENCES C_ElementValue;
ALTER TABLE HR_Movement ADD CONSTRAINT User2_HRMovement FOREIGN KEY (User2_ID) REFERENCES C_ElementValue;
ALTER TABLE HR_Movement ADD CONSTRAINT CProject_HRMovement FOREIGN KEY (C_Project_ID) REFERENCES C_Project;
ALTER TABLE HR_Movement ADD CONSTRAINT CProjectPhase_HRMovement FOREIGN KEY (C_ProjectPhase_ID) REFERENCES C_ProjectPhase;
ALTER TABLE HR_Movement ADD CONSTRAINT CProjectTask_HRMovement FOREIGN KEY (C_ProjectTask_ID) REFERENCES C_ProjectTask;
ALTER TABLE HR_Movement ADD CONSTRAINT PPOrderNode_HRMovement FOREIGN KEY (PP_Order_Node_ID) REFERENCES PP_Order_Node;