Database Migrations Sql Migrations

🌐Community
by sickn33 · vlatest · Repository

Provides database guidance and assistance for working with databases and data persistence.

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-sql-migrations npx -- -y @trustedskills/database-migrations-sql-migrations
2

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

~/.claude/settings.json
{
  "mcpServers": {
    "database-migrations-sql-migrations": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/database-migrations-sql-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 execute SQL migration scripts directly against database systems. It automates the process of applying schema changes, ensuring data integrity and consistency across different environments without manual intervention.

When to use it

  • Deploying new database schemas or modifying existing table structures in production environments.
  • Rolling back specific migration steps when a deployment fails or introduces errors.
  • Synchronizing database states between development, staging, and production instances.
  • Automating routine maintenance tasks like adding indexes or updating column definitions.

Key capabilities

  • Executes raw SQL statements for structural changes.
  • Manages version control for database schema evolution.
  • Supports automated deployment pipelines for database updates.
  • Ensures consistent application of migration logic across instances.

Example prompts

  • "Run the latest pending SQL migration file located in the migrations directory against the primary production database."
  • "Rollback the last successful migration to revert the user authentication table changes."
  • "Apply a batch of schema updates including new columns and index creation based on the provided SQL script."

Tips & gotchas

Ensure you have read-only access or appropriate permissions for the target database before executing write operations. Always test migration scripts in a staging environment first to prevent unintended data loss or corruption in production systems.

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
sickn33
Installs
88

🌐 Community

Passed automated security scans.