
--Migration_RCCP_20230710_145140.txt
ALTER TABLE [dbo].[Events] ADD [EvaluationStartDate] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000'
ALTER TABLE [dbo].[Events] ADD [EvaluationEndDate] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000'
DECLARE @var0 nvarchar(128)
SELECT @var0 = name
FROM sys.default_constraints
WHERE parent_object_id = object_id(N'dbo.Events')
AND col_name(parent_object_id, parent_column_id) = 'EvalutationStartDate';
IF @var0 IS NOT NULL
    EXECUTE('ALTER TABLE [dbo].[Events] DROP CONSTRAINT [' + @var0 + ']')
ALTER TABLE [dbo].[Events] DROP COLUMN [EvalutationStartDate]
DECLARE @var1 nvarchar(128)
SELECT @var1 = name
FROM sys.default_constraints
WHERE parent_object_id = object_id(N'dbo.Events')
AND col_name(parent_object_id, parent_column_id) = 'EvalutationEndDate';
IF @var1 IS NOT NULL
    EXECUTE('ALTER TABLE [dbo].[Events] DROP CONSTRAINT [' + @var1 + ']')
ALTER TABLE [dbo].[Events] DROP COLUMN [EvalutationEndDate]
