Database Migrations & Schema Patterns

•
20
•

Implements safe, zero-downtime database schema changes and data migrations using industry-best practices across multiple SQL engines and ORMs.

This skill equips Claude with expert-level knowledge for managing database lifecycle changes safely in production environments. It provides specialized guidance for PostgreSQL and MySQL, offering specific implementation patterns for popular frameworks like Prisma, Drizzle, Kysely, and Django. By focusing on the 'expand-contract' pattern and zero-downtime strategies, it helps developers avoid table locks, handle large-scale data backfills, and ensure that all migrations are reversible, immutable, and tested against production-sized datasets.

Key Features

01ORM-specific workflows for Prisma, Drizzle, Kysely, and Django
02Safe PostgreSQL and MySQL schema modification patterns
03Migration safety checklists to prevent service interruptions
0420 GitHub stars
05Batch data migration techniques for production-sized datasets
06Zero-downtime 'expand-contract' migration strategies

Use Cases

01Generating automated migration scripts for various ORMs and Go/Python backends
02Planning complex schema changes on high-traffic production databases
03Implementing non-blocking index creation and safe column renames