fix: update database migration script

This commit is contained in:
JustSong
2023-05-06 17:24:22 +08:00
parent 054c4719c1
commit 9e9f643aad
2 changed files with 18 additions and 22 deletions
+2 -2
View File
@@ -548,10 +548,10 @@ send_message('标题', '描述', '**Markdown 内容**')
此处均以 SQLite 为例,其他数据库请自行修改。我已经让 ChatGPT 翻译成对应的 SQL 版本,见 `bin` 文件夹,供参考。
### 从 `v0.3` 迁移到 `v0.4`
1. 首先备份你的数据库文件,复制一份,命名为 `message-pusher-v0.3.db`
1. 首先备份你的数据库文件。
2. 下载最新的 `v0.4` 版本,启动程序,程序会自动进行数据库表结构的迁移。
3. 终止程序。
4. 之后执行脚本:`./bin/migrate_v3_to_v4.py --v4_db_path ./message-pusher.db`,进行数据的迁移。
4. 之后执行脚本:`./bin/migrate_v3_to_v4.py`,进行数据的迁移。
5. 重新启动程序即可。
## 其他