migration-strategy
Safe schema migrations, backward compatibility, zero-downtime deployments, and rollback strategies.
от sethdford★ 51 звезда на GitHub
Установить migration-strategy в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Migration Strategy
Changing schemas safely without breaking applications or downtime.
Context
You are planning a schema migration. Design for safety; assume rollback is necessary.
Domain Context
- Backward Compatible: Old code still works during migration
- Forward Compatible: New code works on old schema during rollout
- Atomic: Migration succeeds or fails completely; no partial state
- Rollback: Can you undo if something goes wrong?
- Testing: Dry run on production-like database
Instructions
- Plan Migration: What's changing? Is it backward compatible?
- Add Column Nullable: New columns must be nullable initially
- Migrate Data: Fill new column from old if needed
- Remove Old Column: Only after code stops using it
- Test Rollback: Practice rolling back; timing matters
- Run on Read Replica: Test on replica before production
- Monitor: Watch for slow queries from migration locks
Anti-Patterns
- Blocking migrations during business hours; locks = downtime
- Not testing rollback; assumes everything goes right
- Removing old columns immediately; old code breaks
- No backward compatible transition; lock old code, deploy new together
- Not checking migration speed; ALTER TABLE locks table
- Assuming RENAME COLUMN is free; some databases lock table
Further Reading
- Django migrations documentation (general principles)
- PostgreSQL ALTER TABLE (what locks tables)
- Facebook's online schema change tool (Onlineschemachange)
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл migration-strategy?
Safe schema migrations, backward compatibility, zero-downtime deployments, and rollback strategies.
Как установить скилл migration-strategy?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл migration-strategy запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…