/**Begin D:\idea_workspace\pdm\PDM1\HRCS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_HRCS_PROJEMPSTRATEGY', 'T_HRCS_PROJEMPSTRATEGY', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_PROJEMPSTRATEGY_ORG') CREATE INDEX IDX_HRCS_PROJEMPSTRATEGY_ORG ON T_HRCS_PROJEMPSTRATEGY ( FORGTEAMID );


 EXEC P_ALTERPK 'PK_T_HRCS_PROJEMPSTRENTRY', 'T_HRCS_PROJEMPSTRENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_PROJEMPSTRENTRY_ORG') CREATE INDEX IDX_HRCS_PROJEMPSTRENTRY_ORG ON T_HRCS_PROJEMPSTRENTRY ( FORGTEAMID );


 EXEC P_ALTERPK 'PK_T_HRCS_PROJORGSTRATEGY', 'T_HRCS_PROJORGSTRATEGY', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_PROJORGSTRATEGY_ORG') CREATE INDEX IDX_HRCS_PROJORGSTRATEGY_ORG ON T_HRCS_PROJORGSTRATEGY ( FORGTEAMID );


 EXEC P_ALTERPK 'PK_T_HRCS_PROJORGSTRENTRY', 'T_HRCS_PROJORGSTRENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_PROJORGSTRENTRY_ORG') CREATE INDEX IDX_HRCS_PROJORGSTRENTRY_ORG ON T_HRCS_PROJORGSTRENTRY ( FORGTEAMID );


 EXEC P_ALTERPK 'PK_T_HRCS_PROJEMPSTRATEGY_L', 'T_HRCS_PROJEMPSTRATEGY_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_PROJEMPSTRATEGY_L') CREATE INDEX IDX_HRCS_PROJEMPSTRATEGY_L ON T_HRCS_PROJEMPSTRATEGY_L ( FID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_T_HRCS_PROJORGSTRATEGY_L', 'T_HRCS_PROJORGSTRATEGY_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_PROJORGSTRATEGY_L') CREATE INDEX IDX_HRCS_PROJORGSTRATEGY_L ON T_HRCS_PROJORGSTRATEGY_L ( FID ,FLOCALEID );



/**End D:\idea_workspace\pdm\PDM1\HRCS_constraint.sql **/
