updated README.md

This commit is contained in:
2023-05-15 21:12:29 +03:00
parent c9ed1456ce
commit 02b8e86ccf

View File

@@ -4,11 +4,11 @@ Compact template for FastAPI-based projects. SQLAlchemy ORM and Alembic migratio
## Alembic
To add new models to migrations you need to import them inside `migrations/env.py`.
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
To quickly migrate:
docker-compose exec web bash
pipenv run alembic upgrate head
pipenv run alembic upgrade head
So that all `.env` varibles will be catched properly