MigrationSafe

JSON →
library 0.1.8 ·javascript
verified Jun 5, 2026

MigrationSafe is a CLI tool (v0.1.8) that acts as a linter for PostgreSQL migration files, detecting dangerous operations like DROP TABLE, unsafe ALTER COLUMN, and missing indexes before they reach production. It provides severity levels (critical, warning, info), multiple output formats (terminal, JSON, Markdown, GitHub), and optional AI-powered rewrite suggestions via Claude. Unlike general SQL linting tools, it focuses specifically on migration safety and integrates with any migration framework. Released weekly on npm.