/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\IM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_IM_VALIDATORCFG_L', 'T_IM_VALIDATORCFG_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_T_IM_VALIDATORCFGENTRY', 'T_IM_VALIDATORCFGENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_IM_VALIDATORCFGENTRY_L', 'T_IM_VALIDATORCFGENTRY_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_IM_VALIDATORCFGENTRY_L_ID') CREATE INDEX IDX_IM_VALIDATORCFGENTRY_L_ID ON T_IM_VALIDATORCFGENTRY_L ( FENTRYID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_T_IM_VALIDATORCFG', 'T_IM_VALIDATORCFG', 'FID', '1';

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



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\IM_constraint.sql **/
