/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\IM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_IM_WB_INTERFACECFG', 'T_IM_WB_INTERFACECFG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_IM_WB_INTERFACECFG' AND KSQL_INDNAME = 'IDX_IM_WB_INTERFACECFG_FTASKTYPE') CREATE INDEX IDX_IM_WB_INTERFACECFG_FTASKTYPE ON T_IM_WB_INTERFACECFG ( FTASKTYPE );

 EXEC P_ALTERPK 'PK_T_IM_WB_INTERFACECFG_L', 'T_IM_WB_INTERFACECFG_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_IM_WB_INTERFACECFG_L' AND KSQL_INDNAME = 'IDX_IM_WB_INTERFACECFG_L_FLOCAL') CREATE INDEX IDX_IM_WB_INTERFACECFG_L_FLOCAL ON T_IM_WB_INTERFACECFG_L ( FID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_T_IM_WB_INTERFACECFG_E', 'T_IM_WB_INTERFACECFG_E', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_IM_WB_INTERFACECFG_E' AND KSQL_INDNAME = 'IDX_IM_WB_INTERFACECFG_E_FID') CREATE INDEX IDX_IM_WB_INTERFACECFG_E_FID ON T_IM_WB_INTERFACECFG_E ( FID );


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