cd /news/ai-tools/show-hn-migradiff-v1-3-0-postgresql-… · home topics ai-tools article
[ARTICLE · art-18614] src=github.com pub= topic=ai-tools verified=true sentiment=↑ positive

Show HN: MigraDiff v1.3.0 – PostgreSQL schema diff with AI migration explanation

MigraDiff v1.3.0 now offers AI-powered migration explanations in plain English, detailing each change's risks and safer alternatives for destructive operations, powered by Claude Haiku with user-provided API keys. The update also introduces a migrations folder input mode that diffs numbered migration files against a base schema without requiring a live branch database, supporting Supabase, Flyway, and standard numeric formats.

read1 min publishedMay 30, 2026

Latest

Install #

pip install --upgrade migradiff

What's New #

AI-Powered Migration Explanation (--explain)

MigraDiff can now explain any migration in plain English — what

each change does, what risks it carries, and safer alternatives

for destructive operations.

pip install migradiff[ai]
migra --setup-ai
migra --explain postgres://db_a postgres://db_b

Powered by Claude Haiku (Anthropic). Bring your own API key —

no data is sent to MigraDiff servers. Works with --output json,

--from-file, --from-migrations-dir, and all existing flags.

Migrations Folder Input Mode (--from-migrations-dir)

Diff a directory of numbered migration files against a base

schema without requiring a live branch database.

migra --from-migrations-dir ./supabase/migrations \
  postgres://db_production

Supports Supabase timestamp format, Flyway versioned format,

and standard numeric prefixes. Files applied in correct numeric

sort order (9 before 10, not lexicographic).

Also in this release

  • Naming clarification in README — CLI stays migra

for backward

compatibility, package ismigradiff

Full changelog: https://github.com/migradiff/migra/blob/main/CHANGELOG.md

Upgrading #

pip install --upgrade migradiff
── more in #ai-tools 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-migradiff-v1…] indexed:0 read:1min 2026-05-30 ·