Skip to content

Multiple heads, downgrade single branch to branch point #1480

Closed Answered by zzzeek
lafrech asked this question in Usage Questions
Discussion options

You must be logged in to vote

the rev3@rev1 approach works on this end, here's an example

[classic@framework alembic:main]$ PYTHONPATH=~/dev/sqlalchemy/lib/ python -m alembic current --verbose
INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
Current revision(s) for postgresql://scott:***@localhost/test:
Rev: a815b8836ff0 (head)
Parent: 5f32c059b464
Path: /home/classic/dev/alembic/foo/versions/a815b8836ff0_rev3.py

    rev3
    
    Revision ID: a815b8836ff0
    Revises: 5f32c059b464
    Create Date: 2024-05-29 12:22:46.306333

Rev: 185d278c5837 (head)
Parent: 5f32c059b464
Path: /home/classic/dev/alembic/foo/versions/185d278c5837_rev2.py

  …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@zzzeek
Comment options

Answer selected by lafrech
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants