
--Migration_RCCP_20220823_174211.txt
DECLARE @var0 nvarchar(128)
SELECT @var0 = name
FROM sys.default_constraints
WHERE parent_object_id = object_id(N'dbo.SiteDiscrepancySummaries')
AND col_name(parent_object_id, parent_column_id) = 'DiscrepancyPercentage';
IF @var0 IS NOT NULL
    EXECUTE('ALTER TABLE [dbo].[SiteDiscrepancySummaries] DROP CONSTRAINT [' + @var0 + ']')
ALTER TABLE [dbo].[SiteDiscrepancySummaries] ALTER COLUMN [DiscrepancyPercentage] [real] NULL
DECLARE @var1 nvarchar(128)
SELECT @var1 = name
FROM sys.default_constraints
WHERE parent_object_id = object_id(N'dbo.SiteDiscrepancySummaries')
AND col_name(parent_object_id, parent_column_id) = 'IsBreached';
IF @var1 IS NOT NULL
    EXECUTE('ALTER TABLE [dbo].[SiteDiscrepancySummaries] DROP CONSTRAINT [' + @var1 + ']')
ALTER TABLE [dbo].[SiteDiscrepancySummaries] ALTER COLUMN [IsBreached] [bit] NULL
