HN Hall of Fame Weekly email

Migra – A schema diff tool for PostgreSQL

github.com Software & code Source code Software engineering Candidate
Screenshot of github.com captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 4 calendar years, with breakout response in 2 of them.

submissions
5
submitters
5
observed span
2017–2022
peak thread · 29 comments
177 pts
latest 20+ return · 2022-02-25
136 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

This fills a gap for me. I tend to think of a database schema in declarative terms ("table T has these fields"), whereas the SQL DDL statements are more akin to commands (ALTER table T, adding a column). This always felt bad to me, because in order to define the final state of your schema, you need to define the initial state plus the commands necessary to get to the new one. A diff tool frees you from this pain.

muxator·177-point thread·

This tool is incredibly useful I would also like to share a very similar tool that is much less known: https://github.com/bikeshedder/tusker It's the same thing, except instead of requiring two DB URL's to do the diffing, you give it a "schema.sql" file and a folder path that has your migrations in it, and the path to the current DB. Then it introspects the DB, looks at "schema.sql" + the migration files, and figures out what you've changed in "schema.sql" that…

Out of curiosity, are you familiar with the fact that "migra" as in "la migra" is short/slang for inmigración, meaning the homeland security folks who detain and deport people in the U.S.?

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
318

reference only — not used in Hall rules or ranking

Total comments
51

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2017-03-01Migra: like diff but for PostgreSQL schemasdjrobstep30
2017-09-14Migra: like diff for PostgreSQL schemas; migrations made almost painlessfanf211
2018-03-25Migra – A schema diff tool for PostgreSQLFirst breakout · Best threadnetworked17729
2021-04-08Migra: Like Diff but for Postgres SchemasJarwain10
2022-02-25Migra: Diff for PostgreSQL schemasLatest 20+ point returnthunderbong13621