What problem does it solve?
This Skill ensures that database schema changes and data migrations are handled correctly, preventing errors, maintaining data integrity, and ensuring consistency across your application. It guides the AI to follow best practices for robust and reversible database evolution.
Core Features & Use Cases
- Schema Evolution: Create and manage database migration files for adding, modifying, or removing tables and columns.
- Data Integrity: Implement reversible migrations with rollback methods and manage database indexes for robust data handling.
- Zero-Downtime Deployments: Guides the AI in separating schema changes from data migrations to support seamless updates.
- Use Case: When adding a new feature that requires a new table and column, this skill guides the AI to generate a migration file that adheres to project standards, includes rollback logic, and considers strategies for zero-downtime deployment.
Quick Start
Generate a new database migration to add a 'status' column (string, nullable) to the 'users' table, ensuring it includes a rollback method and follows best practices for naming.