PostgreSQL Migrations Expert
OfficialMaster PostgreSQL migrations, avoid common pitfalls.
Authorpr-pm
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides comprehensive guidance to navigate complex PostgreSQL database schema changes, helping you avoid common migration errors, ensure idempotency, and optimize performance. It streamlines your database development, preventing costly production issues.
Core Features & Use Cases
- Error Resolution: Offers solutions for common PostgreSQL migration errors like "Subquery uses ungrouped column" or "Functions in index expression must be IMMUTABLE."
- Idempotent Migrations: Guides you on best practices for creating re-runnable migrations using
IF (NOT) EXISTSclauses, ensuring safety and consistency. - Advanced Features: Provides expertise on generated columns, full-text search optimization, composite indexes, materialized views, and efficient migration file structures.
- Use Case: When you're performing a critical database schema update, this skill ensures your migration is robust, handles edge cases, and won't break if run multiple times, saving you from costly production errors and manual rollbacks.
Quick Start
Idempotent Table Creation
CREATE TABLE IF NOT EXISTS users ( id UUID PRIMARY KEY DEFAULT uuid_generate_v4(), name VARCHAR(255) );
Idempotent Column Addition
ALTER TABLE users ADD COLUMN IF NOT EXISTS email VARCHAR(255);
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: PostgreSQL Migrations Expert Download link: https://github.com/pr-pm/prpm/archive/main.zip#postgresql-migrations-expert 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 223,000+ vetted skills library on demand.