What problem does it solve?
This skill eliminates the risk of production outages, data loss, and service downtime caused by unsafe, unplanned, or manual database schema and data changes.
Core Features & Use Cases
- Zero-Downtime Schema Changes: Implements expand-contract patterns and safe DDL operations for PostgreSQL and MySQL to avoid table locks and service interruptions during schema updates.
- Safe Data Migrations: Provides batched backfill workflows and enforces separation of DDL and DML operations to prevent long-running transactions that lock large production tables.
- Cross-ORM Standardization: Includes tooling guidance and code examples for Prisma, Drizzle, Kysely, Django, and golang-migrate to unify migration workflows across different tech stacks.
- Real-World Use Case: For a SaaS platform adding a new required user profile field, this skill guides you to add the nullable column first, backfill existing records in a separate batched migration, deploy application code updates to use the new field, then drop the old field in a later migration, all without any user-facing downtime.
Quick Start
Use the database-migrations skill to create a zero-downtime migration plan for adding a non-null email column to your existing 10 million row users table.