]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Resolve Postgresql implicit indexes via duplicates_constraint
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 25 Oct 2017 19:24:29 +0000 (15:24 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 25 Oct 2017 20:52:05 +0000 (16:52 -0400)
commit7426729882fec56fcd532ac8da41cf8e90b9bf32
tree2462f3415a9b5c2b4eddbef060e53cf56c2db8df
parentf03e349032dd7f2801d397bb1752b6df40da047c
Resolve Postgresql implicit indexes via duplicates_constraint

Fixed bug where autogenerate would produce a DROP statement for the index
implicitly created by a Postgresql EXCLUDE constraint, rather than skipping
it as is the case for indexes implicitly generated by unique constraints.
Makes use of SQLAlchemy 1.0.x's improved "duplicates index" metadata and
requires at least SQLAlchemy version 1.0.x to function correctly.

Change-Id: I7362c8045f69553c6090dd3cb236569b0c9b1e67
Fixes: #461
alembic/autogenerate/compare.py
alembic/ddl/postgresql.py
alembic/testing/requirements.py
docs/build/unreleased/461.rst [new file with mode: 0644]
tests/requirements.py
tests/test_autogen_indexes.py