/**Begin D:\PDM_UPGRADE\PDM1\HRCS_constraint.sql **/
 EXEC P_ALTERPK 'PK_HRCS_ACTINFOSERVICE', 'T_HRCS_ACTINFOSERVICE', 'FDETAILID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_ACTINFOSERVICE') CREATE INDEX IDX_HRCS_ACTINFOSERVICE ON T_HRCS_ACTINFOSERVICE ( FENTRYID );


 EXEC P_ALTERPK 'PK_HRCS_ACTINFOSERVICE_L', 'T_HRCS_ACTINFOSERVICE_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_ACTINFOSERVICE_L') CREATE INDEX IDX_HRCS_ACTINFOSERVICE_L ON T_HRCS_ACTINFOSERVICE_L ( FDETAILID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_HRCS_ACTFIELDMAPPING', 'T_HRCS_ACTFIELDMAPPING', 'FDETAILID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_ACTFIELDMAPPING') CREATE INDEX IDX_HRCS_ACTFIELDMAPPING ON T_HRCS_ACTFIELDMAPPING ( FENTRYID );


 EXEC P_ALTERPK 'PK_HRCS_ACTFIELDMAPPING_L', 'T_HRCS_ACTFIELDMAPPING_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_ACTFIELDMAPPING_L') CREATE INDEX IDX_HRCS_ACTFIELDMAPPING_L ON T_HRCS_ACTFIELDMAPPING_L ( FDETAILID ,FLOCALEID );



/**End D:\PDM_UPGRADE\PDM1\HRCS_constraint.sql **/
