Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Add Relation column to database table view https://github.com/siyuan-note/siyuan/issues/9888

Daniel507fe1637fc7
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index e92d4ecad2..795551b615 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -839,12 +839,12 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {
AvID: operation.ID,
IsTwoWay: operation.IsTwoWay,
}
-
if operation.IsTwoWay {
srcRel.BackKeyID = operation.BackRelationKeyID
} else {
srcRel.BackKeyID = ""
}
+ keyValues.Key.Relation = srcRel
break
}