Skip to content
Back to skills

Database Migration Patterns

ASecurity

Safe schema migrations alembic rollback zero downtime

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 10, 2026
ai-agentsbashdatabase

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned September 10, 2026

npx -y skills add LoopyLuci/Skills --skill database-migration-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Database Migration Patterns?

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

Security grade badge for Database Migration Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/loopyluci-database-migration-patterns/badge)](https://www.skillsdirectory.com/skills/loopyluci-database-migration-patterns)

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-migration-patterns
description: "Safe schema migrations alembic rollback zero downtime"
---

# Database Migration Patterns

## Alembic
```bash
pip install alembic
alembic init migrations
alembic revision --autogenerate -m "add users table"
alembic upgrade head
```

## Rollback
```bash
alembic downgrade -1
```

## Zero-Downtime Steps
1. Add column nullable
2. Deploy app (writes to new column)
3. Backfill data
4. Add NOT NULL constraint
5. Deploy app (reads from new column)
6. Drop old column

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.

Comments

Loading comments…

Newsletter

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