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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_HISSYNCERROR') CREATE INDEX IDX_HRCS_HISSYNCERROR ON T_HRCS_HISSYNCERROR ( FENTITYNUMBER );


 EXEC P_ALTERPK 'PK_HRCS_HISSYNCERROR_L', 'T_HRCS_HISSYNCERROR_L', 'FPKID', '1';

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



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