
--Migration_RCCP_20220517_155648.txt
ALTER TABLE [dbo].[AreaPlots] ADD [AreaID] [bigint] NOT NULL DEFAULT 0
DECLARE @var0 nvarchar(128)
SELECT @var0 = name
FROM sys.default_constraints
WHERE parent_object_id = object_id(N'dbo.AreaPlots')
AND col_name(parent_object_id, parent_column_id) = 'FFAreaID';
IF @var0 IS NOT NULL
    EXECUTE('ALTER TABLE [dbo].[AreaPlots] DROP CONSTRAINT [' + @var0 + ']')
ALTER TABLE [dbo].[AreaPlots] DROP COLUMN [FFAreaID]
