What problem does it solve?
Unplanned database schema changes and unvetted migration scripts are a top cause of production outages, data loss, and extended downtime for engineering teams. This skill removes the risk of ad-hoc manual database modifications by providing proven, production-grade migration patterns and safety guardrails.
Core Features & Use Cases
- Cross-platform support: Covers best practices for PostgreSQL and MySQL, plus migration workflows for Prisma, Drizzle, Kysely, Django, TypeORM, and golang-migrate ORMs and tooling.
- Zero-downtime schema changes: Implements the expand-contract pattern for safe column renames, additions, and removals without service interruption.
- Safe data migration workflows: Provides batched backfill templates and pre-migration checklists to avoid table locks and performance degradation on large datasets.
- Real-world use case: A SaaS team needs to add a required account_tier column to a 12M row customers table; this skill guides them through adding a nullable column first, backfilling in small batches, then adding the NOT NULL constraint without locking the table or causing downtime.
Quick Start
Use the database-migrations skill to design a zero-downtime migration plan to add a non-null phone_number column to your existing users table, including batched backfill and concurrent index creation steps.