/**Begin D:\PDM_UPGRADE\PDM1\HRCS_constraint.sql **/
 EXEC P_ALTERPK 'PK_HRCS_ENCAPIREGISTER', 'T_HRCS_ENCAPIREGISTER', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_HRCS_ENCAPIREGISTER_L', 'T_HRCS_ENCAPIREGISTER_L', 'FPKID', '1';

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



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