Skip to content

upgrade and downgrade expect target to be relative revision #45

Open
@Lukas0907

Description

@Lukas0907

The downgrade and upgrade commands expect the the target revision to always be relative. Therefore, e.g. flask db downgrade 1730111612 would try to revert the last 1730111612 revisions instead of downgrading to the specific revision. Alembic and flask-alembic accept "absolute" revisions as well (cf. https://alembic.sqlalchemy.org/en/latest/tutorial.html#partial-revision-identifiers) so this was surprising to me.

Maybe this could be changed, or mentioned in the docs.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions