database-migrations

Plan PostgreSQL schema changes and data migrations with rollback strategies.

Updated Jul 7, 2026
One-click install
npx skills add https://github.com/voidrot/agents --skill database-migrations-voidrot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migrations
Source: https://github.com/voidrot/agents/tree/main/skills/database/database-migrations
Command: npx skills add https://github.com/voidrot/agents --skill database-migrations-voidrot

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the challenge of safely performing database schema changes, data migrations, and zero-downtime updates, ensuring stability and reliability in database operations.

Core Features & Use Cases

  • Schema Migration Guidance: Provides best practices and patterns for creating and deploying database schema changes.
  • Zero-Downtime Rollouts: Assists in planning and executing database changes without impacting live traffic.
  • Rollback and Recovery: Offers strategies for effective rollback and recovery plans in case of migration issues.
  • Use Case: Consider a scenario where you need to add a new column to a large user table in a production database. This Skill guides you through the process, including planning, execution, and verification steps to ensure the migration is performed safely and efficiently.

Quick Start

Use the database-migrations skill to plan a schema change for the 'users' table by classifying the change, designing for forward recovery, and considering locking and table size constraints.

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 require classifying schema changes, ensuring forward compatibility, and using concurrent index operations to prevent locking live traffic. This approach guarantees smooth schema transitions without service disruption.

What is the best way to plan a database rollback for schema changes?

Planning a database rollback for schema changes involves designing for forward recovery and verifying execution steps. Effective rollback and recovery strategies ensure you can safely revert migrations if issues arise during deployment.

Does this database migration approach work with Prisma and TypeORM?

Yes, this database migration approach works with Prisma and TypeORM, alongside Drizzle, Kysely, Django, and golang-migrate. It provides schema migration guidance and zero-downtime rollout patterns across these specific ORM and migration frameworks.

How do I add a new column to a large production database table without locking?

Adding a new column to a large production database table without locking requires evaluating table size constraints and applying online database operations. This ensures the schema change is executed safely and efficiently without impacting live traffic.

Why do I need forward compatibility for database schema changes?

Forward compatibility for database schema changes is needed to ensure older application versions continue functioning during deployment. It prevents downtime by allowing concurrent operations and transaction management across mixed application states.

What are the limitations of concurrent index operations during data migrations?

Concurrent index operations during data migrations require knowledge of online database operations and transaction management to avoid limitations. Careful planning of locking and table size constraints is necessary to prevent performance degradation.