Database Migrations & Schema Patterns
Implements safe, reversible database schema changes and zero-downtime data migrations across various SQL dialects and ORMs.
This skill provides comprehensive guidance for managing the database lifecycle with a focus on safety and production stability. It covers essential patterns for PostgreSQL and MySQL, including concurrent index creation, non-blocking column additions, and the 'expand-contract' strategy for zero-downtime updates. With support for major tools like Prisma, Drizzle, Kysely, Django, and golang-migrate, it helps developers avoid common pitfalls such as full table locks, immutable migration drift, and breaking changes in high-traffic environments.
主な機能
0125 GitHub stars
02Optimized SQL patterns for concurrent index and column creation
03Zero-downtime 'expand-contract' deployment strategies
04Batched data backfill patterns to prevent table locking
05Safety checklists for production-ready schema changes
06Multi-ORM support including Prisma, Drizzle, Kysely, and Django
ユースケース
01Adding indexes or columns to large production tables without downtime
02Refactoring existing database schemas while maintaining 24/7 application availability
03Setting up robust migration workflows for new TypeScript, Python, or Go projects