Skip to content

Commit b9861de

Browse files
authored
add: alembic reminder (#14)
1 parent 97bbcf1 commit b9861de

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • fastapi_forge/template/{{cookiecutter.project_name}}/src

fastapi_forge/template/{{cookiecutter.project_name}}/src/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ def get_app() -> FastAPI:
4949
logger.info(
5050
settings.model_dump_json(indent=2),
5151
)
52-
52+
{% if cookiecutter.use_alembic %}
53+
logger.info("Alembic enabled - see Makefile for migration commands")
54+
{% endif %}
5355
app = FastAPI(lifespan=lifespan)
5456
add_middleware(app)
5557
app.include_router(base_router)

0 commit comments

Comments
 (0)