Documentation
Install it, point it at a migration, read what comes back. Everything below is free and runs offline, and none of it needs an account.
npx migrationpilot analyze migrations/Getting started
Six pages, in the order most people need them.
Quick Start
Get started with MigrationPilot in under 2 minutes.
Configuration
Configure MigrationPilot with a YAML config file or package.json.
GitHub Action
Run MigrationPilot as a GitHub Action to catch unsafe migrations in pull requests.
CI Integration
Integrate MigrationPilot with GitHub Actions, GitLab CI, Bitbucket Pipelines, and other CI systems.
Programmatic API
Use MigrationPilot as a library in your Node.js applications.
CLI Reference
Complete reference for all MigrationPilot CLI commands and options.
The rules
All 112 of them, with the SQL that trips each one and the safe rewrite. 20 carry an auto-fix. 15 read production context from a live database and stay silent without one.
Framework guides
Where your tool writes its migrations, and the CI step that checks them.
TypeScript / JavaScript
Prisma
Prisma uses declarative schema files and generates SQL migrations via prisma migrate.
Python
Django
Django generates Python migration files that execute SQL. Use sqlmigrate to extract the SQL.
JavaScript
Knex.js
Knex.js uses JavaScript migration files. Write raw SQL migrations for best results.
TypeScript / JavaScript
TypeORM
TypeORM generates migration files with up/down methods. Use query logging to extract SQL.
TypeScript
Drizzle ORM
Drizzle generates SQL migration files via drizzle-kit.
JavaScript
Sequelize
Sequelize uses JavaScript migration files with queryInterface methods.
Ruby
Ruby on Rails
Rails Active Record migrations are Ruby files. Extract SQL with schema statements.
Elixir
Ecto (Elixir)
Ecto migrations are Elixir modules. Use raw SQL execute statements for best results.
SQL
Flyway
Flyway uses versioned SQL migration files (V1__description.sql). Perfect fit for MigrationPilot.
SQL / XML / YAML
Liquibase
Liquibase supports multiple changelog formats. Use SQL changelogs for best results.
Python
Alembic
Alembic migrations are Python files. Use alembic upgrade --sql to extract SQL.
Go / SQL
goose
goose uses SQL or Go migration files. SQL migrations work directly with MigrationPilot.
SQL
dbmate
dbmate uses plain SQL migration files. Perfect fit for MigrationPilot.
SQL
Sqitch
Sqitch uses change-based SQL migration scripts organized in deploy/revert/verify directories.
Provider guides
How to connect, and what to watch for, when the 15 production-context rules read your catalog.
Amazon RDS for PostgreSQL
Amazon RDS manages PostgreSQL instances with automated backups, failover, and scaling.
Google Cloud SQL
Cloud SQL provides fully managed PostgreSQL instances on Google Cloud.
Neon
Neon is serverless PostgreSQL with branching, autoscaling, and instant provisioning.
Supabase
Supabase provides a PostgreSQL database with auth, storage, and realtime built in.
Railway
Railway provides instant PostgreSQL databases with automatic backups and easy deployment.
Crunchy Data (PGO)
Crunchy Data provides enterprise PostgreSQL via PGO (Postgres Operator) on Kubernetes.
Aiven for PostgreSQL
Aiven provides managed PostgreSQL with multi-cloud support and advanced monitoring.
CockroachDB
CockroachDB is a distributed SQL database with PostgreSQL wire compatibility.
DigitalOcean Managed Databases
DigitalOcean provides managed PostgreSQL with automated failover, backups, and scaling.