Skip to content

Commit 30a4777

Browse files
Merge pull request #1 from monicasmith463/infra/remove-alembic-migration
don't do alembic migrations for now
2 parents 2f5ccf5 + bcd6c96 commit 30a4777

File tree

3 files changed

+3
-21
lines changed

3 files changed

+3
-21
lines changed

.github/workflows/add-to-project.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

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 Session, SQLModel, 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)