Manages database schema migrations with automated generation, validation, and zero-downtime execution patterns.
This skill empowers developers to handle complex database schema changes across PostgreSQL, MySQL, and MongoDB with precision and safety. It provides comprehensive guidance for generating versioned migration files, writing idempotent SQL, and implementing robust rollback procedures. Whether you are using frameworks like Prisma, Flyway, and Alembic or raw SQL versioning, this skill ensures best practices such as expand-contract patterns for zero-downtime deployments and online DDL tools for large-scale table migrations, minimizing risk and ensuring data integrity throughout the application lifecycle.
Key Features
01Specialized handling for large-scale table migrations (>10M rows)
02Support for major frameworks including Flyway, Alembic, Prisma, and Knex
03Automated generation of versioned UP and DOWN migration scripts
04Zero-downtime migration strategies using expand-contract patterns
05Pre-flight schema validation and idempotency checking
060 GitHub stars
Use Cases
01Managing schema versioning across development, staging, and production environments
02Refactoring monolithic tables into normalized multi-table structures
03Adding non-nullable columns to high-traffic production tables without downtime