Skip to content

Make SQLite schema upgrades transactional - #106

Open
OskarEichler wants to merge 1 commit into
sparklemotion:masterfrom
OskarEichler:codex/transactional-sqlite-upgrades
Open

Make SQLite schema upgrades transactional#106
OskarEichler wants to merge 1 commit into
sparklemotion:masterfrom
OskarEichler:codex/transactional-sqlite-upgrades

Conversation

@OskarEichler

Copy link
Copy Markdown

Run the complete SQLite schema upgrade inside one transaction. A failure during v4 to v5 currently leaves user_version advanced, an old table, and an empty replacement; the transaction preserves the original v4 database and allows a clean retry to v7.

Verification: injected-failure rollback and retry model passes; full suite 144 tests / 2,870 assertions, zero failures/errors. Source-only patch; no tests included.

@OskarEichler
OskarEichler requested a review from knu as a code owner August 30, 2026 12:52
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