drizzle-migration-conflict-resolution
Resolve Drizzle migration merge/rebase conflicts in OneQuery by rewinding local-only migration history and regenerating migration metadata. Use when conflicts…
от wordbricks★ 16 звёзд на GitHub
Установить drizzle-migration-conflict-resolution в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
DB Migration Conflict Resolution
Goal
Resolve Drizzle migration conflicts without manually editing migration SQL or meta/_journal.json.
Workflow
- Inspect conflict scope.
- Run
git status --short. - Confirm the migration conflict includes
packages/db/src/migrations/meta/_journal.json. - If non-migration conflicts need product decisions, stop and ask the user.
- Fetch the base branch.
- Run
git fetch origin. - Default to
origin/mainunless the user requests another base branch.
- Keep incoming journal history as baseline.
- Run
git checkout --theirs packages/db/src/migrations/meta/_journal.json. - Do not hand-edit
packages/db/src/migrations/meta/_journal.json.
- Find local-only migration artifacts.
- Run:
comm -23 <(git ls-tree -r --name-only HEAD packages/db/src/migrations | sort) \
<(git ls-tree -r --name-only origin/main packages/db/src/migrations | sort)
- Treat returned SQL and snapshot files as local-only migration history.
- Remove local-only migration artifacts.
- Run
git rm <each-local-only-file>for returned migration SQL and snapshot files. - Keep incoming branch migration files intact.
- Regenerate migration chain from schema.
- Run
cd packages/db && bun run db:generate. - Let Drizzle regenerate the next migration and update
meta/_journal.json.
- Stage and verify.
- Run
git add packages/db/src/migrations packages/db/src/migrations/meta/_journal.json. - Confirm no conflict markers remain:
rg -n "^(<<<<<<<|=======|>>>>>>>)" packages/db/src/migrations/meta/_journal.json
- Inspect generated SQL and verify it reflects expected schema deltas only.
- Finalize merge/rebase.
- Continue merge/rebase flow with
git commitorgit rebase --continue. - If pre-commit/pre-push hooks rewrite migration metadata formatting, commit the formatted files so the branch is clean.
Guardrails
- Never manually create or edit files inside
packages/db/src/migrations/. - Never manually edit
packages/db/src/migrations/meta/_journal.json. - Regenerate via
bun run db:generateafter history rewind. - If generated migration includes unexpected schema changes, stop and ask the user before committing.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- agents/openai.yaml
FAQ
Что делает скилл drizzle-migration-conflict-resolution?
Resolve Drizzle migration merge/rebase conflicts in OneQuery by rewinding local-only migration history and regenerating migration metadata. Use when conflicts involve packages/db/src/migrations/meta/_journal.json, migration SQL files in packages/db/src/migrations/*.sql, or migration snapshots in packages/db/src/migrations/meta/*_snapshot.json.
Как установить скилл drizzle-migration-conflict-resolution?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл drizzle-migration-conflict-resolution запускает скрипты?
Нет, скилл состоит только из инструкций (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…