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
@@ -103,6 +103,11 @@ func (d *libraryFixtureTx) Query(_ context.Context, q string, _ ...any) (pgx.Row
if d.queryError {
return nil, errors.New("fixture failure")
}
// 漏表门禁也查 information_schema,但回答形状是(表,列集合);与能力探测分开打桩,
// 否则会被当成两列结果扫描。74 夹具没有任何未分类的知识域表。
if strings.Contains(q, "knowledge-table-gate") {
return &jsonRows{}, nil
}
// 能力探测走真实 SQL:假库按 0.7.1 profile 回答,避免"桩放行"。
if strings.Contains(q, "information_schema.columns") {
return legacySchemaProbeRows(), nil