alembic
Database migration tool for SQLAlchemy. More information: https://manned.org/alembic.
- Initialize Alembic in a project:
alembic init
- Create a new migration script with autogeneration:
alembic revision --autogenerate -m ""
- Upgrade the database to the latest revision:
alembic upgrade head
- Downgrade the database by one revision:
alembic downgrade -1
- Show the migration history:
alembic history
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
