mirror of
https://github.com/block/buzz.git
synced 2026-11-01 23:11:58 +00:00
Apply PRAGMA query_only=ON on a v2 in-memory connection before calling apply_journal_schema_pub: ALTER TABLE fails, the transaction rolls back, and user_version stays at 2. Disabling query_only and retrying succeeds with all three columns present and version 4 -- proving the retry path. Also corrects the false doc comment on test_schema_migration_idempotent_on_v4 (was incorrectly claiming in-memory DBs cannot be made read-only via query_only; restated as a straightforward idempotency check). Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>