Ver código fonte

fix(db): wrong schema/version query

Andelf 2 anos atrás
pai
commit
8aa1802c3e
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/main/frontend/db/migrate.cljs

+ 1 - 1
src/main/frontend/db/migrate.cljs

@@ -14,7 +14,7 @@
   "Get schema version from db, the current version is defined in db-schema/version"
   "Get schema version from db, the current version is defined in db-schema/version"
   [db]
   [db]
   (d/q
   (d/q
-   '[:find ?v .
+   '[:find (max ?v) .
      :where
      :where
      [_ :schema/version ?v]]
      [_ :schema/version ?v]]
    db))
    db))