Skip to content

Commit

Permalink
Updated breaking changes section
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliefiann committed Sep 23, 2024
1 parent 2d674ae commit 0319c2e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions website/docs/docs/collaborate/govern/model-contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,13 @@ At the same time, for models with many columns, we understand that this can mean
When comparing to a previous project state, dbt will look for breaking changes that could impact downstream consumers. If breaking changes are detected, dbt will present a contract error.

Breaking changes include:
- Removing an existing column
- Changing the `data_type` of an existing column
- Removing or modifying one of the `constraints` on an existing column (dbt v1.6 or higher)
- Removing an existing column.
- Changing the `data_type` of an existing column.
- Removing or modifying one of the `constraints` on an existing column (dbt v1.6 or higher).
- Removing a contracted model constitutes a breaking change. A model is considered 'removed' if it is deleted, renamed, or disabled (by config: enabled):
- if the model is versioned, dbt will throw an error.
- if the model is unversioned, dbt will raise a warning.


More details are available in the [contract reference](/reference/resource-configs/contract#detecting-breaking-changes).

0 comments on commit 0319c2e

Please sign in to comment.