diff options
| author | Thanos Apollo <public@thanosapollo.org> | 2026-02-23 00:28:05 +0200 |
|---|---|---|
| committer | Thanos Apollo <public@thanosapollo.org> | 2026-02-23 00:48:28 +0200 |
| commit | b319940e6f281814f2a45a7fb7452fcce87289da (patch) | |
| tree | 2eeb29879bbfd0b5a918ffd5b44249724f478868 | |
| parent | 3e89fe82b211b977c392096cdabfd9a085ac6095 (diff) | |
[Refactor] db-sync: Remove redundant table rebuild.
| -rw-r--r-- | org-gnosis.el | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/org-gnosis.el b/org-gnosis.el index 65b1297..3904352 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 |
