
--Migration_RCCP_20240429_123458.txt
ALTER TABLE [dbo].[UserDashboardReportSessions] ADD [DashboardReportId] [bigint] NOT NULL DEFAULT 0
DECLARE @var0 nvarchar(128)
SELECT @var0 = name
FROM sys.default_constraints
WHERE parent_object_id = object_id(N'dbo.UserDashboardReportSessions')
AND col_name(parent_object_id, parent_column_id) = 'DashboardReportGuid';
IF @var0 IS NOT NULL
    EXECUTE('ALTER TABLE [dbo].[UserDashboardReportSessions] DROP CONSTRAINT [' + @var0 + ']')
ALTER TABLE [dbo].[UserDashboardReportSessions] DROP COLUMN [DashboardReportGuid]
