Skip to content

Commit fea3bda

Browse files
skip using alembic for now
1 parent e9e87af commit fea3bda

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
@@ -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)

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)