migration-helper
OfficialAutomate database changes, ensure schema consistency.
System Documentation
What problem does it solve?
This Skill simplifies and standardizes the creation of database migrations, preventing common errors that lead to inconsistent database states. It automates the adherence to critical steps like sequential numbering, proper naming, and mandatory updates to the 02_run_migrations.sql script, saving developers from complex debugging and data loss.
Core Features & Use Cases
- Mandatory Step Enforcement: Highlights and enforces critical steps for migration creation, especially updating the master run script.
- Idempotent SQL Patterns: Guides on writing migrations using
IF NOT EXISTS/IF EXISTSto ensure they are safe to run multiple times. - Common Migration Patterns: Provides examples and templates for adding tables, columns, indexes, foreign keys, and enum types.
- Use Case: When you need to add a new column to a database table, this skill guides you through finding the next sequential number, creating the SQL file, updating the
02_run_migrations.sqlscript, and testing the migration, ensuring a smooth and error-free schema change.
Quick Start
I need to add a new email column to the politicians table. Guide me through the migration process, including all mandatory steps and best practices.
Dependency Matrix
Required Modules
Components
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: migration-helper Download link: https://github.com/trust-chain-organization/polibase/archive/main.zip#migration-helper Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.