/**Begin D:\PDM_UPGRADE\PDM1\HRCS_constraint.sql **/
 EXEC P_ALTERPK 'PK_HRCS_PERMRELAT_L', 'T_HRCS_PERMRELAT_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_HRCS_ENTITYCTRL_L', 'T_HRCS_ENTITYCTRL_L', 'FPKID', '1';

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



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