Merge pull request #7737 from Budibase/bug/sev3/foreign-key-bigint-smallint
Postgres (and other external DBs) support foreign key bigint -> smallint
This commit is contained in:
commit
f2fe1c86c0
|
@ -371,7 +371,10 @@ module External {
|
||||||
const toColumn = `${linkedTable.name}.${relationship.to}`
|
const toColumn = `${linkedTable.name}.${relationship.to}`
|
||||||
// this is important when working with multiple relationships
|
// this is important when working with multiple relationships
|
||||||
// between the same tables, don't want to overlap/multiply the relations
|
// between the same tables, don't want to overlap/multiply the relations
|
||||||
if (!relationship.through && row[fromColumn] !== row[toColumn]) {
|
if (
|
||||||
|
!relationship.through &&
|
||||||
|
row[fromColumn]?.toString() !== row[toColumn]?.toString()
|
||||||
|
) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
let linked = basicProcessing(row, linkedTable)
|
let linked = basicProcessing(row, linkedTable)
|
||||||
|
|
Loading…
Reference in New Issue