From 02b8e86ccf2b85a1caa4900e51e4b8f6206b2220 Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Mon, 15 May 2023 21:12:29 +0300 Subject: [PATCH] updated README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c5c40e3..89d3dc2 100644 --- a/README.md +++ b/README.md @@ -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 .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