fix(db): use sqlx migrator so migrations don't re-run on every startup #12

Merged
nrupard merged 1 commit from fix/oneshot-cancelled into main 2026-04-14 19:41:01 +02:00
Owner

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

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>
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>
nrupard deleted branch fix/oneshot-cancelled 2026-04-14 19:41:01 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/lets-chat!12
No description provided.