History

Add changeset for the local v1→v2 upgrade hardening (#983)

Rhys Sullivan committed 5 months ago

Commit bcfdeb21 parent c5b5a951 file · +15 −0Browse files

Unified · Split

.changeset/local-v1-v2-ledger.md+15−0
@@ -0,0 +1,15 @@
1---
2"executor": patch
3---
4
5**Hardened the local v1→v2 database upgrade**
6
7Upgrading a local database created by an older (v1) release is now resilient to
8interrupted or partially-written upgrade state:
9
10- The one-time upgrade is recorded in the migration ledger, so it is never
11 re-attempted on later boots. Databases that have already upgraded are detected
12 from the ledger and skip the upgrade path entirely.
13- Replaying the legacy schema now tolerates a missing or truncated migration
14 journal instead of failing to start, so a database left in a half-written
15 state from a previous crash boots cleanly.