mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-08-26 16:40:40 +03:00
17 lines
400 B
Plaintext
17 lines
400 B
Plaintext
Alembic commands
|
|
====================
|
|
|
|
### Check current revision
|
|
>alembic current
|
|
|
|
### Make new revision
|
|
>alembic revision --autogenerate -m "first revision"
|
|
|
|
After autogeneration it is highly recommended to check new revision in /versions/ folder, and adjust it if needed
|
|
|
|
### Upgrade the DB to the newest revision
|
|
>alembic upgrade head
|
|
|
|
### Downgrade DB to previous revision
|
|
>alembic downgrade -1
|