Skip to content

Commit e5124b4

Browse files
committed
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.
1 parent c25d1ad commit e5124b4

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
"""Stub for add_friends_table revision
2+
3+
The original add_friends_table migration file was never committed to the repo,
4+
but 6ec7ce03bb6a_change_workout_goal_type_to_integer.py references it as its
5+
down_revision. Without this stub, Alembic cannot traverse the migration graph
6+
and `flask db upgrade` / `db stamp` fail with KeyError: 'add_friends_table'.
7+
8+
This stub is a no-op — the friends table is created by SQLAlchemy
9+
Base.metadata.create_all() in init_db(), not by any migration.
10+
11+
Revision ID: add_friends_table
12+
Revises:
13+
Create Date: 2026-04-19 20:09:00.000000
14+
"""
15+
from alembic import op
16+
import sqlalchemy as sa
17+
18+
19+
revision = 'add_friends_table'
20+
down_revision = None
21+
branch_labels = None
22+
depends_on = None
23+
24+
25+
def upgrade():
26+
pass
27+
28+
29+
def downgrade():
30+
pass

0 commit comments

Comments
 (0)