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

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


 EXEC P_ALTERPK 'PK_HRIC_IMPLITEM_L', 'T_HRIC_IMPLITEM_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_HRIC_FRONTIMPL', 'T_HRIC_FRONTIMPL', 'FPKID', '1';

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



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