fix(db): use sqlx migrator so migrations don't re-run on every startup #12
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/oneshot-cancelled"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hand-rolled init code unconditionally re-ran every .sql file on each boot.
Non-idempotent ALTER TABLE ADD COLUMN statements then panicked on second
startup against a persisted volume, dropping the server-fn response future
and surfacing as "oneshot cancelled" in the browser. sqlx::migrate! tracks
applied migrations in _sqlx_migrations and skips them on subsequent runs.
Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com