/**Begin D:\PDM_UPGRADE\PDM1\HRCS_constraint.sql **/
 EXEC P_ALTERPK 'PK_HRCS_TPLVARIABLECONFIG', 'T_HRCS_TPLVARIABLECONFIG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_TPLVARIABLECONFIG') CREATE INDEX IDX_HRCS_TPLVARIABLECONFIG ON T_HRCS_TPLVARIABLECONFIG ( FSONENTITY );


 EXEC P_ALTERPK 'PK_HRCS_TPLVARIABLECONFIG_L', 'T_HRCS_TPLVARIABLECONFIG_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_HRCS_TPLVARCONFIGENTRY', 'T_HRCS_TPLVARCONFIGENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_TPLVARCONFIGENTRY') CREATE INDEX IDX_HRCS_TPLVARCONFIGENTRY ON T_HRCS_TPLVARCONFIGENTRY ( FID );



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