/**Begin E:\app\DBA审批\202304\差量生成\PDM_UPGRADE\PDM1\SBD_table.sql **/
--套件销售字段
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_MATERIALSALINFO' AND KSQL_COL_NAME ='FPRICEMODEL') 
 ALTER TABLE T_BD_MATERIALSALINFO ADD (FPRICEMODEL VARCHAR(10) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_MATERIALSALINFO' AND KSQL_COL_NAME ='FKITTRANSFERMODEL') 
 ALTER TABLE T_BD_MATERIALSALINFO ADD (FKITTRANSFERMODEL VARCHAR(10) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_MATERIALSALINFO' AND KSQL_COL_NAME ='FKITRETURNMODEL') 
 ALTER TABLE T_BD_MATERIALSALINFO ADD (FKITRETURNMODEL VARCHAR(10) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_MATERIALSALINFO' AND KSQL_COL_NAME ='FKITSTRUCTCTL') 
 ALTER TABLE T_BD_MATERIALSALINFO ADD (FKITSTRUCTCTL VARCHAR(10) DEFAULT ' ' NOT NULL );

/**End E:\app\DBA审批\202304\差量生成\PDM_UPGRADE\PDM1\SBD_table.sql **/
