From bedf097ea24cb9a3d7a847080437ffb812e199f4 Mon Sep 17 00:00:00 2001 From: Hani Sabsoob <39838955+sebhani@users.noreply.github.com> Date: Sat, 20 Jul 2024 22:54:45 -0400 Subject: [PATCH] Fix disabling Alembic engine is created using create_engine function in the same file (i.e., db.py) --- backend/app/core/db.py | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/app/core/db.py b/backend/app/core/db.py index 782b79d8a4..6a8ee0325f 100644 --- a/backend/app/core/db.py +++ b/backend/app/core/db.py @@ -18,7 +18,6 @@ def init_db(session: Session) -> None: # the tables un-commenting the next lines # from sqlmodel import SQLModel - # from app.core.engine import engine # This works because the models are already imported and registered from app.models # SQLModel.metadata.create_all(engine)