]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
Don't remove dependent version when downgrading to a version.
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Jul 2016 19:05:09 +0000 (15:05 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 12 Jul 2016 19:13:05 +0000 (15:13 -0400)
commitca849060eb85dff7d7c9081c180c9a09cf365058
tree15b28dab8a818ac93cedd4854b96e848b26a32c4
parent111b1c13ae5a4330ebf0ed6d21c4a6f6bcd9f40e
Don't remove dependent version when downgrading to a version.

Adjusted the version traversal on downgrade
such that we can downgrade to a version that is a dependency for
a version in a different branch, *without* needing to remove that
dependent version as well.  Previously, the target version would be
seen as a "merge point" for it's normal up-revision as well as the
dependency.  This integrates with the changes for :ticket:`377`
and :ticket:`378` to improve treatment of branches with dependencies
overall.

Change-Id: Ica0732f6419f68ab85650170839ac8000ba3bbfb
Fixes: #379
alembic/script/base.py
alembic/script/revision.py
docs/build/changelog.rst
tests/test_revision.py
tests/test_version_traversal.py