database-migration

Guide relational database schema evolution with migration conventions and rollback procedures.

10|5|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/Claude-Code-Community-Ireland/claude-code-resources --skill database-migration-claude-code-community-ireland
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migration
Source: https://github.com/Claude-Code-Community-Ireland/claude-code-resources/tree/main/plugins/vibeworks-library/skills/database-migration
Command: npx skills add https://github.com/Claude-Code-Community-Ireland/claude-code-resources --skill database-migration-claude-code-community-ireland

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and best practices for managing database schema changes, ensuring data integrity, and minimizing application downtime during migrations.

Core Features & Use Cases

  • Migration File Conventions: Standardized naming and structuring for clear, maintainable migration scripts.
  • Zero-Downtime Strategies: Step-by-step patterns for safe schema evolution without interrupting service.
  • Rollback Planning: Guidance on creating reversible migrations and handling un-rollbackable changes.
  • Use Case: Safely rename a critical database column in a high-traffic application by following the expand-and-contract pattern, ensuring zero downtime.

Quick Start

Use the database-migration skill to understand how to safely add a new column to the 'users' table without downtime.

Frequently Asked Questions about database-migration

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

FAQPage Schema
How do I safely rename a database column without downtime in a high-traffic application?

To safely rename a database column without downtime, use the expand-and-contract pattern to add the new column, migrate data, and drop the old column. This zero-downtime strategy ensures data integrity while avoiding application disruption.

What is the best way to create reversible database schema migrations?

Creating reversible database schema migrations involves writing rollback procedures for every change and handling un-rollbackable operations carefully. This approach provides safe recovery paths and maintains database stability during deployment failures.

How do you manage database locking constraints during schema changes?

Managing database locking constraints during schema changes requires understanding locking considerations and testing methodologies for safe deployment. This minimizes table lock duration and prevents blocking critical application queries.

What are the standard conventions for structuring SQL migration files?

Standard conventions for structuring SQL migration files involve standardized naming and structuring for clear, maintainable migration scripts. This ensures consistent schema evolution and reliable tracking of database changes.

When do I need to use the expand-and-contract pattern for database migrations?

You need to use the expand-and-contract pattern for database migrations when modifying critical schema elements in high-traffic applications. It allows zero-downtime schema evolution by separating changes into backward-compatible deployment phases.