database-migrations

Plan safe, reversible database migrations across PostgreSQL, MySQL, and ORMs.

3|2|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/agentmatters/mullai-bot --skill database-migrations-agentmatters
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migrations
Source: https://github.com/agentmatters/mullai-bot/tree/main/src/Mullai.Skills/Skills/claude-code-everything/database-migrations
Command: npx skills add https://github.com/agentmatters/mullai-bot --skill database-migrations-agentmatters

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safely manage schema changes and data migrations with zero-downtime deployments across major databases and ORMs.

Core Features & Use Cases

  • Safe, reversible migrations with separate schema and data changes
  • Zero-downtime patterns (expand-contract, concurrent indexes, backfill strategies) across PostgreSQL, MySQL, Prisma, Drizzle, Kysely, Django, golang-migrate
  • Migration safety checklist and framework-specific workflow guidance to minimize production risk
  • Real-world scenarios: schema changes, data backfills, and rollbacks in large-scale apps

Quick Start

Plan your next migration by outlining the changes, selecting a safe deployment pattern, and applying a separate backfill migration to preserve data integrity.

Frequently Asked Questions about database-migrations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform zero-downtime database migrations without locking tables?

Zero-downtime database migrations prevent table locking by applying expand-contract patterns and concurrent indexing. This approach separates schema changes from data backfills, ensuring new code deploys safely alongside old code in multi-environment teams.

What is the expand-contract pattern for schema changes?

The expand-contract pattern is a safe migration strategy that expands the schema first, deploys application code, and contracts old columns later. This non-blocking operation sequence enables reversible schema changes and data migrations with minimal production risk.

Does this migration workflow support Prisma, Drizzle, and Django?

This migration workflow supports Prisma, Drizzle, Kysely, Django, and golang-migrate. It provides framework-specific workflow guidance and a migration safety checklist tailored to each ORM to ensure safe schema changes and data backfills.

How do I plan a reversible data backfill for a large PostgreSQL table?

Plan a reversible data backfill by isolating the data migration from the schema change and applying incremental backfill strategies. Using PostgreSQL concurrent indexes and separate migration steps ensures you can safely rollback data if errors occur.

When should I separate schema changes from data migrations?

Separate schema changes from data migrations when deploying zero-downtime updates across large-scale applications. Splitting these operations preserves data integrity, allows independent rollbacks, and prevents locking issues during multi-environment deployments.

Can I rollback a database migration if a deployment fails in production?

Yes, you can rollback a database migration if a deployment fails by using reversible migration patterns. Applying an extendable safety checklist and framework-specific rollback workflows ensures schema changes and backfills can be safely undone.