Run database migration (mongodb) with node.js Run database migration (mongodb) with node.js node.js node.js

Run database migration (mongodb) with node.js


I just developed this one: https://github.com/eberhara/mongration - you can also find on npm.

We needed a good node migration framework for mongodb, but could not find any - so we built one.

It has lots of better features than the regular migration frameworks:

  • Checksum (issues an error when a previosuly ran migration does not match its old version)
  • Persists migration state to mongo (there is no regular state file)
  • Full support to replica sets
  • Automatic handle rollbacks (developers must specify the rollback procedures)
  • Ability to run multiple migrations (sync or async) at the same time
  • Ability to run migrations against different databases at the same time


Take a look at https://github.com/emirotin/mongodb-migrations it seems to be more feature rich, mature and maintained.