Database Migrations & Schema Patterns

•
9
•

Implements safe, zero-downtime database schema changes and data migrations across multiple SQL dialects and ORMs.

This skill provides Claude Code with a comprehensive framework for managing production database transitions safely. It includes specialized patterns for PostgreSQL and MySQL, implementation guides for popular ORMs like Prisma, Drizzle, and Django, and robust strategies for zero-downtime deployments using the expand-contract pattern. By enforcing best practices such as concurrent indexing and separating schema from data migrations, it ensures that database updates are reversible, efficient, and free from locking issues that could impact application availability in high-scale environments.

Key Features

01Safe data backfill scripts using batch processing and progress monitoring
02Framework-specific workflows for Prisma, Drizzle, Django, and golang-migrate
039 GitHub stars
04Zero-downtime expand-contract migration strategies
05Comprehensive migration safety checklists to prevent production table locks
06PostgreSQL-optimized patterns including concurrent indexing and instant defaults

Use Cases

01Renaming columns or tables in live production systems without dropping application availability
02Converting existing database fields from nullable to NOT NULL with safe data backfilling
03Adding indexes to large, high-traffic tables using non-blocking concurrent operations