You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,12 @@
2
2
3
3
Migration tool from PostgreSQL to SQLite for Dnote.
4
4
5
+
This tool migrates data from **Dnote server v2.x** (PostgreSQL) to **Dnote server v3** (SQLite).
6
+
7
+
## Prerequisites
8
+
9
+
- You must be running **Dnote server v2.x**
10
+
5
11
## Installation
6
12
7
13
```bash
@@ -17,9 +23,13 @@ dnote-pg2sqlite \
17
23
--pg-database dnote \
18
24
--pg-user dnote \
19
25
--pg-password yourpassword \
20
-
--sqlite-path /path/to/server.db
26
+
--sqlite-path ~/.local/share/dnote/server.db
21
27
```
22
28
29
+
**Note**: Dnote v3 uses XDG directories. The default SQLite database path is `~/.local/share/dnote/server.db` (or `$XDG_DATA_HOME/dnote/server.db`).
30
+
31
+
**Safety**: The migration tool will refuse to run if the SQLite file already exists, preventing accidental overwrites. Remove the existing file if you need to re-run the migration.
0 commit comments