# Database migration tools

Change a database’s tables step by step, and record which steps ran. Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.

| Rank | Project | Overall | Needed by many | Helps a lot | Holds up over time | Used widely | Vouched for | Safe | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | [dbmate](https://elestia.ai/opensource/migrations/dbmate/index.md) | 7.6 | 6.3 | 7.6 | 7.6 | 5.2 | 6.0 | 6.9 | Teams that write SQL by hand and want one simple migration CLI shared across Node, Go and other services or Docker setups. |
| 2 | [node-pg-migrate](https://elestia.ai/opensource/migrations/node-pg-migrate/index.md) | 7.4 | 5.1 | 7.7 | 7.3 | 5.1 | 5.2 | 7.0 | Node/TypeScript teams on PostgreSQL without an ORM who want typed, reversible migrations that cover Postgres-specific DDL. |
| 3 | [Umzug](https://elestia.ai/opensource/migrations/umzug/index.md) | 6.6 | 5.9 | 6.7 | 5.3 | 6.5 | 6.2 | 6.7 | Teams that want plain-code migrations in TypeScript or JavaScript, with any database client or custom storage, run from their own code or CLI. |
| 4 | [db-migrate](https://elestia.ai/opensource/migrations/db-migrate/index.md) | 5.8 | 5.8 | 6.5 | 5.7 | 4.5 | 3.7 | 7.0 | Teams that need one JavaScript migration CLI across MySQL, PostgreSQL, SQLite or MongoDB and do not use an ORM's own migrator. |
| 5 | [Postgrator](https://elestia.ai/opensource/migrations/postgrator/index.md) | 5.5 | 5.7 | 6.0 | 5.0 | 4.1 | 4.4 | 6.6 | Developers who want to embed a minimal plain-SQL migration runner in a Node app and bring their own database driver. |
| 6 | [Graphile Migrate](https://elestia.ai/opensource/migrations/graphile-migrate/index.md) | 5.5 | 4.2 | 6.6 | 5.2 | 3.2 | 4.1 | 6.1 | PostgreSQL teams, especially PostGraphile users, who want to write plain SQL migrations with a fast watch-and-commit loop and never roll back. |
| 7 | [ley](https://elestia.ai/opensource/migrations/ley/index.md) | 3.2 | 5.1 | 4.6 | 1.8 | 2.4 | 2.0 | 5.4 | Existing projects that already run ley with postgres.js, pg, mysql or better-sqlite3 and want nothing more than plain up and down migration files. |

## The numbers

| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
| --- | --- | --- | --- | --- | --- | --- |
| dbmate | 2.2M | ×16 | 7.6k | 139 | Nov 2026 | 0 |
| node-pg-migrate | 5.3M | ×12 | 1.5k | 260 | Jul 2026 | 0 |
| Umzug | 13M | ×2.3 | 2.2k | 7 | May 2026 | 0 |
| db-migrate | 814k | +73% | 2.3k | 98 | Nov 2026 | 0 |
| Postgrator | 329k | ×2.3 | 466 | 14 | Nov 2026 | 0 |
| Graphile Migrate | 362k | ×4.0 | 836 | 132 | Dec 2022 | 0 |
| ley | 10k | +38% | 271 | 0 | Oct 2022 | 0 |

All categories: https://elestia.ai/opensource/index.md
