Use [REPLACE Cloud Assert Biling DB Name Here!!!]

DECLARE @var0 nvarchar(128)
SELECT @var0 = name
FROM sys.default_constraints
WHERE parent_object_id = object_id(N'dbo.BillingInvoices')
AND col_name(parent_object_id, parent_column_id) = 'ProcessingToFtpServerStatusString';
IF @var0 IS NOT NULL
    EXECUTE('ALTER TABLE [dbo].[BillingInvoices] DROP CONSTRAINT [' + @var0 + ']')
ALTER TABLE [dbo].[BillingInvoices] DROP COLUMN [ProcessingToFtpServerStatusString]
DECLARE @var1 nvarchar(128)
SELECT @var1 = name
FROM sys.default_constraints
WHERE parent_object_id = object_id(N'dbo.BillingInvoices')
AND col_name(parent_object_id, parent_column_id) = 'ProcessingToFtpServerStatus';
IF @var1 IS NOT NULL
    EXECUTE('ALTER TABLE [dbo].[BillingInvoices] DROP CONSTRAINT [' + @var1 + ']')
ALTER TABLE [dbo].[BillingInvoices] DROP COLUMN [ProcessingToFtpServerStatus]
DELETE [dbo].[__MigrationHistory]
WHERE (([MigrationId] = N'201704061354201_AddFtpProcessingStatusColumnInInvoiceTable') AND ([ContextKey] = N'CloudAssert.WAP.Billing.Persistence.Sql.Migrations.Configuration'))
