What problem does it solve?
This Skill streamlines the process of designing and implementing safe, reversible database migrations for PostgreSQL, ensuring data integrity and minimizing downtime.
Core Features & Use Cases
- Schema Design: Assists in designing PostgreSQL and PostGIS schemas, including spatial column considerations.
- Migration Creation: Generates safe, reversible SQL migrations with rollback plans.
- Zero-Downtime Deployment: Implements patterns like "expand and contract" for schema changes without service interruption.
- Index Strategy: Provides guidance on creating effective indexes for performance.
- Use Case: When asked to "create a migration to add a new
location column with PostGIS geometry type to the events table," this skill will generate the necessary SQL for adding the column, backfilling data, and ensuring it's done without locking the table.
Quick Start
Use the db-migration skill to design a PostgreSQL migration to add a status column to the orders table.