-- 项目参数新增字段：自动创建商机WBS
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_PROJECTPARAM' AND KSQL_COL_NAME ='FAUTOGENWBS') 
ALTER TABLE T_BD_PROJECTPARAM ADD (FAUTOGENWBS CHAR(1) DEFAULT '0' NOT NULL);