-- 项目变更单新增字段：附件数
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FMM_PROJECT_CHANGE' AND KSQL_COL_NAME ='FATTACHMENTCOUNTFIELD') 
ALTER TABLE T_FMM_PROJECT_CHANGE ADD (FATTACHMENTCOUNTFIELD INT DEFAULT 0 NOT NULL);