mirror of https://github.com/calzoneman/sync.git
Don't run the database updater if the version is higher than current
This commit is contained in:
parent
5d5bdfc069
commit
6adba2f355
|
@ -19,6 +19,9 @@ module.exports.checkVersion = function () {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
var v = parseInt(rows[0].value);
|
var v = parseInt(rows[0].value);
|
||||||
|
if (v >= DB_VERSION) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var next = function () {
|
var next = function () {
|
||||||
if (v < DB_VERSION) {
|
if (v < DB_VERSION) {
|
||||||
update(v++, next);
|
update(v++, next);
|
||||||
|
|
Loading…
Reference in New Issue