database-migration

Plan and execute Laravel database migrations with zero-downtime patterns.

Updated Feb 11, 2026
One-click install
npx skills add https://github.com/juniorfontenele/ai-guidelines --skill database-migration-juniorfontenele
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migration
Source: https://github.com/juniorfontenele/ai-guidelines/tree/main/.agents/skills/database-migration
Command: npx skills add https://github.com/juniorfontenele/ai-guidelines --skill database-migration-juniorfontenele

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires generate-test, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of creating, reviewing, and deploying database migrations, ensuring data integrity and minimizing downtime during schema modifications.

Core Features & Use Cases

  • Zero-Downtime Planning: Provides strategies for adding, renaming, or dropping columns without interrupting service.
  • Laravel Migration Generation: Assists in creating well-structured migration files following best practices.
  • Use Case: When adding a new status column to the orders table, this Skill helps plan the safest way to implement it, including considerations for nullability, default values, and code compatibility.

Quick Start

Use the database-migration skill to create a new migration for adding an email column to the users table.

Frequently Asked Questions about database-migration

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

FAQPage Schema
How do I add a column to a table without downtime in Laravel?

Zero-downtime database migrations require strategies that add, rename, or drop columns without interrupting service by ensuring code compatibility, handling nullability, and setting default values before deploying schema modifications.

What is a zero-downtime database schema migration?

A zero-downtime database migration is a schema change process that maintains service availability. It uses database-agnostic concepts like idempotency and reversibility to ensure robust table, column, index, and relationship modifications without interrupting the application.

Can I use this for migration rollback planning in production?

Yes, you can use this for migration rollback planning in production. It executes production safety checks and handles reversibility for schema modifications, ensuring you can safely plan and reverse table, column, and index changes if issues arise.

What's the best way to generate Laravel migration files safely?

The best way to generate Laravel migration files safely is to follow structured creation and review best practices. This process assists in building well-structured migration files that account for data integrity and robust schema management during deployment.

Do I need test generation to manage database schema changes?

Test generation is a required dependency for managing these database schema changes. It supports the migration review process by validating the well-structured migration files before you execute production safety checks and deploy modifications.