You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(v3-ref-seller): run alembic upgrade head at boot (#421) (#733)
* fix(v3-ref-seller): run alembic upgrade head at boot (#421)
Replaces ``Base.metadata.create_all`` at boot in ``app.py`` and
``seed.py`` with ``alembic upgrade head``. ``create_all`` is idempotent
on table existence but blind to column renames, type changes, and new
columns on existing tables — adopters running this example past first
boot were silently dropping schema changes. Running migrations at boot
puts the example on the same evolution path as ``migrate.py`` and CI.
``alembic.command.upgrade`` is synchronous and opens its own engine;
the boot path runs it through ``asyncio.to_thread`` so the async
surface stays unblocked.
Closes#421.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(deps): add alembic to dev extra for v3-ref-seller boot
The v3 reference seller boot path now imports alembic.command at runtime
(replaces Base.metadata.create_all). CI installs .[dev] but didn't pull
alembic, breaking the v3-storyboard CI job with ImportError.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments