mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
🎨 Supports multiple views for the database https://github.com/siyuan-note/siyuan/issues/9751
This commit is contained in:
parent
6804d4b795
commit
d345bb95bb
1 changed files with 1 additions and 0 deletions
|
|
@ -739,6 +739,7 @@ func (tx *Transaction) doAddAttrViewView(operation *Operation) (ret *TxErr) {
|
||||||
view.Table.Columns = append(view.Table.Columns, &av.ViewTableColumn{ID: col.ID})
|
view.Table.Columns = append(view.Table.Columns, &av.ViewTableColumn{ID: col.ID})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
attrView.ViewID = view.ID
|
||||||
if err = av.SaveAttributeView(attrView); nil != err {
|
if err = av.SaveAttributeView(attrView); nil != err {
|
||||||
logging.LogErrorf("save attribute view [%s] failed: %s", avID, err)
|
logging.LogErrorf("save attribute view [%s] failed: %s", avID, err)
|
||||||
return &TxErr{code: TxErrWriteAttributeView, msg: err.Error(), id: avID}
|
return &TxErr{code: TxErrWriteAttributeView, msg: err.Error(), id: avID}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue