Flux Database Migrator

•
47
•

Generates zero-downtime SQL migrations and detailed deployment sequences for safe production database schema changes.

Flux is a specialized data engineering skill designed for Claude Code that automates the creation of production-ready database migrations. It intelligently detects your project's migration framework—such as Prisma, Drizzle, or Alembic—and classifies the risk level of requested schema changes. For risky operations like renaming columns or adding constraints, Flux implements sophisticated 'expand and contract' patterns to ensure the application remains online throughout the process. Every output includes fully executable forward and rollback SQL scripts, alongside a comprehensive deployment plan and safety checklist to prevent table locking and data loss.

Key Features

01Automatic detection of migration tools like Prisma, Drizzle, Alembic, and Knex
02Detailed deployment sequences with locking risk and duration estimates
03Multi-step 'expand and contract' migration generation for zero-downtime
04Risk-based classification for safe vs. risky schema operations
0547 GitHub stars
06Concurrent index creation and non-validating constraint strategies

Use Cases

01Safely renaming or dropping columns in high-traffic production tables
02Adding NOT NULL constraints to existing columns without blocking application access
03Generating complex multi-step migrations for data-preserving schema refactors