SQLAlchemy and Alembic 2 · Alembic migrations
Undo the last migration
Step back by one revision.
alembic downgrade -1
Caution: Downgrades can drop columns and data.
Official SQLAlchemy and Alembic 2 documentation
More alembic migrations commands
- Install Alembic
- Create a migration environment
- Generate a migration
- Apply migrations
- Check the current revision
- List migrations
All alembic migrations commands · SQLAlchemy and Alembic 2 cheatsheet