refactor(db): 引入统一媒体数据库 - #869
Conversation
当前进度1. 数据库重构设计大体完成根据 issue #867 的设计思路, 彻底重构底层数据库架构. 但是目前还没有替换现有的观看历史数据库, 而是新增了一套独立的 SQLite 数据层,
新的数据模型以内部统一的 Anime 和 Episode 作为跨数据源实体, 关联 Dandanplay 和 Bangumi 数据实体. 2. 新增的
|
FurudeRika123
left a comment
There was a problem hiding this comment.
Thank you for the comprehensive refactor and the detailed documentation in docs/DATA_STORAGE.md!
Before we can proceed with a full review and merge, please note that the CI check (PR Validation / Analyze and Test) is currently failing on the latest commit. Could you please run flutter analyze and flutter test locally to check for any analysis errors, lint warnings, or failing tests and resolve them?
Once the CI pipeline passes green, we will proceed with the detailed code review. Thanks again for your contribution!
d26e8ae to
d4b44e6
Compare
Important
本 PR 根据 #867 的设计思路, 仅引入了新的统一的媒体数据库架构, 并未对现有逻辑进行任何修改.
最终的详细设计请参考本次 PR 新增的文档: docs/DATA_STORAGE.md.
Summary
lib/services/anime_info/anime_info_service.dart
lib/services/anime_info/anime_info_service.dart
下一步计划
保持旧数据库不变的情况下逐步把新数据库功能接入业务代码.
会在设置里添加一个 "开启新版数据库系统" 的实验选项, 打开后用户数据同步保存到两方, 同时程序优先使用新数据库的数据.
Related Issue