From cda65c38b53ec0a0ffca0bcd30c675386e24c450 Mon Sep 17 00:00:00 2001 From: Chris Withers Date: Thu, 10 Feb 2011 17:02:42 +0000 Subject: [PATCH] try to get firebird stuff working with 0.6.6 --- migrate/changeset/databases/firebird.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/migrate/changeset/databases/firebird.py b/migrate/changeset/databases/firebird.py index b296fa5..675666c 100644 --- a/migrate/changeset/databases/firebird.py +++ b/migrate/changeset/databases/firebird.py @@ -40,7 +40,12 @@ class FBColumnDropper(ansisql.ANSIColumnDropper): # will be deleted only when the column its on # is deleted! continue - if cons.contains_column(column) and cons.name: + + if SQLA_06: + should_drop = column.name in cons.columns + else: + should_drop = cons.contains_column(column) and cons.name + if should_drop: self.start_alter_table(column) self.append("DROP CONSTRAINT ") self.append(self.preparer.format_constraint(cons))