/**Begin D:\lc_guan\PDM_workspace\PDM_UPGRADE\PDM1\HRCS_constraint.sql **/
 EXEC P_ALTERPK 'PK_HRCS_EARLYWARN_LOG', 'T_HRCS_EARLYWARN_LOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_EARLYWARN_LOG') CREATE INDEX IDX_HRCS_EARLYWARN_LOG ON T_HRCS_EARLYWARN_LOG ( FWARNSCHEMEID );


 EXEC P_ALTERPK 'PK_HRCS_EARLYWARNLOGENTRY', 'T_HRCS_EARLYWARNLOGENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_HRCS_EARLYWARNLOGENTRY_L', 'T_HRCS_EARLYWARNLOGENTRY_L', 'FPKID', '1';

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



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