/**Begin D:\PDM_UPGRADE\PDM1\TM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TM_TRADE_R' AND KSQL_COL_NAME IN ('FOFFSET')) 
 ALTER TABLE T_TM_TRADE_R ADD (FOFFSET NVARCHAR(30) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TM_TRADE_F' AND KSQL_COL_NAME IN ('FISNEARDY')) 
 ALTER TABLE T_TM_TRADE_F ADD (FISNEARDY CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TM_CASHFLOW_BAK' AND KSQL_COL_NAME IN ('FBIZBILLPKID')) 
 ALTER TABLE T_TM_CASHFLOW_BAK ADD (FBIZBILLPKID NVARCHAR(80) DEFAULT ' ' NOT NULL );

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