mirror of
https://github.com/rememberber/MooTool.git
synced 2026-12-01 03:18:19 +08:00
将 Vault/Git/MCP/AI、壳层主题密度、25 工具真实闭环与 desktopTest 638 项及 DIFF-065–471 文档/证据一并纳入仓库,便于持续对齐验收;产品窗 IME/冲突与三平台发行仍待验。 Co-authored-by: Cursor <cursoragent@cursor.com>
1003 B
1003 B
DIFF-155:import_migration_row 逐行迁移登记
背景
DIFF-154 用 history.options.importDedupeKey 与草稿文件避免重复;仍缺 Electron t_next_migration_row 等价的「来源路径 + 表 + 行 id」登记,以便 fingerprint 变化后仍能跳过已迁入行。
行为
- SQLite 表
import_migration_row(source_path, source_table, source_id, migrated_at)(schema v2)。 ImportPreview.sourceRoot为规范化绝对路径。HistoryRepository.mergeImport在插入成功后record;重复导入同来源同dedupeKey跳过。CrossProductImporter.apply过滤legacyHistory并传入LegacyMigrationRowRepository。- 工具草稿应用后亦
record对应dedupeKey。
证据
HistoryMergeImportTest.recordsImportMigrationRowForSourcePath
仍未覆盖
- 读取源 SQLite
t_next_migration_row见 DIFF-156;t_next_migration_run整包对齐未做。 - safeStorage 密文迁移未做。