File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 77python app/backend_pre_start.py
88
99# Run migrations
10- alembic upgrade head
10+ # alembic upgrade head
1111
1212# Create initial data in DB
1313python app/initial_data.py
You can’t perform that action at this time.
0 commit comments