From be44a3c750f64664c2a549e04339e87641d8502d Mon Sep 17 00:00:00 2001 From: Joshua Dirga Date: Sun, 19 Apr 2026 20:17:42 -0400 Subject: [PATCH 1/2] Add stub for missing add_friends_table migration Alembic could not traverse the migration graph because add_friends_table was referenced by 6ec7ce03bb6a but never committed to the repo. This stub unblocks flask db upgrade / db stamp in deploys. --- migrations/versions/add_friends_table_stub.py | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 migrations/versions/add_friends_table_stub.py diff --git a/migrations/versions/add_friends_table_stub.py b/migrations/versions/add_friends_table_stub.py new file mode 100644 index 0000000..86696a8 --- /dev/null +++ b/migrations/versions/add_friends_table_stub.py @@ -0,0 +1,30 @@ +"""Stub for add_friends_table revision + +The original add_friends_table migration file was never committed to the repo, +but 6ec7ce03bb6a_change_workout_goal_type_to_integer.py references it as its +down_revision. Without this stub, Alembic cannot traverse the migration graph +and `flask db upgrade` / `db stamp` fail with KeyError: 'add_friends_table'. + +This stub is a no-op — the friends table is created by SQLAlchemy +Base.metadata.create_all() in init_db(), not by any migration. + +Revision ID: add_friends_table +Revises: +Create Date: 2026-04-19 20:09:00.000000 +""" +from alembic import op +import sqlalchemy as sa + + +revision = 'add_friends_table' +down_revision = None +branch_labels = None +depends_on = None + + +def upgrade(): + pass + + +def downgrade(): + pass From 7a38cc5de3c215befb4019d350f94f55ad17a1a6 Mon Sep 17 00:00:00 2001 From: Jiwon Jeong Date: Tue, 21 Apr 2026 18:21:55 -0400 Subject: [PATCH 2/2] Restart Release --- src/schema.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/schema.py b/src/schema.py index f1bd193..95657cf 100644 --- a/src/schema.py +++ b/src/schema.py @@ -220,6 +220,8 @@ def resolve_class_instances(self, info): # MARK: - Class Instance + + class ClassInstance(SQLAlchemyObjectType): class Meta: model = ClassInstanceModel