What problem does it solve?
Unsafe, unplanned database schema changes are a leading cause of production downtime, data inconsistency, and extended outage recovery times for engineering teams.
Core Features & Use Cases
- Cross-database and ORM support: Includes best practices for PostgreSQL, MySQL, and popular ORMs including Prisma, Drizzle, Django, TypeORM, and golang-migrate.
- Zero-downtime migration patterns: Provides the expand-contract workflow to add, modify, or remove columns and indexes without blocking production writes.
- Safety guardrails: Includes a pre-migration checklist, anti-pattern avoidance guidance, and batch processing patterns for large data backfills to prevent table locks and long-running transactions.
- Use Case: A team needs to add a non-null
avatar_url column to a 10M row users table without downtime; this skill guides them to add the column as nullable first, backfill data in batches, then add the NOT NULL constraint in a separate migration.
Quick Start
Use the database-migrations skill to plan and execute a zero-downtime schema change to add a nullable avatar_url column to the existing users table in your PostgreSQL production database.