/**Begin D:\PDM_UPGRADE\PDM1\EB_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_MODEL' AND KSQL_COL_NAME ='FVERSION') 
 ALTER TABLE T_EB_MODEL ADD (FVERSION BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_STRUCTOFENT' AND KSQL_COL_NAME ='FMERGERNODE') 
 ALTER TABLE T_EB_STRUCTOFENT ADD (FMERGERNODE CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_STRUCTOFENT' AND KSQL_COL_NAME ='FISOUTERORG') 
 ALTER TABLE T_EB_STRUCTOFENT ADD (FISOUTERORG CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_STRUCTOFENT' AND KSQL_COL_NAME ='FISOFFSETENTRY') 
 ALTER TABLE T_EB_STRUCTOFENT ADD (FISOFFSETENTRY CHAR(1) DEFAULT '0' NOT NULL );
 
/**End D:\PDM_UPGRADE\PDM1\EB_table.sql **/
