Skip to content

Commit 7f5a3d4

Browse files
committed
Update db.py
1 parent e94eb72 commit 7f5a3d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/app/core/db.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ def init_db(session: Session) -> None:
1616
# Tables should be created with Alembic migrations
1717
# But if you don't want to use migrations, create
1818
# the tables un-commenting the next lines
19-
from sqlmodel import SQLModel
19+
# from sqlmodel import SQLModel
2020

2121
# This works because the models are already imported and registered from app.models
22-
SQLModel.metadata.create_all(engine)
22+
# SQLModel.metadata.create_all(engine)
2323

2424
user = session.exec(
2525
select(User).where(User.email == settings.FIRST_SUPERUSER)

0 commit comments

Comments
 (0)