/**Begin D:\PDM_UPGRADE\PDM1\HRIC_constraint.sql **/
 EXEC p_AlterPK 'PK_HRIC_INITIMPORTTPENTRY', 'T_HRIC_INITIMPORTTPENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRIC_INITIMPORTTPENTRY') CREATE INDEX IDX_HRIC_INITIMPORTTPENTRY ON T_HRIC_INITIMPORTTPENTRY ( FID );


 EXEC P_ALTERPK 'PK_HRIC_INITINDUCTTP', 'T_HRIC_INITINDUCTTP', 'FID', '1';

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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRIC_INITINDUCTTP_SC') CREATE INDEX IDX_HRIC_INITINDUCTTP_SC ON T_HRIC_INITINDUCTTP ( FENTITYOBJSCOPE );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRIC_INITINDUCTTP_TA') CREATE INDEX IDX_HRIC_INITINDUCTTP_TA ON T_HRIC_INITINDUCTTP ( FINTERMEDIATETABLE );


 EXEC P_ALTERPK 'PK_HRIC_INITINDUCTTP_L', 'T_HRIC_INITINDUCTTP_L', 'FPKID', '1';

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



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