UPDATE TBDD_BASECONFIG SET DB_VERSION = '1.7.0.0'
GO

ALTER TABLE TBDD_USER ADD ATTR_CHAR1 VARCHAR(250)
GO
ALTER TABLE TBDD_USER ADD ATTR_CHAR2 VARCHAR(250)
GO
ALTER TABLE TBDD_USER ADD ATTR_CHAR3 VARCHAR(250)
GO
ALTER TABLE TBDD_USER ADD ATTR_CHAR4 VARCHAR(250)
GO
ALTER TABLE TBDD_USER ADD ATTR_CHAR5 VARCHAR(250)
GO
ALTER TABLE TBDD_USER ADD ATTR_CHAR6 VARCHAR(250)
GO
ALTER TABLE TBDD_USER ADD ATTR_CHAR7 VARCHAR(250)
GO
ALTER TABLE TBDD_USER ADD ATTR_CHAR8 VARCHAR(250)
GO
ALTER TABLE TBDD_USER ADD ATTR_CHAR9 VARCHAR(250)
GO
ALTER TABLE TBDD_USER ADD ATTR_CHAR10 VARCHAR(250)
GO
ALTER TABLE TBDD_USER ADD ATTR_CHAR11 VARCHAR(250)
GO
ALTER TABLE TBDD_USER ADD ATTR_CHAR12 VARCHAR(250)
GO
ALTER TABLE TBDD_USER ADD ATTR_CHAR13 VARCHAR(250)
GO
ALTER TABLE TBDD_USER ADD ATTR_CHAR14 VARCHAR(250)
GO
ALTER TABLE TBDD_USER ADD ATTR_CHAR15 VARCHAR(250)
GO
ALTER TABLE TBDD_USER ADD ATTR_BIT1 BIT NOT NULL DEFAULT 0
GO
ALTER TABLE TBDD_USER ADD ATTR_BIT2 BIT NOT NULL DEFAULT 0
GO
ALTER TABLE TBDD_USER ADD ATTR_BIT3 BIT NOT NULL DEFAULT 0
GO
ALTER TABLE TBDD_USER ADD ATTR_BIT4 BIT NOT NULL DEFAULT 0
GO

CREATE TABLE TBDD_EXTATTRIBUTES_MATCHING
(
	GUID           				INTEGER	IDENTITY(1,1),
	EXT_ATTRIBUTE				VARCHAR(250),
	TBDD_USER_COLUMN			VARCHAR(150),
	FB_SYS_KEY					VARCHAR(150) DEFAULT ''
	CONSTRAINT					PK_TBAD_EXTATTRIBUTES_MATCHING_GUID PRIMARY KEY(GUID)
)
GO