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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_MSGADMINSETTING') CREATE UNIQUE INDEX IDX_HRCS_MSGADMINSETTING ON T_HRCS_MSGADMINSETTING ( FADMINUSERID );


 EXEC P_ALTERPK 'PK_HRCS_WARNINGSET', 'T_HRCS_WARNINGSET', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_WARNINGSET') CREATE UNIQUE INDEX IDX_HRCS_WARNINGSET ON T_HRCS_WARNINGSET ( FNUMBER );


 EXEC P_ALTERPK 'PK_HRCS_WARNINGSET_L', 'T_HRCS_WARNINGSET_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_HRCS_MSGADMINSETTING_L', 'T_HRCS_MSGADMINSETTING_L', 'FPKID', '1';

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

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