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

This commit is contained in:
Daniel 2023-12-24 09:50:42 +08:00
parent 2953870db5
commit 356b6748c9
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -852,6 +852,7 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {
}
if !destAdded {
if operation.IsTwoWay {
destAv.KeyValues = append(destAv.KeyValues, &av.KeyValues{
Key: &av.Key{
ID: operation.BackRelationKeyID,
@ -868,6 +869,7 @@ func updateAttributeViewColRelation(operation *Operation) (err error) {
}
}
}
}
err = av.SaveAttributeView(srcAv)
if nil != err {