{"slug": "show-hn-migradiff-v1-3-0-postgresql-schema-diff-with-ai-migration-explanation", "title": "Show HN: MigraDiff v1.3.0 – PostgreSQL schema diff with AI migration explanation", "summary": "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.", "body_md": "# v1.3.0 — AI-Powered Migration Explanation & Migrations Folder Support\n\n[Latest](/migradiff/migra/releases/latest)\n\n## Install\n\n```\npip install --upgrade migradiff\n```\n\n## What's New\n\n### AI-Powered Migration Explanation (--explain)\n\nMigraDiff can now explain any migration in plain English — what\n\neach change does, what risks it carries, and safer alternatives\n\nfor destructive operations.\n\n```\npip install migradiff[ai]\nmigra --setup-ai\nmigra --explain postgres://db_a postgres://db_b\n```\n\nPowered by Claude Haiku (Anthropic). Bring your own API key —\n\nno data is sent to MigraDiff servers. Works with --output json,\n\n--from-file, --from-migrations-dir, and all existing flags.\n\n### Migrations Folder Input Mode (--from-migrations-dir)\n\nDiff a directory of numbered migration files against a base\n\nschema without requiring a live branch database.\n\n```\nmigra --from-migrations-dir ./supabase/migrations \\\n  postgres://db_production\n```\n\nSupports Supabase timestamp format, Flyway versioned format,\n\nand standard numeric prefixes. Files applied in correct numeric\n\nsort order (9 before 10, not lexicographic).\n\n### Also in this release\n\n- Naming clarification in README — CLI stays\n`migra`\n\nfor backward\n\ncompatibility, package is`migradiff`\n\nFull changelog: [https://github.com/migradiff/migra/blob/main/CHANGELOG.md](https://github.com/migradiff/migra/blob/main/CHANGELOG.md)\n\n## Upgrading\n\n```\npip install --upgrade migradiff\n```\n\n", "url": "https://wpnews.pro/news/show-hn-migradiff-v1-3-0-postgresql-schema-diff-with-ai-migration-explanation", "canonical_source": "https://github.com/migradiff/migra/releases/tag/v1.3.0", "published_at": "2026-05-30 16:34:22+00:00", "updated_at": "2026-05-30 16:46:47.820434+00:00", "lang": "en", "topics": ["ai-tools", "ai-products", "artificial-intelligence", "large-language-models"], "entities": ["MigraDiff", "Claude Haiku", "Anthropic", "Supabase", "Flyway"], "alternates": {"html": "https://wpnews.pro/news/show-hn-migradiff-v1-3-0-postgresql-schema-diff-with-ai-migration-explanation", "markdown": "https://wpnews.pro/news/show-hn-migradiff-v1-3-0-postgresql-schema-diff-with-ai-migration-explanation.md", "text": "https://wpnews.pro/news/show-hn-migradiff-v1-3-0-postgresql-schema-diff-with-ai-migration-explanation.txt", "jsonld": "https://wpnews.pro/news/show-hn-migradiff-v1-3-0-postgresql-schema-diff-with-ai-migration-explanation.jsonld"}}