diff options
author | Chris Withers <chris@simplistix.co.uk> | 2011-02-10 17:02:42 +0000 |
---|---|---|
committer | Chris Withers <chris@simplistix.co.uk> | 2011-02-10 17:02:42 +0000 |
commit | cda65c38b53ec0a0ffca0bcd30c675386e24c450 (patch) | |
tree | 95d38861d689d180efa66bd57414c0e9ed4b98d3 /migrate/changeset/databases/firebird.py | |
parent | b5a02cb7cfc1b6c032df3fed7002e968c1932162 (diff) | |
download | sqlalchemy-migrate-cda65c38b53ec0a0ffca0bcd30c675386e24c450.tar.gz |
try to get firebird stuff working with 0.6.6
Diffstat (limited to 'migrate/changeset/databases/firebird.py')
-rw-r--r-- | migrate/changeset/databases/firebird.py | 7 |
1 files changed, 6 insertions, 1 deletions
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)) |