  -- 添加系统项目字段
  IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PMTS_WBS' AND KSQL_COL_NAME ='FSYSPROJECTID') 
  ALTER TABLE T_PMTS_WBS ADD (FSYSPROJECTID BIGINT DEFAULT 0 NOT NULL);
  -- 添加系统上级wbs
  IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PMTS_WBS' AND KSQL_COL_NAME ='FSYSPARENTWBSID') 
  ALTER TABLE T_PMTS_WBS ADD (FSYSPARENTWBSID BIGINT DEFAULT 0 NOT NULL);
  -- 添加系统最新发布版本
  IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PMTS_WBS' AND KSQL_COL_NAME ='FSYSRELEASEWBSID') 
  ALTER TABLE T_PMTS_WBS ADD (FSYSRELEASEWBSID BIGINT DEFAULT 0 NOT NULL);

