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.
# Copy error here. Please include the full stack trace.
INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO [alembic.runtime.migration] Will assume transactional DDL.
ERROR [alembic.util.messaging] Destination base is not a valid downgrade target from current head(s)
FAILED: Destination base is not a valid downgrade target from current head(s)
Versions.
- OS: linux
- Python: 3.9.4
- Alembic: 1.6.0
- SQLAlchemy: 1.4.13
- Database: postgres
- DBAPI: psycopg2
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
baseis not found.This works great on any previous alembic version. Is broken in 1.6.0
Expected behavior
alembic downgrade baseshould downgrade all revisions.To Reproduce
Install the alembic 1.6.0, have some revisions, upgrade to head, then run
alembic downgrade base.Versions.