Default SQLite's user_version to zero.
I saw nil here with Sqlite.jsm.
This commit is contained in:
parent
b11b6c92d9
commit
9e4e95ce51
1 changed files with 3 additions and 1 deletions
|
@ -101,7 +101,9 @@
|
|||
(defn get-user-version [db]
|
||||
(go-pair
|
||||
(let [row (first (<? (all-rows db ["PRAGMA user_version"])))]
|
||||
(:user_version row))))
|
||||
(or
|
||||
(:user_version row)
|
||||
0))))
|
||||
|
||||
(defn set-user-version [db version]
|
||||
(execute! db [(str "PRAGMA user_version = " version)]))
|
||||
|
|
Loading…
Reference in a new issue