managing-database-migrations

Automate creation, application, and rollback of database migrations across PostgreSQL, MySQL, SQLite, and MongoDB.

2.6k|379|Updated Oct 10, 2025
One-click install
npx skills add https://github.com/jeremylongshore/claude-code-plugins-plus --skill managing-database-migrations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: managing-database-migrations
Source: https://github.com/jeremylongshore/claude-code-plugins-plus/tree/main/plugins/database/database-migration-manager/skills/database-migration-manager
Command: npx skills add https://github.com/jeremylongshore/claude-code-plugins-plus --skill managing-database-migrations

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

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.

Frequently Asked Questions about managing-database-migrations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create and manage database migrations across PostgreSQL, MySQL, SQLite, and MongoDB?

Database migrations automate schema changes by generating timestamped files with up and down sections. This approach ensures safe, reversible modifications across PostgreSQL, MySQL, SQLite, and MongoDB, maintaining a clear history of all schema evolution with transactional execution and idempotency.

Can I rollback database schema changes if a migration fails?

Yes, migrations include down sections that safely revert schema changes. Each migration file contains both forward and rollback SQL, allowing you to undo modifications and return to previous states without data loss.

What's the best way to handle version control for database schema changes?

Use timestamped migration files with clear naming conventions stored in version control. This practice tracks schema evolution over time, enables team collaboration, and ensures consistency across environments by applying migrations in order.

Do I need to write SQL manually for each database migration?

Migrations generate SQL automatically for common operations like adding columns, but you can customize both up and down sections. The skill creates the file structure and naming convention; you populate it with your specific schema modifications.

How do migrations ensure database consistency across different systems?

Migrations enforce idempotency and transactional execution, preventing duplicate changes and maintaining consistency. Timestamped files apply in order across PostgreSQL, MySQL, SQLite, and MongoDB, ensuring all environments reach the same schema state.

When should I use migrations instead of manual schema changes?

Use migrations for any schema change you need to track, share, or rollback—especially in teams or multiple environments. Manual changes lack version history and repeatability, making migrations essential for safety and collaboration.