-- 发票附件分录增加发票序列号字段
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEATTACHINFO' AND KSQL_COL_NAME IN ('FATTACHSERIALNO'))
ALTER TABLE  T_ER_INVOICEATTACHINFO ADD  ( FATTACHSERIALNO NVARCHAR(255) DEFAULT ' ' NOT NULL);

