summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnosis.el b/gnosis.el
index 223e27a..2839ff6 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -2308,7 +2308,7 @@ Return note ids for notes that match QUERY."
(defun gnosis-db-init ()
"Create essential directories & database."
(let ((gnosis-curr-version (caar (emacsql gnosis-db (format "PRAGMA user_version")))))
- (unless (length= (emacsql gnosis-db [:select name :from sqlite-master :where (= type table)]) 7)
+ (unless (length> (emacsql gnosis-db [:select name :from sqlite-master :where (= type table)]) 3)
(emacsql-with-transaction gnosis-db
;; Enable foreign keys
(emacsql gnosis-db "PRAGMA foreign_keys = ON")