/** 发票信息分录新增机票改签字段 **/

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEINFO' AND KSQL_COL_NAME ='FTICKETCHANGES') 
 ALTER TABLE T_ER_INVOICEINFO ADD (FTICKETCHANGES VARCHAR(30) DEFAULT ' ' NOT NULL );
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMINVOICEINFO' AND KSQL_COL_NAME ='FTICKETCHANGES') 
 ALTER TABLE T_ER_PUBREIMINVOICEINFO ADD (FTICKETCHANGES VARCHAR(30) DEFAULT ' ' NOT NULL );
 
/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\ER_table.sql **/
