Skip to content

Commit

Permalink
Fixed min/0
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Oct 26, 2015
1 parent 6a6b395 commit e9e564a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,11 +441,11 @@ var upgrade = function (db, schemaPath, callback) {

async.eachSeries(upgradeSchema, function (action, callback) {

if (action['min_version'] && action['min_version'] < originalVersion) {
if (action['min_version'] && action['min_version'] >= originalVersion) {
return callback();
}

if (action['max_version'] && action['max_version'] > originalVersion) {
if (action['max_version'] && action['max_version'] <= originalVersion) {
return callback();
}

Expand Down

0 comments on commit e9e564a

Please sign in to comment.