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);