Skip to content

Can not longer "downgrade base" in 1.6.0 #838

Description

@nhumrich

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions