branch: externals/org-gnosis
commit b319940e6f281814f2a45a7fb7452fcce87289da
Author: Thanos Apollo <[email protected]>
Commit: Thanos Apollo <[email protected]>
[Refactor] db-sync: Remove redundant table rebuild.
---
org-gnosis.el | 7 -------
1 file changed, 7 deletions(-)
diff --git a/org-gnosis.el b/org-gnosis.el
index 65b12979ad..3904352bf8 100644
--- a/org-gnosis.el
+++ b/org-gnosis.el
@@ -979,13 +979,6 @@ When FORCE (prefix arg), rebuild database from scratch."
(org-gnosis-db-init-if-needed)
(message "Syncing org-gnosis database...")
(emacsql-with-transaction (org-gnosis-db-get)
- (when force
- ;; Full rebuild: drop and recreate tables with indexes
- (org-gnosis-db-delete-tables)
- (pcase-dolist (`(,table ,schema) org-gnosis-db--table-schemata)
- (emacsql (org-gnosis-db-get) [:create-table $i1 $S2] table schema))
- (emacsql (org-gnosis-db-get) [:create-index :if-not-exists
idx-nodes-file :on nodes [file]])
- (emacsql (org-gnosis-db-get) [:create-index :if-not-exists
idx-journal-file :on journal [file]]))
;; Sync all files with progress reporting
(org-gnosis-db-update-files force)
;; Set current version