Improve local filetree view state and sidebar performance

This commit is contained in:
lix-2026
2026-05-27 11:31:12 +08:00
parent 58e2fdb5d8
commit 3ae33cc21d
56 changed files with 8614 additions and 461 deletions
@@ -0,0 +1,8 @@
ALTER TABLE sidebar_shortcuts ADD COLUMN root_uri TEXT;
UPDATE sidebar_shortcuts
SET root_uri = COALESCE(
NULLIF(json_extract(metadata_json, '$.rootUri'), ''),
NULLIF(json_extract(metadata_json, '$.root_uri'), '')
)
WHERE root_uri IS NULL OR root_uri = '';