]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
- The rendering of a :class:`~sqlalchemy.schema.ForeignKeyConstraint`
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 10 Jan 2015 22:08:03 +0000 (17:08 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 10 Jan 2015 22:08:03 +0000 (17:08 -0500)
commit00dae5f77e51c8cb4902939a5b85efdfb920c68b
treec934bfd58a88b22007d1232954419840b3bbec11
parentd12da7c187c7121870216526fb89c782be5dd8fd
- The rendering of a :class:`~sqlalchemy.schema.ForeignKeyConstraint`
will now ensure that the names of the source and target columns are
the database-side name of each column, and not the value of the
``.key`` attribute as may be set only on the Python side.
This is because Alembic generates the DDL for constraints
as standalone objects without the need to actually refer to an in-Python
:class:`~sqlalchemy.schema.Table` object, so there's no step that
would resolve these Python-only key names to database column names.
fixes #259
alembic/autogenerate/render.py
docs/build/changelog.rst
tests/test_autogen_render.py