Skip to content

Commit 54680f7

Browse files
committed
docs(storage): document v3 migration path
1 parent ec39a51 commit 54680f7

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

docs/website/documentation/storage.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,25 @@ If you are upgrading from an older version of massCode that used SQLite storage,
3838
- Select your old `massCode.db` file
3939

4040
massCode converts your folders and snippets to Markdown Vault format.
41+
42+
## Migration from v3 `db.json`
43+
44+
massCode v5 does not read `db.json` directly. If you are upgrading from massCode v3, first migrate the v3 JSON database through massCode v4, then migrate from v4 to v5.
45+
46+
The supported upgrade path is:
47+
48+
```text
49+
v3 db.json -> v4 massCode.db -> v5 Markdown Vault
50+
```
51+
52+
Before upgrading, make a backup copy of your existing `db.json`.
53+
54+
To migrate from v3:
55+
56+
- Install and open [massCode v4.7.1](https://github.com/massCodeIO/massCode/releases/tag/v4.7.1)
57+
- Confirm that your snippets are visible in v4
58+
- Confirm that v4 created a `massCode.db` file
59+
- Install and open massCode v5
60+
- Import the `massCode.db` file into Markdown Vault from **Settings -> Storage**
61+
62+
If you still have only `db.json`, massCode v5 cannot import it on its own. Restore your `db.json` backup and complete the v4 migration step first.

0 commit comments

Comments
 (0)