Database Migration

Apply versioned SQL migrations to Postgres databases with tracking.

1|Updated Jan 1, 2026
One-click install
npx skills add https://github.com/Jaroslav84/agentic_project --skill database-migration-jaroslav84
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Database Migration
Source: https://github.com/Jaroslav84/agentic_project/tree/main/.opencode/skill/db-migrate
Command: npx skills add https://github.com/Jaroslav84/agentic_project --skill database-migration-jaroslav84

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates and centralizes database migrations for Postgres MCP deployments, reducing manual drift and deployment risk.

Core Features & Use Cases

  • Transactional migration execution with version tracking
  • Read and apply SQL migration files from migrations/ and update schema
  • Rollback guidance and validation checks for schema changes

Quick Start

Place your versioned SQL migrations in migrations/ and run the migration workflow to apply them to the target Postgres MCP server.

Frequently Asked Questions about Database Migration

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

FAQPage Schema
How do I automate Postgres database migrations across multiple environments?

Automating Postgres database migrations involves applying versioned SQL files from a migrations directory with transactional execution, tracking applied versions, and validating schema changes across development, staging, and production environments.

What is transactional migration execution and why does it matter for schema changes?

Transactional migration execution applies SQL schema changes as a single atomic unit, ensuring that if any statement fails, all changes roll back to prevent partial updates and database drift.

Can I track which SQL migration versions have been applied to my Postgres database?

Yes, version tracking records which SQL migration files have been applied to the Postgres database, allowing you to coordinate schema changes and identify pending updates across environments.

Does this database migration approach provide rollback guidance for failed schema changes?

Yes, rollback guidance and validation checks are provided for schema changes, helping you safely revert failed migrations and maintain database integrity during deployment workflows.

How do I structure SQL files for safe database migrations?

Place your versioned SQL migration files in a dedicated migrations directory to ensure the workflow can read, validate, and apply them transactionally to the target Postgres server.

What's the best way to prevent schema drift when applying Postgres migrations manually?

Centralizing and automating database migrations reduces manual drift by enforcing transactional execution, version tracking, and validation checks instead of applying SQL schema changes by hand.