From 90f82d7f8dead20d3c14100db737dd30813edfd0 Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Tue, 2 May 2023 14:56:12 +0300 Subject: [PATCH] Update 'README.md' --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c5c40e3..29098e1 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,13 @@ 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`. And then create migration: + + pipenv run alembic revision --autogenerate -m "" 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