Skip to content
Back to skills

Database Migrations

ASecurity

Zero-downtime schema migrations with expand/backfill/contract and safe locking.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsdatabase

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add karthikrshet/saarthi --skill database-migrations --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Database Migrations?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Database Migrations
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/karthikrshet-database-migrations/badge)](https://www.skillsdirectory.com/skills/karthikrshet-database-migrations)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: database-migrations
description: Zero-downtime schema migrations with expand/backfill/contract and safe locking.
tags: [database]
---

# Database Migrations

## When to use

- Any schema change on a live database

## Procedure

1. Expand: add nullable columns/tables
2. Deploy code that writes both
3. Backfill in batches
4. Switch reads
5. Contract: remove old columns later
6. Set lock timeouts

## Checklist

- [ ] Migration reversible
- [ ] Large-table operations batched

## Anti-patterns

- Renaming columns in one step
- Adding NOT NULL with default on huge tables in old Postgres

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.