/**Begin D:\PDM_UPGRADE\PDM1\EB_constraint.sql **/

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_DATAGATHERDATAENTRY' AND KSQL_COL_NAME IN ('FISSUC')) 
 ALTER TABLE T_EB_DATAGATHERDATAENTRY ADD (FISSUC CHAR(2) DEFAULT '0' NOT NULL );
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_DATAGATHERDATAENTRY' AND KSQL_COL_NAME IN ('FVALUE')) 
 ALTER TABLE T_EB_DATAGATHERDATAENTRY ADD (FVALUE DECIMAL(19,6) DEFAULT 0 NOT NULL );

/**End D:\PDM_UPGRADE\PDM1\EB_constraint.sql **/