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: 移动文档更新索引时区分大小写
Liang Dingaad58a221fce
diff --git a/kernel/sql/database.go b/kernel/sql/database.goindex 502a87eb48..f5f17f9481 100644--- a/kernel/sql/database.go+++ b/kernel/sql/database.go@@ -1096,9 +1096,11 @@ func batchUpdateHPath(tx *sql.Tx, boxID, rootID, oldHPath, newHPath string) (errif err = execStmtTx(tx, stmt, newHPath, boxID, rootID, oldHPath); nil != err {return}- stmt = "UPDATE blocks_fts_case_insensitive SET hpath = ? WHERE box = ? AND root_id = ? AND hpath = ?"- if err = execStmtTx(tx, stmt, newHPath, boxID, rootID, oldHPath); nil != err {- return+ if !caseSensitive {+ stmt = "UPDATE blocks_fts_case_insensitive SET hpath = ? WHERE box = ? AND root_id = ? AND hpath = ?"+ if err = execStmtTx(tx, stmt, newHPath, boxID, rootID, oldHPath); nil != err {+ return+ }}ClearCache()return