UPDATE TBDD_MODULES SET DB_VERSION = '2.2.1.0' where NAME = 'Process-Manager'
GO

ALTER TABLE TBPM_CONTROL_TABLE ADD LU_CAPTION VARCHAR(150) NOT NULL DEFAULT 'NONE'
GO
CREATE TABLE TBPM_VALIDATION_PROFILE_GROUP_USER
(
	GUID           			BIGINT		IDENTITY(1,1),
	PROFIL_ID				INTEGER		NOT NULL,
	DocID					BIGINT		NOT NULL,
	UserID					INTEGER		NOT NULL,
	ADDED_WHO				VARCHAR(100)		DEFAULT 'SYSTEM'	NOT NULL,
	ADDED_WHEN				DATETIME 		DEFAULT GETDATE(),
	CONSTRAINT	PK_TBPM_VALIDATION_PROFILE_GROUP_USER PRIMARY KEY(GUID),
	CONSTRAINT	UQ_TBPM_VALIDATION_PROFILE_GROUP_USER UNIQUE (PROFIL_ID,DocID,UserID)
)
GO