Skip to content

Commit 779907c

Browse files
authored
fix(table-diff): Mark type changes as breaking (#6515)
<!-- 🎉 Thank you for making CloudQuery awesome by submitting a PR 🎉 --> #### Summary While we [auto migrate type changes](https://github.com/cloudquery/cloudquery/blob/a4987ae191b9f5e660d29ca4a99f1469dd9e1fe7/plugins/destination/postgresql/client/migrate.go#LL110C8-L110C8) I believe those should still be considered breaking as they can impact how the data is queried <!-- Use the following steps to ensure your PR is ready to be reviewed - [ ] Read the [contribution guidelines](../blob/main/CONTRIBUTING.md) 🧑‍🎓 - [ ] Test locally on your own infrastructure - [ ] Run `go fmt` to format your code 🖊 - [ ] Lint your changes via `golangci-lint run` 🚨 (install golangci-lint [here](https://golangci-lint.run/usage/install/#local-installation)) - [ ] Update or add tests 🧪 - [ ] Ensure the status checks below are successful ✅ --->
1 parent b7e4e73 commit 779907c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/table_diff/changes/changes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func getColumnChanges(file *gitdiff.File, table string) (changes []change) {
101101
if addedColumn.dataType != deletedColumn.dataType {
102102
changes = append(changes, change{
103103
Text: fmt.Sprintf("Table %s: column type changed from %s to %s for %s", backtickStrings(table, deletedColumn.dataType, addedColumn.dataType, deletedName)...),
104-
Breaking: false,
104+
Breaking: true,
105105
})
106106
}
107107

0 commit comments

Comments
 (0)