mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 07:48:49 +01:00
🎨 Rebuilding database block relations when importing .sy.zip and rebuilding indexes https://github.com/siyuan-note/siyuan/issues/10959
This commit is contained in:
parent
c4d2f9e706
commit
7d680ed391
2 changed files with 13 additions and 0 deletions
|
|
@ -281,6 +281,10 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {
|
|||
}
|
||||
return ast.WalkContinue
|
||||
})
|
||||
|
||||
// 关联数据库和块
|
||||
avNodes := tree.Root.ChildrenByType(ast.NodeAttributeView)
|
||||
av.BatchUpsertBlockRel(avNodes)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue