♻️ Simplify database readiness checks (#2460)

This commit is contained in:
Sebastián Ramírez
2026-08-28 13:53:10 +02:00
committed by GitHub
parent 2ccfa25845
commit f8dd304eeb
11 changed files with 3 additions and 164 deletions
+1 -1
View File
@@ -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