We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b06ad5c commit 8ee2fb5Copy full SHA for 8ee2fb5
schema/table.go
@@ -130,7 +130,12 @@ func AddCqIDs(table *Table) {
130
// AddCqClientID adds the cq_client_id column to the table,
131
// which is used to identify the multiplexed client that fetched the resource
132
func AddCqClientID(t *Table) {
133
- t.Columns = append(ColumnList{CqClientIDColumn}, t.Columns...)
+ if t.Columns.Get(CqClientIDColumn.Name) == nil {
134
+ t.Columns = append(ColumnList{CqClientIDColumn}, t.Columns...)
135
+ }
136
+ for _, rel := range t.Relations {
137
+ AddCqClientID(rel)
138
139
}
140
141
// CqIDAsPK sets the cq_id column as primary key if it exists
0 commit comments