/**Begin C:\PDM_UPGRADE\PDM1\SRC_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_BIDDOCENTRY' AND KSQL_COL_NAME IN ('FBILLDATE')) 
 ALTER TABLE T_SRC_BIDDOCENTRY ADD (FBILLDATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_BIDDOCENTRY' AND KSQL_COL_NAME IN ('FTURNS')) 
 ALTER TABLE T_SRC_BIDDOCENTRY ADD (FTURNS VARCHAR(2) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_BIDDOCENTRY' AND KSQL_COL_NAME IN ('FSUPPLIERIP')) 
 ALTER TABLE T_SRC_BIDDOCENTRY ADD (FSUPPLIERIP NVARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_BIZITEM' AND KSQL_COL_NAME IN ('FISSYSPRESET')) 
 ALTER TABLE T_SRC_BIZITEM ADD (FISSYSPRESET CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SRC_BIZSCHEME' AND KSQL_COL_NAME IN ('FISSYSPRESET')) 
 ALTER TABLE T_SRC_BIZSCHEME ADD (FISSYSPRESET CHAR(1) DEFAULT '0' NOT NULL );

/**End C:\PDM_UPGRADE\PDM1\SRC_table.sql **/
