
--Migration_RCCP_20251029_085518.txt
ALTER TABLE [dbo].[Rules] ADD [StatusLastUpdatedUtcDateTime] [datetime]
ALTER TABLE [dbo].[Rules] ADD [HealthCheckStatus] [nvarchar](max)
ALTER TABLE [dbo].[Rules] ADD [HealthCheckStatusLastUpdatedUtcDateTime] [datetime]
DECLARE @var0 nvarchar(128)
SELECT @var0 = name
FROM sys.default_constraints
WHERE parent_object_id = object_id(N'dbo.Rules')
AND col_name(parent_object_id, parent_column_id) = 'LastUpdatedUtcDateTime';
IF @var0 IS NOT NULL
    EXECUTE('ALTER TABLE [dbo].[Rules] DROP CONSTRAINT [' + @var0 + ']')
ALTER TABLE [dbo].[Rules] DROP COLUMN [LastUpdatedUtcDateTime]
