diff options
author | Thomas Goirand <thomas@goirand.fr> | 2014-03-02 13:07:39 +0800 |
---|---|---|
committer | Thomas Goirand <thomas@goirand.fr> | 2014-03-02 13:12:45 +0800 |
commit | 98ae3ac8321c40d0591f503c4f95a661cd101c51 (patch) | |
tree | 66cd5dda6d84bea9a6262412372eadff3112a46f | |
parent | 21fcdad0f485437d010e5743626c63ab3acdaec5 (diff) | |
download | sqalchemy-migrate-98ae3ac8321c40d0591f503c4f95a661cd101c51.tar.gz |
UniqueConstraint named and escaped twice
This patch fixes get_constraint_name in the
ANSIConstraintCommon class. It's part of the
fixes needed for SQLA 0.9.x compat.
Change-Id: I1f1648af48f459bd18f99bb42fa9a272186fb37d
-rw-r--r-- | migrate/changeset/ansisql.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migrate/changeset/ansisql.py b/migrate/changeset/ansisql.py index 495b197..c5ff405 100644 --- a/migrate/changeset/ansisql.py +++ b/migrate/changeset/ansisql.py @@ -275,7 +275,7 @@ class ANSIConstraintCommon(AlterTableVisitor): ret = cons.name else: ret = cons.name = cons.autoname() - return self.preparer.quote(ret, cons.quote) + return ret def visit_migrate_primary_key_constraint(self, *p, **k): self._visit_constraint(*p, **k) |