UPDATE TBDD_MODULES SET DB_VERSION = '2.4.2.1' where NAME = 'Process-Manager';
GO
IF EXISTS(SELECT * FROM sys.columns 
          WHERE Name = N'SQL_PROFILE_MAIN_VIEW'
          AND Object_ID = Object_ID(N'dbo.TBPM_PROFILE'))
BEGIN
   ALTER TABLE TBPM_PROFILE	DROP COLUMN SQL_PROFILE_MAIN_VIEW;
END

IF EXISTS(SELECT * FROM sys.columns 
          WHERE Name = N'SQL_GROUP_COLOR'
          AND Object_ID = Object_ID(N'dbo.TBPM_PROFILE'))
BEGIN
   ALTER TABLE TBPM_PROFILE	DROP COLUMN SQL_GROUP_COLOR;
END

IF EXISTS(SELECT * FROM sys.columns 
          WHERE Name = N'SQL_GROUP_TEXT'
          AND Object_ID = Object_ID(N'dbo.TBPM_PROFILE'))
BEGIN
   ALTER TABLE TBPM_PROFILE	DROP COLUMN SQL_GROUP_TEXT;
END 