
--Migration_RCCP_20250319_161431.txt
DECLARE @var0 nvarchar(128)
SELECT @var0 = name
FROM sys.default_constraints
WHERE parent_object_id = object_id(N'dbo.FFCounterCameraHCs')
AND col_name(parent_object_id, parent_column_id) = 'LastBoot';
IF @var0 IS NOT NULL
    EXECUTE('ALTER TABLE [dbo].[FFCounterCameraHCs] DROP CONSTRAINT [' + @var0 + ']')
ALTER TABLE [dbo].[FFCounterCameraHCs] ALTER COLUMN [LastBoot] [datetime] NOT NULL

--Migration_RCCP_20250319_163946.txt
DECLARE @var0 nvarchar(128)
SELECT @var0 = name
FROM sys.default_constraints
WHERE parent_object_id = object_id(N'dbo.FFCounterCameraHCs')
AND col_name(parent_object_id, parent_column_id) = 'LastBoot';
IF @var0 IS NOT NULL
    EXECUTE('ALTER TABLE [dbo].[FFCounterCameraHCs] DROP CONSTRAINT [' + @var0 + ']')
ALTER TABLE [dbo].[FFCounterCameraHCs] ALTER COLUMN [LastBoot] [datetime] NULL
