adjusted upgrade check logic for instances with no schemaLog

v1.18.x
Julian Lam 8 years ago
parent a2662f8b69
commit 93c96da0b9

@ -507,12 +507,11 @@ install.setup = function (callback) {
setCopyrightWidget,
function (next) {
var upgrade = require('./upgrade');
upgrade.check(function (err, uptodate) {
if (err) {
upgrade.check(function (err) {
if (err && err.message === 'schema-out-of-date') {
upgrade.run(next);
} else if (err) {
return next(err);
}
if (!uptodate) {
upgrade.upgrade(next);
} else {
next();
}

Loading…
Cancel
Save