/**Begin D:\utils\PDM_UPGRADE\PDM_UPGRADE\PDM1\HRCS_constraint.sql **/
EXEC P_ALTERPK 'PK_HRCS_WARNSCENE', 'T_HRCS_WARNSCENE', 'FID', '1';

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


EXEC P_ALTERPK 'PK_HRCS_WARNSCENE_L', 'T_HRCS_WARNSCENE_L', 'FPKID', '1';

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



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