IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_COSTBOM' AND KSQL_COL_NAME IN ('FKEYCOL'))
ALTER TABLE T_BD_COSTBOM ADD (FKEYCOL VARCHAR(200) DEFAULT ' ' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_VICEBOMENTRY' AND KSQL_COL_NAME IN ('FCOPENTRYKEYCOL'))
ALTER TABLE T_BD_VICEBOMENTRY ADD (FCOPENTRYKEYCOL VARCHAR(200) DEFAULT ' ' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_BOMENTRY' AND KSQL_COL_NAME IN ('FENTRYKEYCOL'))
ALTER TABLE T_BD_BOMENTRY ADD (FENTRYKEYCOL VARCHAR(200) DEFAULT ' ' NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BD_ROUTER' AND KSQL_COL_NAME IN ('FKEYCOL'))
ALTER TABLE T_BD_ROUTER ADD (FKEYCOL VARCHAR(200) DEFAULT ' ' NOT NULL );