managing-database-migrations

Community

Automate database schema changes with version control.

Authorjeremylongshore
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill empowers Claude to handle database migrations, including creating new migrations, applying changes, and rolling back previous modifications. It ensures that database schema changes are managed safely and efficiently across various database systems like PostgreSQL, MySQL, SQLite, and MongoDB.

Core Features & Use Cases

  • Migration File Generation: Create timestamped migration files with "up" and "down" methods.
  • Apply & Rollback: Safely apply schema changes or revert to previous states.
  • Schema Evolution Tracking: Maintain a clear history of database schema changes.
  • Use Case: Generate a migration to add an email column to the users table, complete with both forward and rollback SQL.

Quick Start

User request: "Create a migration to add an 'email' column to the 'users' table."

The skill will:

  1. Generate a new migration file with timestamped name.
  2. Populate the 'up' migration with SQL to add the 'email' column to the 'users' table.
  3. Populate the 'down' migration with SQL to remove the 'email' column from the 'users' table.

Dependency Matrix

Required Modules

None required

Components

scriptsreferencesassets

💻 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: managing-database-migrations
Download link: https://github.com/jeremylongshore/claude-code-plugins-plus/archive/main.zip#managing-database-migrations

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.