database-migrations

Plan and audit zero-downtime database migrations across Alembic, Django, and raw SQL workflows.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/romankovsv/claude-code-python-devops-mlops --skill database-migrations-romankovsv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migrations
Source: https://github.com/romankovsv/claude-code-python-devops-mlops/tree/main/skills/database-migrations
Command: npx skills add https://github.com/romankovsv/claude-code-python-devops-mlops --skill database-migrations-romankovsv

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Database migrations are risky, error-prone changes that can cause downtime, data loss, and inconsistencies across environments. This Skill provides best practices to plan, implement, and validate schema changes, data migrations, and rollbacks across Alembic, Django, and raw SQL.

Core Features & Use Cases

  • Comprehensive migration safety checklist covering upgrades, data migrations, and rollback plans.
  • Guidance for Alembic, Django ORM migrations, and raw SQL workflows with zero-downtime patterns.
  • Practical examples and templates for reversible migrations and testing strategies in production.

Quick Start

Audit your current migration strategy and generate a safe, zero-downtime plan for the next schema change.

Frequently Asked Questions about database-migrations

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

FAQPage Schema
How do I perform zero-downtime database migrations in production?

Zero-downtime database migrations separate schema changes from data transformations and apply safety checks to avoid locking tables. This approach ensures production databases remain fully operational during upgrades using Alembic, Django, or raw SQL.

What is the best way to plan a database rollback for a failed schema migration?

The safest way to plan a database rollback is to enforce forward-only production migrations while maintaining a dedicated rollback plan. This Skill provides templates and guidance for creating reversible migrations and testing rollback strategies.

Does this migration guidance work with both Alembic and Django ORM workflows?

Yes, this guidance supports Alembic, Django ORM, and raw SQL workflows. It provides specific zero-downtime patterns, safety checklists, and best practices tailored to each environment for production-grade projects.

Why should I separate schema changes from data migrations?

Separating schema changes from data migrations prevents database locking and data loss during production updates. This separation allows you to apply backward-compatible schema updates before removing old columns or transforming data.

How do I audit my current database migration strategy for safety risks?

You audit your migration strategy by running a comprehensive safety checklist covering upgrades, data migrations, and rollback plans. This Skill helps review existing changes and generate a safe, zero-downtime plan for your next schema update.

When should I avoid backward-incompatible database migrations?

You should avoid backward-incompatible database migrations in production environments where downtime and data loss are unacceptable. This Skill enforces safety checks and forward-only patterns to ensure schema changes remain reversible.