- Home
- Database Migration Tools
- migrate-mongo
On the recordRead 4 Oct 202614 facts
migrate-mongo
Plans and prices
migrate-mongo
Free
MIT-licensed · Node.js >=20.0.0 · MongoDB 4.x, 5.x, 6.x, or 7.x
Read 4 Oct 2026 · github.com
On the record
- Customization
- Actions other than init accept options for a custom configuration file and a custom migrations directory.github.com · read 4 Oct 2026
- Error behavior
- If a migration fails, migrate-mongo stops without continuing through the remaining pending migrations.github.com · read 4 Oct 2026
- File hashes
- An optional file-hash setting lets changed migration files run again, provided scripts are written to be safely rerunnable.github.com · read 4 Oct 2026
- Integrations
- Migration scripts can use Node.js modules and installed npm packages from the migration project's package.json.github.com · read 4 Oct 2026
- License
- The repository identifies the project as MIT licensed.github.com · read 4 Oct 2026
- Locking
- The configuration supports a lock collection and a lock TTL, with a TTL value of 0 disabling the feature.github.com · read 4 Oct 2026
- Maintainer
- The package metadata names Sebastian Van Sande as author.github.com · read 4 Oct 2026
- Migration commands
- Its CLI can initialize a project, create migrations, apply pending migrations, undo the last applied migration, and show migration status.github.com · read 4 Oct 2026
- Migration tracking
- Applied changes are recorded in a configurable MongoDB changelog collection.github.com · read 4 Oct 2026
- Module formats
- New projects default to CommonJS, with ECMAScript Modules also supported.github.com · read 4 Oct 2026
- Purpose
- migrate-mongo is a database migration tool for MongoDB running in Node.js.github.com · read 4 Oct 2026
- Requirements
- The README lists Node.js 20 or higher and MongoDB versions 4.x through 7.x as requirements.github.com · read 4 Oct 2026
- Reversible migrations
- Migration scripts provide up and down functions for applying and, where possible, rolling back changes.github.com · read 4 Oct 2026
- Transactions
- Migration scripts can use MongoDB's Transactions API through the supplied MongoClient, requiring MongoDB 4.0 or higher and migrate-mongo 7.0.0 or higher.github.com · read 4 Oct 2026