/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\IM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_INVQUERYCONF' AND KSQL_COL_NAME ='FMATCHSHORTAGE') 
 ALTER TABLE T_IM_INVQUERYCONF ADD (FMATCHSHORTAGE NVARCHAR(50) DEFAULT 'popconfirm' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_INVQUERYCONF' AND KSQL_COL_NAME ='FSAVESHORTAGEROW') 
 ALTER TABLE T_IM_INVQUERYCONF ADD (FSAVESHORTAGEROW CHAR(1) DEFAULT '0' NOT NULL );
 --- drop column --------- 不允许删除表T_IM_SALOUTBILLENTRY的字段COLUMN_74，请恢复pdm中的字段 ------------------- 

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