This commit is contained in:
Raven Scott
2026-05-28 01:14:13 -04:00
parent 6ccfac862d
commit d95baaed1c
3 changed files with 118 additions and 74 deletions
+1 -1
View File
@@ -644,7 +644,7 @@ See [test-scripts/README.md](../test-scripts/README.md) for more information abo
...
}
```
- Restart P2NS — data is copied once from `previousVersion` to the new core, then `migrated` is set to `true` (`previousVersion` stays in config for reference)
- Restart P2NS — data is copied once from `previousVersion` to the new core when that core has records; if there is nothing to copy, migration is **skipped** and `migrated` is still set to `true` (`previousVersion` stays in config for reference)
- On the next bump, update `previousVersion` to the version you are leaving (e.g. `1.4.1` → `1.4.2` with `"previousVersion": "1.4.1"`) and set `migrated` back to `false`
- Coordinate the same version bump with all peers so replication uses the same core topic
- If upgrading from before auto-migration and data appears missing, add the old version to `hyperdb.versionHistory` once (e.g. `"versionHistory": ["1.2.1"]`) and `"migrated": false`