/**Begin D:\PDM_UPGRADE\PDM1\TBO_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TBO_PLINFO' AND KSQL_COL_NAME IN ('FBIZRECORDID')) 
 ALTER TABLE T_TBO_PLINFO ADD (FBIZRECORDID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TBO_PLINFO' AND KSQL_COL_NAME IN ('FSWAPDIR')) 
 ALTER TABLE T_TBO_PLINFO ADD (FSWAPDIR NVARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TBO_PLINFO' AND KSQL_COL_NAME IN ('FBIZBILLNO')) 
 ALTER TABLE T_TBO_PLINFO ADD (FBIZBILLNO NVARCHAR(80) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TBO_PLINFO' AND KSQL_COL_NAME IN ('FBIZOP')) 
 ALTER TABLE T_TBO_PLINFO ADD (FBIZOP NVARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TBO_PLINFO' AND KSQL_COL_NAME IN ('FSRCBIZBILLID')) 
 ALTER TABLE T_TBO_PLINFO ADD (FSRCBIZBILLID BIGINT DEFAULT 0 NOT NULL );

/**End D:\PDM_UPGRADE\PDM1\TBO_table.sql **/
