This release adds 4 notable features for engineering teams evaluating rollout.
✓ No known CVEs patched in this version
Summary
AI summaryFour optional AI-powered flags added: explain, rollback, advise, and generate migrations from natural language.
Changes in this release
| Type | Severity | Summary | CVE |
|---|---|---|---|
| Security | High |
Hard‑refuses bulk‑destructive requests in --generate mode before any API call Hard‑refuses bulk‑destructive requests in --generate mode before any API call Source: llm_adapter@2026-06-02 Confidence: high |
— |
| Feature | Low |
Adds --explain flag for plain-English migration explanation Adds --explain flag for plain-English migration explanation Source: llm_adapter@2026-06-02 Confidence: high |
— |
| Feature | Low |
Adds --rollback flag to generate reversal migrations Adds --rollback flag to generate reversal migrations Source: llm_adapter@2026-06-02 Confidence: high |
— |
| Feature | Low |
Adds --advise flag for deterministic AI risk assessment of migrations Adds --advise flag for deterministic AI risk assessment of migrations Source: llm_adapter@2026-06-02 Confidence: high |
— |
| Feature | Low |
Adds --generate flag to create migrations from plain‑English descriptions using live schema Adds --generate flag to create migrations from plain‑English descriptions using live schema Source: llm_adapter@2026-06-02 Confidence: high |
— |
| Feature | Low |
Marks all AI output as AI‑generated with temperature 0 for determinism Marks all AI output as AI‑generated with temperature 0 for determinism Source: llm_adapter@2026-06-02 Confidence: high |
— |
| Dependency | Low |
Requires Anthropic API key; install migradiff[ai] for AI features Requires Anthropic API key; install migradiff[ai] for AI features Source: llm_adapter@2026-06-02 Confidence: high |
— |
| Bugfix | Medium |
Soft‑warns and flags individual destructive operations in --generate mode Soft‑warns and flags individual destructive operations in --generate mode Source: llm_adapter@2026-06-02 Confidence: high |
— |
Full changelog
MigraDiff v1.4.0 turns the PostgreSQL schema-diff tool into a complete
AI-powered migration assistant. Four schema-aware AI flags, all optional —
the core diff engine stays dependency-free.
Added
--explain— plain-English explanation of any migration--rollback— generates a reversal migration for a given diff--advise— deterministic + AI risk assessment of a migration--generate— writes a migration from a plain-English description,
using your real table names and column types from a
live connection or schema file
Safety
--generatehard-refuses bulk-destructive requests ("drop all",
"wipe", etc.) before any API call is made- Soft-warns and flags individual destructive operations
- All AI output is marked as AI-generated; temperature 0 for determinism
--generateis combinable with--advisefor immediate risk feedback
175 tests passing. AI features require an Anthropic API key:
pip install migradiff[ai]
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About MigraDiff
All releases →Related context
Related tools
Earlier breaking changes
- v1.1.0 Requires uninstalling original migra before installing migradiff
Beta — feedback welcome: [email protected]