Umzug
Reasonable, with limits. 3rd of 7 database migration tools.
Umzug is a small, framework-agnostic migration runner for Node.js. It tracks which migration steps have run, and Sequelize, MikroORM and Medusa build on it. It is a solid, safe engine with wide reach, but development is slow and it is low-level, so for a new project it is a reasonable choice rather than the default.
Best for: Teams that want plain-code migrations in TypeScript or JavaScript, with any database client or custom storage, run from their own code or CLI.
Scores
Overall6.6
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Umzug is a dependable, flexible migration engine that major ORMs trust, and it has a clean security record. Maintenance has slowed to near-minimal, and its download growth trails the category. For Postgres projects, node-pg-migrate is more active and more fully featured. It is a reasonable pick when you need custom, code-based migrations across databases, but not the category default.
- peers node-pg-migrate: 260 commits last year; downloads up 11x
- github commitsLastYear: 7 commits
- dependents repos: 52,927, the widest embedded use in the category
- alexw-co-uk.pages.dev/blog-posts/node/migrations/bbc/2024/04/06/1000-node-database-migrations: Reviewer prefers Knex migrations over Umzug
GPT-6.2 Sol: 7.1, likely 5.9 to 8.0
Choose Umzug when migrations need to use application code, especially with Sequelize or a custom database client. For new PostgreSQL-only projects that want built-in advisory locking and transaction handling, node-pg-migrate is the stronger choice. Dbmate is simpler for teams that prefer plain SQL and a standalone CLI. Umzug's slow release cadence and the work required to coordinate migrations across hosts keep the recommendation focused on its best fit.
- raw.githubusercontent.com/sequelize/umzug/v3.8.3/README.md: Shows the application integration and storage options that distinguish Umzug.
- salsita.github.io/node-pg-migrate: Documents PostgreSQL advisory locking, transactions, and order checks.
- github.com/amacneil/dbmate: Documents a standalone SQL workflow with transaction support and schema dumps.
- github.releasesLastYear, github.commitsLastYear, peers: Recent maintenance trails both alternatives.
Needed by many5.9
How many developers need a tool for this job?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Most backend projects that use a SQL or document database need migrations. Umzug is database-agnostic, so it can serve all of them. Many teams, though, get migrations from their ORM or schema tool and never pick a runner like this directly.
- github description: Framework agnostic migration tool for Node.js
- pkgpulse.com/guides/best-database-migration-tools-nodejs-2026: Works with any database client; a niche next to schema-diff tools
GPT-6.2 Sol: 5.7, likely 4.5 to 6.9
Schema migration is a recurring need for teams that own a relational database. Umzug supports multiple database clients through its configurable context and storage, especially when the application already runs on Node.js. The survey establishes that Node.js and relational databases are common, which only indirectly measures demand for an embedded migration runner.
- survey.stackoverflow.co/2026/technology/data: Node.js, PostgreSQL, SQLite, and MySQL are widely used.
- raw.githubusercontent.com/sequelize/umzug/v3.8.3/README.md: Node.js runner with configurable context and storage.
Helps a lot6.7
How well does it do the job for those who need it?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
The API is clean and typed, supports async and ESM migrations, has pluggable storage and a CLI, and handles up, down and partial runs well. It is a bare runner, though. It does not generate SQL or diff schemas, and it has no locking and only modest documentation. One independent writer found Knex migrations similar but better documented.
- npm hasTypes: Ships TypeScript types
- pkgpulse.com/guides/best-database-migration-tools-nodejs-2026: Down steps are hand-written and there is no SQL generation
- alexw-co-uk.pages.dev/blog-posts/node/migrations/bbc/2024/04/06/1000-node-database-migrations: Knex migrations seen as similar with far better docs
- github.com/sequelize/umzug/releases: Recent releases added ESM support and Windows path fixes
GPT-6.2 Sol: 7.4, likely 6.3 to 8.4
The typed context, selective rollback, configurable storage, and clear error messages make the runner easy to integrate. The bundled lock uses the filesystem, and a user reported that Sequelize storage could leave migration records committed after their shared transaction rolled back. A working deployment therefore depends on how the application handles transactions and concurrency. Independent evidence on performance and AI-generated migration correctness is limited.
- raw.githubusercontent.com/sequelize/umzug/v3.8.3/README.md: Documents typed migrations, rollback, storage, errors, and file locking.
- github.com/sequelize/umzug/issues/708: Users describe inconsistent migration history after rollback of a shared transaction.
- github.com/lmco/tir/issues/43: A downstream team reports TypeScript and ESM friction with the CLI.
- github.com/alexander-williamson/node-database-migrations: An independent comparison with examples favors Umzug's flexibility and TypeScript support.
Holds up over time5.3
Will it still be a good choice in two years?
Claude Opus 5.5: 5.0, likely 4.0 to 7.0
The project is not archived and saw a push yesterday. Still, it had only 7 commits and one release (v3.8.3, a dependency security update) in the past year, and Scorecard marks it as not maintained. Because MikroORM, Medusa and Sequelize depend on it, it is unlikely to vanish. The API has stayed stable through v3, so upgrades rarely break code.
- github commitsLastYear: 7 commits in the last year
- github releasesLastYear: 1 release, v3.8.3 on 2026-05-01
- scorecard Maintained: Score 0
- mikro-orm.io/docs/migrations: MikroORM migrations are built on umzug
GPT-6.2 Sol: 5.5, likely 4.2 to 6.8
Seven commits and one release over the past year put Umzug well behind dbmate and node-pg-migrate on maintenance activity. Several pull requests have been open for more than a year, and recent GitHub releases come from one maintainer. The May security release shows continued upkeep, and the maintainer accepts sponsorship. The number of people who can publish to npm and the funding available for ongoing work remain unclear.
- github.commitsLastYear, github.releasesLastYear, peers: Seven commits and one release, with substantially higher commit counts for dbmate and node-pg-migrate.
- github.com/sequelize/umzug/releases: Recent releases share a publisher, and the latest updates dependencies.
- github.com/sequelize/umzug/pulls: Multiple open pull requests date to 2024 and 2025.
- github.com/sponsors/mmkal: The release maintainer lists Umzug on their sponsorship page.
Used widely6.5
How many use it, and is that growing?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Downloads are 12.6M per 4 weeks, and 52,927 dependent repos is far more than any peer. Most of that comes from installs through sequelize-cli, MikroORM and Medusa rather than direct choices. Downloads grew 2.3x in a year, below the 4.1 median, while node-pg-migrate and dbmate grew much faster, so Umzug is losing share.
- npm downloadsLast4Weeks: 12.55M, up from 5.47M a year ago (ratio 2.3)
- medianDownloadsRatio: Median ratio is 4.1
- dependents repos: 52,927 repos, against at most about 3,000 for peers
- cdn.jsdelivr.net/npm/@medusajs/utils@2.15.3/dist/migrations/index.d.ts: Medusa uses umzug internally
GPT-6.2 Sol: 5.9, likely 4.6 to 7.2
The 52,927 indexed dependent repositories give Umzug the largest observed footprint among its peers. Downloads grew 2.30×, below the catalog's 4.1× baseline and well behind dbmate and node-pg-migrate, which points to a loss of relative ground. Sequelize CLI installs Umzug 2 transitively, and MikroORM 7 removed Umzug, so the share of installs attributable to teams choosing Umzug 3 remains uncertain.
- dependents.repos, dependents.packages, github.stars, peers: 52,927 indexed repositories, 333 indexed packages, and 2,225 stars.
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio, peers: 12.55 million downloads versus 5.47 million, below the growth baseline.
- github.com/sequelize/cli/blob/v6.6.5/package.json: Sequelize CLI declares Umzug 2 as a dependency.
- mikro-orm.io/blog/mikro-orm-7-released: MikroORM 7 replaced Umzug with its own migration runner.
Vouched for6.2
Who stands behind it being good?
Claude Opus 5.5: 6.0, likely 5.0 to 7.0
Several well-known ORMs and frameworks (Sequelize, MikroORM, Medusa) build on it, which is a strong sign of trust in the engine. Independent write-ups are few and lukewarm, and there is no survey data or recent community discussion on Hacker News or Bluesky.
- mikro-orm.io/docs/migrations: MikroORM integrates umzug
- pkgpulse.com/guides/best-database-migration-tools-nodejs-2026: Listed among the top 2026 tools for programmatic migrations
- hackerNews stories / bluesky posts: 0 stories and 0 posts
GPT-6.2 Sol: 6.3, likely 5.1 to 7.5
Sequelize recommends Umzug for programmatic migrations, and the Lockheed Martin and MITRE TIR project uses it to run database changes. An independent comparison favors its flexibility, and developers report successful use with custom SQL in deployment workflows. Recent independent benchmarks and satisfaction data specific to Umzug are sparse.
- sequelize.org/docs/v7/models/migrations: Sequelize lists Umzug as a migration option.
- github.com/lmco/tir/issues/43: The TIR project documents use at startup and through its CLI.
- github.com/alexander-williamson/node-database-migrations: Independent examples compare Umzug with Knex and db-migrate.
- reddit.com/r/node/comments/1rftsv0/prisma_how_do_you_handle_migrations_custom_sql: Developers report practical use with custom SQL and production CI.
Safe6.7
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
It has no advisories ever, an MIT licence and only 5 dependencies, and the last release patched vulnerable transitive dependencies. The OpenSSF Scorecard is weak at 3.2, with no security policy, unpinned dependencies, broad token permissions and little code review. Releases seem to come from a very small group.
- advisories total: 0 advisories
- npm dependencies: 5 dependencies
- scorecard score: 3.2; Security-Policy, Pinned-Dependencies and Token-Permissions score 0
- security.snyk.io/package/npm/umzug: No known vulnerabilities; MIT
GPT-6.2 Sol: 6.4, likely 5.2 to 7.6
Umzug uses the MIT license, has five direct dependencies, and has no direct OSV advisories in the snapshot. Version 3.8.3 addressed dependency audit findings, and its production lockfile uses a different dependency chain from the one in the open Ajv report. The 3.2 OpenSSF score reflects weak code review and workflow token permissions. Limited evidence about npm publishing safeguards widens the range.
- npm.license, npm.dependencies, advisories.total, scorecard.checks: MIT, five direct dependencies, zero direct advisories, and weak review and token permissions.
- github.com/sequelize/umzug/releases/tag/v3.8.3: The release reports clearing its production dependency audit findings.
- github.com/sequelize/umzug/issues/718: An open report traces Ajv through newer Rushstack 4.x dependencies.
- raw.githubusercontent.com/sequelize/umzug/v3.8.3/pnpm-lock.yaml: The release pins an older Rushstack chain that uses z-schema.
Good
- Migrations are plain async functions, so they can mix schema changes with data backfills and calls to other services.
- It works with any database or client, and the storage that records which steps ran is pluggable (Sequelize, MongoDB, JSON or custom).
- It is written in TypeScript, has a programmatic API plus a CLI, and pulls in only 5 dependencies.
- Sequelize, MikroORM and Medusa run their migrations on it, which keeps it widely tested.
Bad
- It does not generate SQL or diff schemas: you write every up and down step by hand.
- Development is slow, with 7 commits and one release in the last year, and 19 pull requests are still open.
- Its documentation is thinner than that of Knex migrations or node-pg-migrate.
- Glob loading sorts filenames as text, so names must be zero-padded or timestamped to run in the right order.
The numbers
- npm downloads, 4 weeks
- 13M ×2.3 in a year
- GitHub stars
- 2.2k
- Commits, 12 months
- 7
- npm version
- 3.8.3 May 2026
- Versions, 12 months
- 1
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 3.2 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (sequelize/umzug), npm (umzug), OSV and the OpenSSF Scorecard.