Skip to content

Commit 1ab4350

Browse files
authored
fix: Set _cq_id to NotNull in destinations for backward compat (#793)
Fixes - cloudquery/cloudquery#10160
1 parent 7f3fd62 commit 1ab4350

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/servers/destination/v0/destinations.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ func SetDestinationManagedCqColumns(tables []*schema.Table) {
165165
for i := range table.Columns {
166166
if table.Columns[i].Name == schema.CqIDColumn.Name {
167167
table.Columns[i].CreationOptions.Unique = true
168+
table.Columns[i].CreationOptions.NotNull = true
168169
}
169170
}
170171
table.OverwriteOrAddColumn(&schema.CqSyncTimeColumn)

0 commit comments

Comments
 (0)