database-migrations

Plan and execute reversible database migrations across PostgreSQL and MySQL.

2|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/multiplex-ai/muggle-ai-teams --skill database-migrations-multiplex-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migrations
Source: https://github.com/multiplex-ai/muggle-ai-teams/tree/main/skills/database-migrations
Command: npx skills add https://github.com/multiplex-ai/muggle-ai-teams --skill database-migrations-multiplex-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Database migrations are error-prone and risky; this skill provides best practices for schema changes, data migrations, rollbacks, and zero-downtime deployments across PostgreSQL, MySQL, and common ORM tools (Prisma, Drizzle, Django, TypeORM, golang-migrate).

Core Features & Use Cases

  • Safe, reversible migrations with UP and DOWN (or marked irreversible)
  • Separation of schema and data migrations to reduce risk
  • Zero-downtime deployment patterns and ORM-specific guidance (Prisma, Drizzle, Django, TypeORM, golang-migrate)

Quick Start

Apply the zero-downtime migration strategy to safely add or modify schema with reversible steps and backfills.

Frequently Asked Questions about database-migrations

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

FAQPage Schema
What is the best way to perform zero-downtime database migrations?

Zero-downtime database migrations minimize production risk by strictly separating schema and data migrations, enforcing safety checklists, and using reversible UP and DOWN steps for safe deployments.

How do I ensure safe schema changes and data migrations in PostgreSQL and MySQL?

Safe schema changes and data migrations in PostgreSQL and MySQL require separating schema modifications from data backfills, enforcing a strict migration safety checklist to ensure reversible, low-risk operations.

Does this database migration approach work with Prisma, Drizzle, and TypeORM?

Yes, this database migration strategy provides ORM-specific guidance for Prisma, Drizzle, TypeORM, Django, and golang-migrate, integrating zero-downtime patterns directly within these tools to execute safe schema changes.

Can I execute irreversible database migrations when rollbacks are not possible?

Yes, you can execute irreversible database migrations by explicitly marking them as irreversible. The strategy supports standard UP and DOWN migrations but safely handles destructive changes when DOWN rollbacks are not feasible.

Why separate schema and data migrations during a database deployment?

Separating schema and data migrations during a database deployment reduces production risk, allowing independent application of structural changes and data backfills to enable zero-downtime updates and safer reversible steps.

When should I avoid reversible UP and DOWN migrations?

You should avoid reversible UP and DOWN migrations when the database change involves destructive data removal that cannot be undone, explicitly marking migrations as irreversible to prevent unsafe rollback attempts.