Skip to content

fix: apply state-machine tables via migrations (Postgres 040 + SQLite… - #117

Merged
Theauxm merged 1 commit into
mainfrom
fix/state-machine-migrations
Aug 1, 2026
Merged

fix: apply state-machine tables via migrations (Postgres 040 + SQLite…#117
Theauxm merged 1 commit into
mainfrom
fix/state-machine-migrations

Conversation

@Theauxm

@Theauxm Theauxm commented Jul 31, 2026

Copy link
Copy Markdown
Member

… 006)

snapshot_draft and effect_claim now ship in the core provider migration sets and auto-apply when UsePostgres/UseSqlite is registered, instead of relying on EnsureCreated. The Postgres migration was never committed, so published 1.44.1 does not create the tables. Adds the SQLite migration to match Postgres, teaches SnapshotDbContext to strip the trax schema and map jsonb->TEXT on SQLite, and adds a guard test that builds both tables from the shipped migrations and round-trips the stores.

… 006)

snapshot_draft and effect_claim now ship in the core provider migration sets and
auto-apply when UsePostgres/UseSqlite is registered, instead of relying on
EnsureCreated. The Postgres migration was never committed, so published 1.44.1
does not create the tables. Adds the SQLite migration to match Postgres, teaches
SnapshotDbContext to strip the trax schema and map jsonb->TEXT on SQLite, and adds
a guard test that builds both tables from the shipped migrations and round-trips
the stores.
@codecov

codecov Bot commented Jul 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Theauxm
Theauxm merged commit 784ddc9 into main Aug 1, 2026
3 checks passed
@Theauxm
Theauxm deleted the fix/state-machine-migrations branch August 1, 2026 00:09
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

This PR is included in version 1.44.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant