We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9e87af commit fea3bdaCopy full SHA for fea3bda
2 files changed
backend/app/core/db.py
@@ -16,10 +16,10 @@ def init_db(session: Session) -> None:
16
# Tables should be created with Alembic migrations
17
# But if you don't want to use migrations, create
18
# the tables un-commenting the next lines
19
- # from sqlmodel import SQLModel
+ from sqlmodel import SQLModel
20
21
# This works because the models are already imported and registered from app.models
22
- # SQLModel.metadata.create_all(engine)
+ SQLModel.metadata.create_all(engine)
23
24
user = session.exec(
25
select(User).where(User.email == settings.FIRST_SUPERUSER)
backend/scripts/prestart.sh
@@ -7,7 +7,7 @@ set -x
7
python app/backend_pre_start.py
8
9
# Run migrations
10
-alembic upgrade head
+# alembic upgrade head
11
12
# Create initial data in DB
13
python app/initial_data.py
0 commit comments