--为T_PDM_MFTBOMENTRY添加FENTRYMATERIALID序列号
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PDM_MFTBOMENTRY' AND KSQL_COL_NAME ='FENTRYMATID') 
ALTER TABLE T_PDM_MFTBOMENTRY ADD (FENTRYMATID BIGINT DEFAULT 0 NOT NULL);

--为T_PDM_MFTBOM添加FMATERIAL物料
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PDM_MFTBOM' AND KSQL_COL_NAME ='FMATID') 
ALTER TABLE T_PDM_MFTBOM ADD (FMATID BIGINT DEFAULT 0 NOT NULL);