What problem does it solve?
This Skill streamlines the process of creating new database migrations for microservices, ensuring adherence to established naming conventions, required annotations, and best practices for schema changes.
Core Features & Use Cases
- Automated Migration Generation: Creates new SQL migration files for database schema modifications.
- Standardized Naming & Structure: Enforces consistent file naming and includes essential Goose annotations (
-- +goose Up, -- +goose Down).
- Best Practice Guidance: Provides examples and explanations for UUID primary keys, timestamps, foreign keys, indexes (including
CONCURRENTLY), enums, and JSONB fields.
- Use Case: When a new feature requires adding a
preferences table to the users service, this skill will generate the 003_add_preferences_table.sql migration file with appropriate Up and Down statements, and guide you on updating GORM models and the CHANGELOG.
Quick Start
Use the create-migration skill to generate a new SQL migration file for adding a 'status' column to the 'orders' table.