Database Migrations

🌐Community
by affaan-m · vlatest · Repository

Automates database schema changes using version control, ensuring safe and repeatable migrations across environments.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add database-migrations npx -- -y @trustedskills/database-migrations
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "database-migrations": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/database-migrations"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill enables AI agents to manage and execute database migrations, including creating, modifying, and deleting database schemas. It supports version control of changes through migration scripts and ensures consistent data structure across environments.

When to use it

  • Deploying new features that require schema updates in a production environment
  • Rolling back database changes due to an error or failed deployment
  • Setting up a development or testing environment with the same database structure as production

Key capabilities

  • Execute migration scripts for schema creation and modification
  • Rollback migrations to previous versions
  • Maintain version control of database changes
  • Support for multiple database systems (e.g., PostgreSQL, MySQL)

Example prompts

  • "Run all pending database migrations for the user table."
  • "Roll back the last migration related to the orders schema."
  • "Generate a migration script to add a new column 'email' to the users table."

Tips & gotchas

  • Ensure migration scripts are tested in a non-production environment before deployment.
  • Always maintain backups of your database before running destructive migrations.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
affaan-m
Installs
487

🌐 Community

Passed automated security scans.