Schema Drift - CI/CD用語集の定義
schema driftは、データベースの実際のスキーマと、マイグレーションが記述するスキーマとの間の食い違いで、通常はマイグレーションツールの外で行われた手動の変更が原因です。
CI/CDにおいて
AtlasやLiquibaseのようなツールは、稼働中のスキーマを期待されるスキーマと差分比較し、driftがあればpipelineを失敗させることで、次のマイグレーションがもはや真ではない状態を前提とする前に、想定外の変更を検出できます。
関連ガイド
Database Migration - CI/CD Glossary DefinitionDatabase Migration: A database migration is a versioned, ordered change to a database schema or data, applied…
Schema Migration - CI/CD Glossary DefinitionSchema Migration: A schema migration changes the structure of a database (tables, columns, indexes, constrain…