]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Generalize uq -> uix dedupe logic
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 3 Jan 2017 21:24:42 +0000 (16:24 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 9 Jan 2017 19:26:53 +0000 (14:26 -0500)
commit8e2af237abbfde759890ba88846f210879fa6d57
tree371fd30f5a517953c0e73def7ee8d339c7c78f59
parentc5ac1cddd637b4ed69439fe20ba8406634a91f76
Generalize uq -> uix dedupe logic

Adjusted the logic originally added for :ticket:`276` that detects MySQL
unique constraints which are actually unique indexes to be generalized
for any dialect that has this behavior, for SQLAlchemy version 1.0 and
greater.  This is to allow for upcoming SQLAlchemy support for unique
constraint reflection for Oracle, which also has no dedicated concept of
"unique constraint" and instead establishes a unique index.

Change-Id: Ie5770aba36005ec8618bdc18bc4633413d37fc16
alembic/autogenerate/compare.py
alembic/ddl/mysql.py
docs/build/changelog.rst
tests/test_autogen_indexes.py