summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-08-07 21:34:57 +0300
committerThanos Apollo <[email protected]>2024-08-07 21:34:57 +0300
commit1c3eafb6efb05d52a8b01c463d1b47efc1fb2c8e (patch)
tree3617d9941ccb1fec8bab50ce3d0370bc1be5ebaa /gnosis.el
parentd16942df7e3830cbdf7d81d8dfdd0b73712d9325 (diff)
[fix] db: Only update to v3 when current db version is 2.
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 f08e1c9..56b3965 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -2362,7 +2362,7 @@ Return note ids for notes that match QUERY."
;; Create activity-log table
(gnosis--create-table 'activity-log gnosis-db-schema-activity-log)))
;; Update database schema for version
- (cond ((<= gnosis-curr-version 2)
+ (cond ((= gnosis-curr-version 2)
(gnosis-db-update-v3)))))
(gnosis-db-init)