mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
fix(Postgres Node): Do not include id column in upsert fields selection if it's not unique (#7975)
## Summary Do not include id column in upsert fields selection if it's not unique Forum: https://community.n8n.io/t/postgres-node-insert-or-update-unique-column-name/32520
This commit is contained in:
@@ -77,7 +77,7 @@ export async function getMappingColumns(
|
|||||||
id: col.column_name,
|
id: col.column_name,
|
||||||
displayName: col.column_name,
|
displayName: col.column_name,
|
||||||
required: col.is_nullable !== 'YES' && !isAutoIncrement,
|
required: col.is_nullable !== 'YES' && !isAutoIncrement,
|
||||||
defaultMatch: col.column_name === 'id',
|
defaultMatch: (col.column_name === 'id' && canBeUsedToMatch) || false,
|
||||||
display: true,
|
display: true,
|
||||||
type,
|
type,
|
||||||
canBeUsedToMatch,
|
canBeUsedToMatch,
|
||||||
|
|||||||
Reference in New Issue
Block a user