Merge branch 'main' of git.venya.tech:mega_venik/fastapi-boilerplate

This commit is contained in:
2023-05-15 21:16:14 +03:00

View File

@@ -6,6 +6,10 @@ Compact template for FastAPI-based projects. SQLAlchemy ORM and Alembic migratio
To add new models to migrations you need to import them inside `migrations/env.py`. Just add `from <appname>.models import *` at the head of file and it should be enough
And then create migration:
pipenv run alembic revision --autogenerate -m "<bla-bla>"
To quickly migrate:
docker-compose exec web bash