Skip to content

Commit ecbaecb

Browse files
committed
doc
1 parent fdee6f9 commit ecbaecb

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

CHANGES.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,10 @@ noneDB::setDevMode(true); // Enable dev mode
336336

337337
### Migration
338338

339-
Automatic migration occurs on first database access:
340-
1. V2 format detected (`{"data": [...]}`)
339+
**Backwards Compatibility:** Databases created with any previous version (v1.x `{"data":[...]}` or v2.x JSON array format) are automatically migrated to the new JSONL format on first access. Your existing data is preserved - just upgrade and go.
340+
341+
**How it works:**
342+
1. Old format detected (`{"data": [...]}` or JSON array)
341343
2. Records converted to JSONL (one per line)
342344
3. Byte-offset index created (`.jidx` file)
343345
4. Original file overwritten with JSONL content

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -875,10 +875,12 @@ noneDB::disableStaticCache();
875875
noneDB::enableStaticCache();
876876
```
877877

878-
### Migration from v2.x
878+
### Migration from Previous Versions
879879

880-
Automatic migration occurs on first database access:
881-
1. Old format detected (`{"data": [...]}`)
880+
**Backwards Compatibility:** Databases created with any previous version (v1.x `{"data":[...]}` or v2.x JSON array format) are automatically migrated to the new JSONL format on first access. Your existing data is preserved - just upgrade and go.
881+
882+
**How it works:**
883+
1. Old format detected (`{"data": [...]}` or JSON array)
882884
2. Records converted to JSONL (one per line)
883885
3. Byte-offset index created (`.jidx` file)
884886
4. Original file overwritten with JSONL content

0 commit comments

Comments
 (0)