Skip to content

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

:art: Supports multiple views for the database https://github.com/siyuan-note/siyuan/issues/9751

Daniel21dace60a2b7
diff --git a/kernel/model/transaction.go b/kernel/model/transaction.go
index f956360358..11fcb87b66 100644
--- a/kernel/model/transaction.go
+++ b/kernel/model/transaction.go
@@ -295,6 +295,7 @@ func (tx *Transaction) doAddAttrViewView(operation *Operation) (ret *TxErr) {
}
view := av.NewView()
+ view.ID = operation.ID
attrView.Views = append(attrView.Views, view)
attrView.ViewID = view.ID
if err = av.SaveAttributeView(attrView); nil != err {