UPDATE TBDD_BASECONFIG SET DB_VERSION = '1.9.8.1';
GO
IF NOT EXISTS(SELECT 1 FROM sys.columns 
          WHERE Name = N'GENERAL_VIEWER'
          AND Object_ID = Object_ID(N'TBDD_USER'))
BEGIN
    ALTER TABLE TBDD_USER
	ADD GENERAL_VIEWER VARCHAR(30)	NOT NULL	DEFAULT 'NONE';
END

IF NOT EXISTS(SELECT 1 FROM sys.columns 
          WHERE Name = N'WAN_ENVIRONMENT'
          AND Object_ID = Object_ID(N'TBDD_USER'))
BEGIN
    ALTER TABLE TBDD_USER
	ADD WAN_ENVIRONMENT BIT	NOT NULL	DEFAULT 0
END
