# Graphile Migrate: 5.5 out of 10

Reasonable, with limits. 6th of 7 in [Database migration tools](https://elestia.ai/opensource/migrations/index.md).

Graphile Migrate is a SQL-first, roll-forward-only migration tool for PostgreSQL. Its watch mode re-runs an idempotent "current" migration while you develop. It is well made for Postgres teams who like its workflow, especially users of PostGraphile. But the stable npm release (1.4.1) dates from December 2022, v2 is still at release candidate stage, and use is small next to node-pg-migrate and dbmate.

**Best for:** PostgreSQL teams, especially PostGraphile users, who want to write plain SQL migrations with a fast watch-and-commit loop and never roll back.

## Scores

- **Overall: 5.5** (likely 4.4 to 6.6)
  - Claude Opus 5.5 (5.0): It is a good, opinionated tool for Postgres teams who want SQL-only, roll-forward migrations, and a natural fit for PostGraphile users. The stalled stable release, the long v2 release-candidate phase, reliance on one main maintainer, and small use keep it below node-pg-migrate and dbmate for most new Postgres projects.
  - GPT-6.2 Sol (5.9): Graphile Migrate earns its place when a small PostgreSQL team will use watch mode and shadow replay every day. For most new SQL-first projects, dbmate is simpler to set up, and node-pg-migrate is a stronger fit for teams that want a typed migration API. The long gap between stable releases limits the recommendation, and the active 2.0 work leaves room for it to improve.
- **Needed by many: 4.2** (likely 3.2 to 5.3)
  - Claude Opus 5.5 (4.0): Most backend projects need migrations. This tool serves only PostgreSQL users who want raw SQL and accept roll-forward only, so its audience is a clear niche inside the category.
  - GPT-6.2 Sol (4.4): PostgreSQL was used by 57.9% of respondents to the database question in the 2026 Stack Overflow survey. Graphile Migrate serves the subset that wants hand-written SQL and a roll-forward CLI. The survey gives a sense of PostgreSQL's reach, while demand for this workflow is harder to measure.
- **Helps a lot: 6.6** (likely 5.6 to 7.7)
  - Claude Opus 5.5 (6.5): The watch/commit workflow, the shadow database, hooks, placeholders and migration hashes are thoughtful and work well for Postgres. Down migrations are missing, the idempotency rule takes learning, and open issues show rough edges: lost SQL errors, a race in a hook, and Supabase role setup. Its niche workflow also means AI agents get it right less often than mainstream tools.
  - GPT-6.2 Sol (6.7): Version 1.4.1 combines watch mode, shadow replay and a record of applied SQL migrations. The docs explain how to write rerunnable SQL, and failed command hooks report stdout and stderr. Strict ordering adds coordination when changes land in parallel, and the typed API is internal. The score reflects documented behavior and user reports, with limited independent evidence on speed or AI-generated migrations.
- **Holds up over time: 5.2** (likely 3.7 to 6.7)
  - Claude Opus 5.5 (5.0): The repository is active, with 132 commits and v2 release candidates in 2026. But nothing new has reached the npm latest tag since 2022. The work rests mainly on one maintainer, funded by sponsorship. v2 brings fixtures and requires Node 18, so moving to it may take some upgrade work.
  - GPT-6.2 Sol (5.3): The repository logged 132 commits in a year and shipped several 2.0 release candidates, with sponsorship supporting the wider Graphile suite. The stable npm release dates to December 2022, and every Node.js version listed in its docs has reached end of life. Several user issues remain open from earlier years, and the timing of a stable 2.0 release is uncertain.
- **Used widely: 3.2** (likely 2.0 to 4.5)
  - Claude Opus 5.5 (3.5): It had 362k downloads in the last 4 weeks, about 4.0x a year ago. That is roughly the 4.1 median, so it is holding its share, not gaining. ecosyste.ms finds only 48 dependent repos, against 1,035 for node-pg-migrate and 3,053 for Postgrator. Many downloads probably come from CI and from the PostGraphile ecosystem.
  - GPT-6.2 Sol (2.9): Four-week downloads grew from about 89,600 to 362,000, a 4.04× increase just below the 4.1× catalog baseline. Ecosyste.ms found 48 dependent repositories and seven packages, compared with 1,035 repositories for node-pg-migrate. Partial repository coverage and repeat installs leave the number of teams choosing it uncertain.
- **Vouched for: 4.1** (likely 2.7 to 5.5)
  - Claude Opus 5.5 (3.5): Validation comes mainly from the Graphile/PostGraphile ecosystem and a few positive blog posts. I found no survey data, independent benchmarks or critical comparisons. There are no Hacker News stories and no Bluesky posts.
  - GPT-6.2 Sol (4.7): Wageningen University & Research documents using Graphile Migrate for the Soils4Africa database it hosts. An independent comparison highlights the local SQL workflow, and a Supabase user reports success across several projects with a custom setup. This is a small set of deployments and user reports, with little evidence on broader satisfaction or performance.
- **Safe: 6.1** (likely 4.9 to 7.3)
  - Claude Opus 5.5 (6.5): There are no known advisories, the licence is MIT, and it pulls in 12 direct dependencies. The OpenSSF Scorecard is 4.8. Code review, token permissions, pinned dependencies and SAST score low, and few people can publish releases.
  - GPT-6.2 Sol (5.7): The stable package uses the permissive MIT license, has 12 direct dependencies and has zero advisories in the supplied OSV data. OpenSSF Scorecard rates it 4.8, with weak code review, workflow token permissions and dependency pinning. The project has a private reporting channel, and the provenance and publisher access for the stable npm release remain unverified.

## Good

- Migrations are plain PostgreSQL SQL, with no DSL to learn and nothing that ties you to an ORM.
- Watch mode re-runs the current migration on every save, which makes schema work fast to iterate on.
- A shadow database and hashes on committed migrations catch drift and edits to migrations that already ran.
- No known advisories, an MIT licence, and a small dependency tree.

## Bad

- The stable npm release has not changed since December 2022, and v2 is still in release candidates.
- It works only with PostgreSQL and only rolls forward, with no down migrations.
- Every current migration must be idempotent, which adds learning and discipline for new users.
- Few independent write-ups and a small dependent count compared with node-pg-migrate and dbmate.

## The numbers

- Downloads, 4 weeks: 362k
- In a year: ×4.0
- GitHub stars: 836
- Commits, 12 months: 132
- Last npm release: Dec 2022
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/graphile/migrate
- npm: https://www.npmjs.com/package/graphile-migrate

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.
