-
-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not longer "downgrade base" in 1.6.0 #838
Comments
hi there - We need to see a revision structure that reproduces this. "alembic downgrade base" is of course tested and working with a fresh set of files as below, there's no issue:
|
cc @simonbowly |
Here is my revision chain, its just a linear graph, no branches.
|
is your project open source ? |
no. Let me see if I can reproduce somehow |
Ok, I found the issue. The issue is when the database is completely clean, aka, there is no We run a "reset database" script that cleans the database in a test environment. Sometimes the database is already clean. Before, |
OK that sounds more localized, let's see |
OK! sure I just run "downgrade base" again and I get the error :) |
Mike Bayer has proposed a fix for this issue in the master branch: narrow rangenotancestor to exclude target heads already present https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/2810 |
thanks for reporting! |
jhust FYI that's been released in 1.6.1, you should have no problems now let me know otherwise |
Describe the bug
alembic downgrade no longer recognizes the revision "base", and likewise, you can no longer downgrade completely.
When you run downgrade base, you get an error that the revision
base
is not found.This works great on any previous alembic version. Is broken in 1.6.0
Expected behavior
alembic downgrade base
should downgrade all revisions.To Reproduce
Install the alembic 1.6.0, have some revisions, upgrade to head, then run
alembic downgrade base
.Versions.
The text was updated successfully, but these errors were encountered: