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

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

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