Unique Constraint - CI/CD用語集の定義
unique constraintは、ある列または列の組み合わせで2つの行が同じ値を共有しないことを保証し、重複したinsertをデータベースレベルで拒否します。
マイグレーションにおいて
既存データにunique constraintを追加すると、すでに重複が存在する場合は失敗します。そのため、マイグレーションではまず行をクリーンアップまたは重複排除する必要があります。CIは現実的なスナップショットに対してマイグレーションを実行することでこれを検出します。
関連ガイド
Primary Key - CI/CD Glossary DefinitionPrimary Key: A primary key is the column (or set of columns) that uniquely identifies each row in a table. It…
Referential Integrity - CI/CD Glossary DefinitionReferential Integrity: Referential integrity is the guarantee that every foreign key points at a row that act…