feat(library): 适配 WeKnora 0.9.1 并搬运编辑历史
build / build (push) Successful in 2m3s

- profile 新增 137(由 v090 克隆),声明知识域关联表 copied/derived/excluded 分类。
- 导出前与导入写事务内各跑漏表门禁;未声明有数据拒绝,空表警告写入 WriteSet。
- chunk_revisions/wiki_page_revisions 接入范围改写、目标身份映射、自然键与回滚顺序。
This commit is contained in:
Zhero & Rin
2026-11-30 18:45:31 +08:00
committed by 姚章浩
parent 32c773e24d
commit 73413c59ee
28 changed files with 1162 additions and 35 deletions
@@ -35,7 +35,7 @@ func exportLibraryBeforeImage(ctx context.Context, db librarySnapshotDB, identit
return PostgresSnapshot{}, err
}
rowsByTable[table] = rows
if table != "resource_bindings" && table != "knowledge_tag_relations" {
if libraryResourceBodyTable(table) {
bodies = append(bodies, rows...)
}
if table == "resource_bindings" {