diff options
Diffstat (limited to '')
-rw-r--r-- | database/db.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/database/db.js b/database/db.js index d849429..259ab58 100644 --- a/database/db.js +++ b/database/db.js @@ -11,7 +11,7 @@ db.pragma("foreign_keys = ON"); db.transaction(function migrate() { let version; try { - version = db.prepare("SELECT version FROM schema_version").all()[0].version; + version = db.prepare("SELECT version FROM schema_version").get().version; } catch { version = 0; } |