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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_ADMINGROUPFILE') CREATE INDEX IDX_HRCS_ADMINGROUPFILE ON T_HRCS_ADMINGROUPFILE ( FADMINGROUPID );


 EXEC P_ALTERPK 'PK_HRCS_ADMINGROUPORG', 'T_HRCS_ADMINGROUPORG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_ADMINGROUPORG') CREATE INDEX IDX_HRCS_ADMINGROUPORG ON T_HRCS_ADMINGROUPORG ( FADMINGROUPID );


 EXEC P_ALTERPK 'PK_HRCS_ADMINGROUPFUNC', 'T_HRCS_ADMINGROUPFUNC', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_ADMINGROUPFUNC') CREATE INDEX IDX_HRCS_ADMINGROUPFUNC ON T_HRCS_ADMINGROUPFUNC ( FADMINGROUPID );


 EXEC P_ALTERPK 'PK_HRCS_ADMINGROUPFUNCORG', 'T_HRCS_ADMINGROUPFUNCORG', 'FENTRYID', '1';

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



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