database-migrations

Generate safe migration plans for PostgreSQL schema changes.

3|Updated Jul 1, 2026
One-click install
npx skills add https://github.com/KeyValueSoftwareSystems/maestro --skill database-migrations-keyvaluesoftwaresystems
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migrations
Source: https://github.com/KeyValueSoftwareSystems/maestro/tree/main/skills/stacks/db/database-migrations
Command: npx skills add https://github.com/KeyValueSoftwareSystems/maestro --skill database-migrations-keyvaluesoftwaresystems

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the risk of production database downtime and data corruption by providing standardized, reversible patterns for schema changes and migrations.

Core Features & Use Cases

  • Zero-Downtime Patterns: Implements expand-contract strategies for column renames and removals.
  • Multi-Stack Support: Provides specific workflows for PostgreSQL, Prisma, Drizzle, Kysely, Django, and golang-migrate.
  • Safety Guardrails: Enforces best practices like concurrent index creation and separate data/schema migration handling.

Quick Start

Use the database-migrations skill to generate a safe migration plan for adding a new column to the users table in a PostgreSQL database.

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 in PostgreSQL?

Zero-downtime database migrations in PostgreSQL use expand-contract strategies to separate schema changes from data backfills, ensuring non-blocking operations. This approach enforces concurrent index creation and immutable history to maintain production stability.

What is the best way to rename a column without causing database downtime?

Renaming a column without database downtime requires an expand-contract migration pattern to deploy schema changes gradually. This reversible workflow adds the new column first, migrates data backfills, and removes the old column only after application updates are complete.

Does this database migration workflow support Prisma and Django?

Yes, this database migration workflow supports Prisma and Django, alongside Drizzle, Kysely, and golang-migrate. It provides specific standardized workflows tailored to each ORM and SQL dialect to ensure safe schema evolution.

How do I manage concurrent index creation during schema migrations?

Managing concurrent index creation during schema migrations requires enforcing safety guardrails that avoid locking tables. The workflow provides structured patterns for non-blocking index management to ensure production database stability.

Why should I separate data backfills from schema changes in database migrations?

Separating data backfills from schema changes prevents production database downtime and data corruption. Handling them independently enforces non-blocking operation techniques and maintains immutable migration history for safe deployments.

Can I reverse a database schema migration if a deployment fails?

Yes, database schema migrations can be reversed because the workflow enforces safe, reversible migration patterns. By maintaining an immutable migration history, you can safely rollback schema changes and data backfills if production issues occur.