mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-08-26 16:40:40 +03:00
init alembic
This commit is contained in:
parent
2ac7f0d5bb
commit
3439a0345f
16
alembic/README
Normal file
16
alembic/README
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user