
--Migration_RCCP_20240821_112729.txt
ALTER TABLE [dbo].[AppTemplates] ADD [Name] [nvarchar](max)
ALTER TABLE [dbo].[AppTemplates] ADD [Url] [nvarchar](max)
ALTER TABLE [dbo].[AppTemplates] ADD [LicenceId] [uniqueidentifier] NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000'
DECLARE @var0 nvarchar(128)
SELECT @var0 = name
FROM sys.default_constraints
WHERE parent_object_id = object_id(N'dbo.AppTemplates')
AND col_name(parent_object_id, parent_column_id) = 'Permission';
IF @var0 IS NOT NULL
    EXECUTE('ALTER TABLE [dbo].[AppTemplates] DROP CONSTRAINT [' + @var0 + ']')
ALTER TABLE [dbo].[AppTemplates] DROP COLUMN [Permission]
