Skip to content
SPECIFICTION
Get listed

db-migrate vs migrate-mongo

db-migrate

github.com

migrate-mongo

github.com

Side by side

Figuredb-migratemigrate-mongo
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
LinuxYesYes
Self-hostedYesYes
Plans published11
Spec score · Database Migration Tools8.5 (#5)7.6 (#19)
LicenseThe project is distributed under the MIT License.The repository identifies the project as MIT licensed.
Migration commandsThe command-line interface supports up, down, reset, create, and db commands.Its CLI can initialize a project, create migrations, apply pending migrations, undo the last applied migration, and show migration status.
Migration trackingThe documentation says db-migrate creates a migrations table to track which migrations have been applied.Applied changes are recorded in a configurable MongoDB changelog collection.
Purposedb-migrate describes itself as a database migration framework for Node.js.migrate-mongo is a database migration tool for MongoDB running in Node.js.

Plans

db-migrate

  • db-migrateFree

db-migrate pricing →

migrate-mongo

  • migrate-mongoFree

migrate-mongo pricing →

In their own words

db-migrate

db-migrate is a free, open-source database migration framework for Node.js applications. It runs on Linux and can be self-hosted. The command-line interface provides up, down, reset, create, and db commands for applying, rolling back, resetting, creating, and managing migrations. Supported databases listed by the project include MySQL, PostgreSQL, sqlite3, MongoDB, and CockroachDB, with database drivers installed separately. Migration files support callback-based or promise-based interfaces, while the --sql-file option creates separate SQL files for migration-up and migration-down statements. Applied migrations are recorded in a migrations table. Environment settings can come from database.json, with command-line choices for the environment and configuration file. Database usernames and passwords can reference environment variables. Global and local npm installation are documented. Node.js 24 and newer are officially supported; package metadata specifies version 8.0.0 or later. Rollback is supported, and the format is mixed.

Visit github.com

migrate-mongo

migrate-mongo has no write-up on Specifiction yet; its figures are above.

Visit github.com