/**Begin D:\PDM_UPGRADE\PDM1\HRCS_constraint.sql **/
 EXEC P_ALTERPK 'PK_HRCS_PROMPTRULEENTRY', 'T_HRCS_PROMPTRULEENTRY', 'FENTRYID', '1';

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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_ENTRY_FENTRYPROMPT') CREATE INDEX IDX_HRCS_ENTRY_FENTRYPROMPT ON T_HRCS_PROMPTRULEENTRY ( FENTRYPROMPT );

 EXEC P_ALTERPK 'PK_HRCS_PROMPTRULEENTRY_L', 'T_HRCS_PROMPTRULEENTRY_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_PROMPTRULEENTRY_L') CREATE INDEX IDX_HRCS_PROMPTRULEENTRY_L ON T_HRCS_PROMPTRULEENTRY_L ( FENTRYID ,FLOCALEID );



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