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

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_CONTROLRULEGROUPDIM' AND KSQL_COL_NAME IN ('FISMEMBERRANGE')) 
ALTER TABLE T_EB_CONTROLRULEGROUPDIM ADD (FISMEMBERRANGE CHAR(1) DEFAULT '0' NOT NULL);
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_EB_CONTROLRULEOBORANGE' AND KSQL_COL_NAME IN ('FOBODIM')) 
ALTER TABLE T_EB_CONTROLRULEOBORANGE ADD (FOBODIM NVARCHAR(50) DEFAULT ' ' NOT NULL);

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