Safe Database Migrations

•
151
•

Implements secure, reversible database schema and data changes using industry best practices for zero-downtime deployments.

This skill equips Claude with specialized knowledge for managing complex database migrations in production environments. It provides standardized patterns and safety checklists for PostgreSQL, MySQL, and popular ORMs like Prisma, Drizzle, and Django. By emphasizing the 'expand-contract' pattern, concurrent indexing, and the separation of DDL and DML, this skill ensures that structural database changes are performant, reversible, and do not cause service interruptions even at production scale.

Key Features

01Safe PostgreSQL schema patterns including concurrent indexing
02Large-scale data migration and batch processing techniques
03Comprehensive migration safety checklists and anti-pattern detection
04151 GitHub stars
05Zero-downtime deployment strategies (Expand-Contract pattern)
06Multi-ORM support for Prisma, Drizzle, Django, and golang-migrate

Use Cases

01Adding columns or indexes to high-traffic production tables without locking
02Performing multi-step data backfills across millions of records
03Standardizing migration workflows for teams using diverse database toolsets