database-change-management

Plan and implement reversible Laravel database migrations with validation loops.

Updated Dec 22, 2025
One-click install
npx skills add https://github.com/htooayelwinict/claude-config --skill database-change-management-htooayelwinict
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-change-management
Source: https://github.com/htooayelwinict/claude-config/tree/main/skills/database-change-management
Command: npx skills add https://github.com/htooayelwinict/claude-config --skill database-change-management-htooayelwinict

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides proven patterns for designing safe database schema changes, including migrations, indexes, and backfills.

Core Features & Use Cases

  • Safe migration patterns with reversible down methods.
  • Backfill strategies and zero-downtime approaches.
  • Documentation of dependencies and relationships for schema changes.

Quick Start

Design a small migration to add a nullable column with a backfill step, then rollback to verify.

Frequently Asked Questions about database-change-management

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

FAQPage Schema
How do I safely add a column to a database table without downtime?

Safe schema changes add nullable columns with defaults, then backfill data in stages. This Skill applies reversible migration patterns—including down methods—to ensure zero-downtime deployments in Laravel applications using php artisan migrate commands.

What's the best way to plan database migrations with rollback capability?

Design migrations with both up and down methods to enable reversibility. This Skill validates every migration by executing migrate, rollback, and migrate again, plus composer test, ensuring your schema changes can be safely undone if needed.

How do I backfill data safely during a schema change?

Backfill strategies execute data updates in phases tied to your migration lifecycle. This Skill documents dependencies and relationships for schema changes, applying proven patterns that prevent data loss and maintain application availability during backfills.

Can I create indexes without locking my database during production deploys?

Zero-downtime index creation uses Laravel migrations with concurrent index strategies. This Skill enforces validation loops to confirm indexes are created safely and migrations remain reversible without disrupting live traffic.

What happens if a migration fails—can I roll back safely?

The mandatory validation loop in this Skill tests rollback by executing migrate:rollback after each migration, confirming your down method works. This ensures you can revert failed changes without data corruption or schema inconsistency.