DA

database-migrations

Outlines patterns for executing database schema and data migrations while maintaining zero downtime and rollback safety.

Install

mkdir -p .claude/skills/database-migrations && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2812" && unzip -o skill.zip -d .claude/skills/database-migrations && rm skill.zip

Installs to .claude/skills/database-migrations

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Safe database migration strategies for zero-downtime deployments. Covers backward-compatible changes, data migrations, and rollback procedures.
143 charsno explicit “when” trigger
Advanced

Key capabilities

  • →Execute backward-compatible schema changes
  • →Perform zero-downtime data migrations
  • →Implement rollback procedures
  • →Batch large data transformations

How it works

It uses a migration runner to apply SQL changes atomically within transactions while ensuring backward compatibility with existing code.

Inputs & outputs

You give it
SQL migration files
You get back
Applied database schema changes with rollback support

When to use database-migrations

  • →Plan a zero-downtime schema change
  • →Execute backward-compatible migrations
  • →Design database rollback procedures
  • →Refactor existing table structures

About database-migrations

Provides best practices and patterns for database migrations, ensuring zero downtime. Covers safe handling of schema updates, data migrations, and rollback safety.

Safe database migration strategies for zero-downtime deployments. Covers backward-compatible changes, data migrations, and rollback procedures.

When not to use it

  • →Non-database schema changes
  • →Environments where downtime is acceptable and simplicity is preferred

Prerequisites

Access to database connection stringsMigration directory setup

Limitations

  • →Requires careful planning for complex renames
  • →Large data migrations must be batched to avoid performance issues

How it compares

It enforces a strict zero-downtime strategy with mandatory rollback scripts instead of simple, destructive schema updates.

Compared to similar skills

database-migrations side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
database-migrations (this skill)37moNo flagsAdvanced
drizzle-orm323moNo flagsIntermediate
database-design68moReviewIntermediate
prisma-expert128moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry