Skip to content

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

:bug: 生成文件历史索引报错 Fix https://github.com/siyuan-note/siyuan/issues/7509

Liang Ding31738cacf669
diff --git a/kernel/sql/database.go b/kernel/sql/database.go
index 39b4d6e42e..e9e592f9ce 100644
--- a/kernel/sql/database.go
+++ b/kernel/sql/database.go
@@ -215,7 +215,7 @@ func initHistoryDBConnection() {
historyDB.Close()
}
- dsn := util.DBPath + "?_journal_mode=WAL" +
+ dsn := util.HistoryDBPath + "?_journal_mode=WAL" +
"&_synchronous=OFF" +
"&_mmap_size=2684354560" +
"&_secure_delete=OFF" +