/**Begin D:\PDM_UPGRADE\PDM1\TM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TM_BUSINESSBILL_E' AND KSQL_COL_NAME IN ('FPAYPERIODDAYS'))
 ALTER TABLE T_TM_BUSINESSBILL_E ADD (FPAYPERIODDAYS INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TM_BUSINESSBILL_E' AND KSQL_COL_NAME IN ('FRECPERIODDAYS'))
 ALTER TABLE T_TM_BUSINESSBILL_E ADD (FRECPERIODDAYS INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_TM_BUSINESSBILL_E' AND KSQL_COL_NAME IN ('FFXQUOTETYPE'))
 ALTER TABLE T_TM_BUSINESSBILL_E ADD (FFXQUOTETYPE NVARCHAR(50) DEFAULT ' ' NOT NULL );

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