Show HN: MigraDiff v1.3.0 – PostgreSQL schema diff with AI migration explanation
MigraDiff v1.3.0 is released, adding AI-powered migration explanation and migrations folder input mode. Use --explain to get plain English explanations of changes, risks, and safer alternatives, powered by Claude Haiku. Bring your own API key. Also, --from-migrations-dir allows diffing against a directory of migration files without a live database.
forked from djrobstep/migra
Notifications You must be signed in to change notification settings
Fork 0
Star 3
v1.3.0 — AI-Powered Migration Explanation & Migrations Folder Support
Latest
Marketplace
Latest
Marketplace
Sorry, something went wrong.
Filter
Loading
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
No results found
leochong
released this
30 May 15:28
·
3 commits
to main since this release
v1.3.0
c4e4ac0
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 is migradiff
Full changelog: https://github.com/migradiff/migra/blob/main/CHANGELOG.md
Upgrading
pip install --upgrade migradiff