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

INSERT INTO [dbo].[TBDD_SQL_COMMANDS]
           ([TITLE]
           ,[SQL_COMMAND]
           ,[ADDED_WHO])
     VALUES
           ('PM_PROFILES_USER'
           ,'select T.*  FROm VWPM_PROFILE_ACTIVE T where T.FILE_COUNT > 0 and T.GUID IN (SELECT PROFILE_ID FROm dbo.FNPM_GET_ACTIVE_PROFILES_USER (@USER_ID))'
           ,'DD')
GO

