database-migrations
PostgreSQL、MySQL、一般的なORM(Prisma、Drizzle、Kysely、Django、TypeORM、golang-migrate)全体のスキーマ変更、データマイグレーション、ロールバック、ゼロダウンタイムデプロイメントのためのデータベースマイグレーションベストプラクティス。
Original · translation did not pass checksTarget: Databases. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original Japanese text
Topics in the source
- データベースマイグレーションパターン
- アクティベーション時期
- コア原則
- マイグレーション安全チェックリスト
- PostgreSQL パターン
- 列を安全に追加
本番環境システム用の安全で可逆的なデータベーススキーマ変更。 データベーステーブルの作成または変更 列またはインデックスの追加/削除 データマイグレーション(バックフィル、変換)の実行 ゼロダウンタイムスキーマ変更を計画 新しいプロジェクト用のマイグレーションツール設定 1. すべての変更はマイグレーション — 本番環境データベースを手動で変更しない 2. マイグレーションは本番環境で前方のみ — ロールバックは新しい前向きマイグレーション使用 3. スキーマとデータマイグレーションは分離 — 1つのマイグレーションでDDLとDMLを混ぜない 4. 本番環境サイズのデータに対してマイグレーションをテスト — 100行で機能するマイグレーション10M上でロックされる場合がある 5. マイグレーションは展開後は不変 — 本番環境で実行されたマイグレーションを編集しない マイグレーションを適用する前に: [ ] マイグレーションはUPとDOWNの両方を持つ(または明示的に不可逆としてマーク) [ ] 大型テーブルの完全テーブルロックなし(並行操作使用) [ ] 新しい列はデフォルトまたはnullable(デフォルトなしでNOT NULLを追加しない) [ ] インデックスは並行して作成(既存テーブルのCREATE TABLEでインライン化しない) [ ] データバックフィルはスキーマ変更から分離したマイグレーション [ ] 本番環境データのコピーに対してテスト [ ] ロールバック計画を文書化 詳細についてはドキュメントを参照してください。
- Source repository
- affaan-m/ECC
- Source file
- docs/ja-JP/skills/database-migrations/SKILL.md
- Fixed revision
- d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Requirements
- Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.
A small first task
先阅读原作者说明,再决定是否在自己的 AI 工具中使用。
Instructions for your AI tool
- Claude Desktop: resource-specific guide not available yet
- Claude Code: resource-specific guide not available yet
- Cursor: resource-specific guide not available yet
- Codex: resource-specific guide not available yet
Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:49.112Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.