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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_EVENT_FEVENTTYPE') CREATE INDEX IDX_HRCS_EVENT_FEVENTTYPE ON T_HRCS_EVENT ( FEVENTTYPE );


 EXEC P_ALTERPK 'PK_HRCS_HISEVENTREL', 'T_HRCS_HISEVENTREL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_HISEVENTREL_FBUSIEVENTID') CREATE INDEX IDX_HRCS_HISEVENTREL_FBUSIEVENTID ON T_HRCS_HISEVENTREL ( FBUSIEVENTID );


 EXEC P_ALTERPK 'PK_HRCS_BUSIEVENTREL', 'T_HRCS_BUSIEVENTREL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRCS_BUSIEVENTREL_FBOID') CREATE INDEX IDX_HRCS_BUSIEVENTREL_FBOID ON T_HRCS_BUSIEVENTREL ( FBOID );



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