]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Adjust for immediate dependencies that are still ancestors
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Feb 2021 05:18:48 +0000 (00:18 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 2 Feb 2021 16:17:01 +0000 (11:17 -0500)
commit63da35758c11fe5450f4a5b932ed8dd2fb559302
tree80a9f9cf165a7e0979548efa0ce6dda5fddf4364
parent6f9d0b3cf621feec93a9d975bd63abc79adfcc45
Adjust for immediate dependencies that are still ancestors

Fixed bug in versioning model where a downgrade across a revision with a
dependency on another branch, yet an ancestor is also dependent on that
branch, would produce an erroneous state in the alembic_version table,
making upgrades impossible without manually repairing the table.

Change-Id: Ic755f8c3f78845bb80f4f5b3d172caf77cb51132
Fixes: #789
alembic/runtime/migration.py
alembic/script/revision.py
docs/build/unreleased/789.rst [new file with mode: 0644]
tests/test_revision.py
tests/test_version_traversal.py