IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_MAINSUBMODEL' AND KSQL_COL_NAME IN ('FCONTROLDIM'))
ALTER TABLE T_EB_MAINSUBMODEL ADD (FCONTROLDIM CHAR(1) DEFAULT '0' NOT NULL);

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_MAINSUBMODEL' AND KSQL_COL_NAME IN ('FCONTROLTYPE'))
ALTER TABLE T_EB_MAINSUBMODEL ADD (FCONTROLTYPE VARCHAR(255) DEFAULT '' NOT NULL);
