An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Improve indexing
Daniel88ae06150d0a
diff --git a/kernel/sql/database.go b/kernel/sql/database.goindex f441306074..7cbe734a1a 100644--- a/kernel/sql/database.go+++ b/kernel/sql/database.go@@ -104,8 +104,13 @@ func initDatabase(forceRebuild bool) {// 不存在库或者版本不一致都会走到这里+ closeDatabase()+ treenode.CloseDatabase()+ util.RemoveDatabaseFile(util.DBPath)+ initDBConnection()initDBTables()- vacuum()+ util.RemoveDatabaseFile(util.BlockTreeDBPath)+ treenode.InitBlockTree(true)logging.LogInfof("reinitialized database [%s]", util.DBPath)}diff --git a/kernel/util/runtime.go b/kernel/util/runtime.goindex aca546c999..03f3b76abb 100644--- a/kernel/util/runtime.go+++ b/kernel/util/runtime.go@@ -87,7 +87,7 @@ var IsExiting = atomic.Bool{}var MobileOSVer string// DatabaseVer 数据库版本。修改表结构的话需要修改这里。-const DatabaseVer = "20220501"+const DatabaseVer = "20260610"func logBootInfo() {plat := GetOSPlatform()