データベースマイグレーション - CI/CD用語集の定義
データベースマイグレーションは、データベースのスキーマやデータに対するバージョン管理された順序付きの変更で、ツール(Flyway、Liquibase、Alembic、Rails、Prisma)によって適用され、すべての環境が同じ状態になります。
CI/CDでは
マイグレーションはコードとともにソース管理にコミットされ、deploy中に自動的に実行されるため、スキーマはアプリケーションと歩調を合わせて進みます。CIは通常、テストスイートの前に、使い捨てのデータベースに対して保留中のマイグレーションを実行します。
関連ガイド
Schema Migration - CI/CD Glossary DefinitionSchema Migration: A schema migration changes the structure of a database (tables, columns, indexes, constrain…
Data Migration - CI/CD Glossary DefinitionData Migration: A data migration transforms or moves the rows themselves (rewriting values, splitting a colum…
Forward Migration - CI/CD Glossary DefinitionForward Migration: A forward migration (the "up" direction) advances the schema to a newer version, applying…