/**Begin C:\Users\rd_jin_gu\Documents\work\PDM_UPGRADE\PDM1\HRCS_constraint.sql **/
 EXEC P_ALTERPK 'PK_HRCS_MSGEXCEPTIONLOG', 'T_HRCS_MSGEXCEPTIONLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_MSGEXCEPTIONLOG') CREATE INDEX IDX_HRCS_MSGEXCEPTIONLOG ON T_HRCS_MSGEXCEPTIONLOG ( FNUMBER );


 EXEC P_ALTERPK 'PK_HRCS_MSGEXCEPLOGENTRY', 'T_HRCS_MSGEXCEPLOGENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_HRCS_MSGEXCEPTIONLOG_L', 'T_HRCS_MSGEXCEPTIONLOG_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_HRCS_MSGCENTERENTRY_L', 'T_HRCS_MSGCENTERENTRY_L', 'FPKID', '1';

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



/**End C:\Users\rd_jin_gu\Documents\work\PDM_UPGRADE\PDM1\HRCS_constraint.sql **/
