/**Begin D:\PDM_UPGRADE\PDM1\HRIC_constraint.sql **/
 EXEC P_ALTERPK 'PK_HRIC_BIZSUBAREA', 'T_HRIC_BIZSUBAREA', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_HRIC_BIZSUBAREA_L', 'T_HRIC_BIZSUBAREA_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_HRIC_BIZAPPSCOPE', 'T_HRIC_BIZAPPSCOPE', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRIC_BIZAPPSCOPE') CREATE INDEX IDX_HRIC_BIZAPPSCOPE ON T_HRIC_BIZAPPSCOPE ( FID ,FBASEDATAID );



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