Commit 1b5c89f
committed
feat(database): 添加数据库迁移支持
- 在 Cargo.toml 中添加 diesel_migrations 依赖
- 实现 run_pending_migrations 函数以运行待处理迁移
- 在 CLI 和 Web API 启动时自动运行数据库迁移1 parent e8eba5f commit 1b5c89f
6 files changed
Lines changed: 207 additions & 32 deletions
File tree
- file_classification_cli/src
- file_classification_core
- src/utils
- file_classification_webapi/src/bin
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
0 commit comments