docs/ja-JP/skills/database-migrations/SKILL.md
PostgreSQL、MySQL、一般的なORM(Prisma、Drizzle、Kysely、Django、TypeORM、golang-migrate)全体のスキーマ変更、データマイグレーション、ロールバック、ゼロダウンタイムデプロイメントのためのデータベースマイグレーションベストプラクティス。
npx skillsauth add ysyecust/everything-claude-code database-migrationsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
本番環境システム用の安全で可逆的なデータベーススキーマ変更。
マイグレーションを適用する前に:
-- GOOD: Nullable列、ロックなし
ALTER TABLE users ADD COLUMN avatar_url TEXT;
-- GOOD: デフォルト付きの列(Postgres 11+は即座、書き直しなし)
ALTER TABLE users ADD COLUMN is_active BOOLEAN NOT NULL DEFAULT true;
-- BAD: 既存テーブルのデフォルトなしで NOT NULL(完全書き直し必須)
ALTER TABLE users ADD COLUMN is_active BOOLEAN NOT NULL;
詳細についてはドキュメントを参照してください。
tools
日本語翻訳:このファイルは production-scheduling 用の日本語翻訳が必要です
testing
日本語翻訳:このファイルは production-audit 用の日本語翻訳が必要です
tools
日本語翻訳:このファイルは product-lens 用の日本語翻訳が必要です
tools
日本語翻訳:このファイルは product-capability 用の日本語翻訳が必要です