
--Migration_RCCP_20251003_085518.txt
ALTER TABLE [dbo].[DeviceLiveViews] ADD [CreateDateTime] [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.DeviceLiveViews')
AND col_name(parent_object_id, parent_column_id) = 'CreateDateDate';
IF @var0 IS NOT NULL
    EXECUTE('ALTER TABLE [dbo].[DeviceLiveViews] DROP CONSTRAINT [' + @var0 + ']')
ALTER TABLE [dbo].[DeviceLiveViews] DROP COLUMN [CreateDateDate]
