]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commit
narrow rangenotancestor to exclude target heads already present
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 6 May 2021 16:51:30 +0000 (12:51 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 6 May 2021 16:52:33 +0000 (12:52 -0400)
commit9dd48d0911040a80f6bf15739017737ddbf6e3e4
treee0749be59308ee47e8d8f83db8780177a6cb6940
parentd11a51d902134bbab0eccf9abcdfb629d9794067
narrow rangenotancestor to exclude target heads already present

Fixed regression in new revisioning traversal where "alembic downgrade
base" would fail if the database itself were clean and unversioned;
additionally repairs the case where downgrade would fail if attempting
to downgrade to the current head that is already present.

Change-Id: I581cab5a17f69d82e41eab147ceb27a38fe4ce1d
Fixes: #838
alembic/script/revision.py
docs/build/unreleased/838.rst [new file with mode: 0644]
tests/test_version_traversal.py