--BOM添加配置号
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PDM_MFTBOM' AND KSQL_COL_NAME ='FCONFIGUREDCODEID') 
ALTER TABLE T_PDM_MFTBOM ADD (FCONFIGUREDCODEID BIGINT DEFAULT 0 NOT NULL);

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PDM_MFTBOMENTRY' AND KSQL_COL_NAME ='FENTRYCONFIGCODE') 
ALTER TABLE T_PDM_MFTBOMENTRY ADD (FENTRYCONFIGCODE BIGINT DEFAULT 0 NOT NULL);