Skip to content

Commit cd7d024

Browse files
don't do alembic migrations for now
1 parent 2f5ccf5 commit cd7d024

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend/app/core/db.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from sqlmodel import Session, create_engine, select
1+
from sqlmodel import SQLModel, Session, create_engine, select
22

33
from app import crud
44
from app.core.config import settings
@@ -19,7 +19,7 @@ def init_db(session: Session) -> None:
1919
# 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)

backend/scripts/prestart.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -x
77
python app/backend_pre_start.py
88

99
# Run migrations
10-
alembic upgrade head
10+
# alembic upgrade head
1111

1212
# Create initial data in DB
1313
python app/initial_data.py

0 commit comments

Comments
 (0)