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