mirror of
https://github.com/fastapi/full-stack-fastapi-template.git
synced 2026-11-03 20:36:27 +00:00
♻️ Simplify database readiness checks (#2460)
This commit is contained in:
committed by
GitHub
parent
2ccfa25845
commit
f8dd304eeb
@@ -4,7 +4,7 @@ from app import crud
|
||||
from app.core.config import settings
|
||||
from app.models import User, UserCreate
|
||||
|
||||
engine = create_engine(str(settings.DATABASE_URL))
|
||||
engine = create_engine(str(settings.DATABASE_URL), pool_pre_ping=True)
|
||||
|
||||
|
||||
# make sure all SQLModel models are imported (app.models) before initializing DB
|
||||
|
||||
Reference in New Issue
Block a user