Commit Graph

16 Commits

Author SHA1 Message Date
DrSmoothl
c2c992ff01 feat(database-migrations): implement database migration manager and related components
- Add DatabaseMigrationManager for orchestrating database migrations, including planning and executing migration steps.
- Introduce models for migration state, execution context, and migration steps.
- Implement MigrationPlanner to generate migration plans based on current and target versions.
- Create MigrationRegistry for registering and managing migration steps.
- Develop SchemaVersionResolver to determine the current database schema version.
- Add SQLiteSchemaInspector for inspecting SQLite database structures.
- Implement progress reporting tools using rich for visualizing migration progress.
- Introduce SQLiteUserVersionStore for managing schema version storage in SQLite.
2026-03-31 09:16:25 +08:00
SengokuCola
82bbf0fd52 remove:移除tool_use模型,修复Jargon提取问题,修改统计为tool统计 2026-03-29 16:26:34 +08:00
DrSmoothl
16b16d2ca6 重构绝大部分模块以适配新版本的数据库和数据模型,修复缺少依赖问题,更新 pyproject 2026-02-13 20:39:11 +08:00
UnCLAS-Prommer
b9f3c17e14 合并到远程 2026-02-13 13:41:58 +08:00
DrSmoothl
60f76e4d4e 添加对 peewee 的旧数据库的兼容层,初步重构插件的 database API 2026-02-09 22:44:56 +08:00
UnCLAS-Prommer
1e3dfb9ff1 数据库微调 2026-02-02 19:00:54 +08:00
墨梓柒
2aea5046b0 test x2 2025-10-31 14:50:19 +08:00
墨梓柒
0d5e393bcb test docker build 2025-10-31 14:40:27 +08:00
UnCLAS-Prommer
817c4183bf 精简依赖 2025-10-07 23:50:18 +08:00
墨梓柒
fa9cd653fe Revert "feat(database): 添加MySQL支持并重构数据库配置" 2025-08-07 12:04:51 +08:00
cuckoo711
b6f5831785 feat(database): 添加MySQL支持并重构数据库配置
- 新增DataBaseConfig类用于集中管理数据库配置
- 重构数据库初始化逻辑,支持SQLite和MySQL两种数据库类型
- 为数据库表添加表前缀支持,便于多实例部署
- 更新数据库模型字段类型和长度限制
- 在配置模板中添加数据库配置节
2025-08-07 10:55:48 +08:00
UnCLAS-Prommer
7ef0bfb7c8 完成所有类型注解的修复 2025-07-13 00:19:54 +08:00
github-actions[bot]
5757fef0f5 🤖 自动格式化代码 [skip ci] 2025-06-22 09:19:09 +00:00
SengokuCola
ce50f59c0a fix:统计和person_info现已成为异步,巨爽 2025-06-22 17:13:43 +08:00
墨梓柒
b84cc9240a 重构数据库交互以使用 Peewee ORM
- 更新数据库连接和模型定义,以便使用 Peewee for SQLite。
- 在消息存储和检索功能中,用 Peewee ORM 查询替换 MongoDB 查询。
- 为 Messages、ThinkingLog 和 OnlineTime 引入了新的模型,以方便结构化数据存储。
- 增强了数据库操作的错误处理和日志记录。
- 删除了过时的 MongoDB 集合管理代码。
- 通过利用 Peewee 内置的查询和数据操作方法来提升性能。
2025-05-14 22:53:21 +08:00
墨梓柒
307d5a73a6 feat: 重构数据库导入路径,移除旧的数据库模块并添加新的数据库实现 2025-05-14 19:42:53 +08:00