From 6adba2f355128c57c8d5b958db99ca9fb6fdeffb Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Sat, 7 Jun 2014 10:46:44 -0700 Subject: [PATCH] Don't run the database updater if the version is higher than current --- lib/database/update.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/database/update.js b/lib/database/update.js index 526e49e8..8db7b092 100644 --- a/lib/database/update.js +++ b/lib/database/update.js @@ -19,6 +19,9 @@ module.exports.checkVersion = function () { }); } else { var v = parseInt(rows[0].value); + if (v >= DB_VERSION) { + return; + } var next = function () { if (v < DB_VERSION) { update(v++, next);