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

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

