Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions migrations/versions/add_friends_table_stub.py
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions src/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ def resolve_class_instances(self, info):

# MARK: - Class Instance



class ClassInstance(SQLAlchemyObjectType):
class Meta:
model = ClassInstanceModel
Expand Down
Loading