init alembic

This commit is contained in:
Jakub Miazek 2022-04-23 21:04:32 +02:00
parent 2ac7f0d5bb
commit 3439a0345f

16
alembic/README Normal file
View 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