Database Migrations

•
10
•

Guides safe, zero-downtime database schema changes, backfills, and rollbacks across PostgreSQL, MySQL, and modern ORMs.

Database Migrations provides comprehensive best practices and operational patterns for executing zero-downtime schema migrations and data transformations in production environments. It equips developers with safe migration checklists, expand-contract deployment workflows, and ORM-specific guidance for tools like Prisma, Drizzle, Django, and golang-migrate. Whether altering high-traffic PostgreSQL tables, executing batched data backfills, or generating reversible migration files, this skill helps prevent table locks, service disruptions, and schema drift across deployment environments.

主要功能

01Provides safety checklists preventing table locks, unindexed foreign keys, and unsafe defaults
02Covers batched data migration recipes for backfilling millions of records safely
0310 GitHub stars
04Includes tailored CLI workflows and code snippets for Prisma, Drizzle, Django, and golang-migrate
05Applies zero-downtime expand-contract patterns for non-breaking schema evolution
06Enforces best practices for non-blocking concurrent index creation in PostgreSQL

使用场景

01Executing massive data backfill operations without locking tables or degrading app performance
02Setting up structured, reversible database migration pipelines for Prisma, Drizzle, or Django
03Safely modifying database schemas and renaming columns in high-traffic production environments