]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Detect indexes for table that's dropped
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 23 Jan 2018 17:38:28 +0000 (12:38 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 24 Jan 2018 00:54:10 +0000 (19:54 -0500)
commit058b2eb4873e3331700080ebd141d9980ffa3e3d
tree1c87650798c5ea878670b9809a5892ee06287743
parentf5af1c0823199d0aca152c9885ace36c5829a36a
Detect indexes for table that's dropped

Fixed bug where the indexes would not be included in a
migration that was dropping the owning table.   The fix
now will also emit DROP INDEX for the indexes ahead of time,
but more importantly will include CREATE INDEX in the
downgrade migration.

Change-Id: I15852bf1cca6de26dd6e7e5ede69bc9e2145c5c0
Fixes: #468
alembic/autogenerate/compare.py
docs/build/unreleased/468.rst [new file with mode: 0644]
tests/test_autogen_diffs.py
tests/test_autogen_indexes.py