]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
- Fixed bug in foreign key autogenerate where if the in-Python table
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 10 Jan 2015 21:32:17 +0000 (16:32 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 10 Jan 2015 21:32:17 +0000 (16:32 -0500)
commitd12da7c187c7121870216526fb89c782be5dd8fd
tree21a14b6661e2f876656d795bbf45daa6225762a9
parentb908cf9ed36b9e309afcbce197d1db63c2f13d53
- Fixed bug in foreign key autogenerate where if the in-Python table
used custom column keys (e.g. using the ``key='foo'`` kwarg to
``Column``), the comparison of existing foreign keys to those specified
in the metadata would fail, as the reflected table would not have
these keys available which to match up.  Foreign key comparison for
autogenerate now ensures it's looking at the database-side names
of the columns in all cases; this matches the same functionality
within unique constraints and indexes.
fixes #260
alembic/ddl/base.py
docs/build/changelog.rst
tests/test_autogen_fks.py
tests/test_autogen_indexes.py