SQLAlchemy and Alembic 2 · Alembic migrations
Install Alembic
Install the migration tool.
pip install alembic
Official SQLAlchemy and Alembic 2 documentation
More alembic migrations commands
- Create a migration environment
- Generate a migration
- Apply migrations
- Undo the last migration
- Check the current revision
- List migrations
All alembic migrations commands · SQLAlchemy and Alembic 2 cheatsheet