Skip to content

Commit c0abc13

Browse files
authored
feat(ci): Align table summary with migration logic (#8874)
#### Summary This aligns our tables changes summary with https://www.cloudquery.io/docs/advanced-topics/migrations. The only changes that are considered non breaking are: 1. Changing the order of a column 2. Adding a new non PK column <!--
1 parent e42cf9f commit c0abc13

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/table_diff/changes/changes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ func getColumnChanges(file *gitdiff.File, table string) (changes []change) {
129129
if addedColumn.pk() && !deletedColumn.pk() {
130130
changes = append(changes, change{
131131
Text: fmt.Sprintf("Table %s: primary key constraint added to column %s", backtickStrings(table, deletedName)...),
132-
Breaking: false,
132+
Breaking: true,
133133
})
134134
}
135135

136136
if !addedColumn.pk() && deletedColumn.pk() {
137137
changes = append(changes, change{
138138
Text: fmt.Sprintf("Table %s: primary key constraint removed from column %s", backtickStrings(table, deletedName)...),
139-
Breaking: false,
139+
Breaking: true,
140140
})
141141
}
142142

0 commit comments

Comments
 (0)