Upsert ON CONFLICT
does not respect all_tenants?: true
on identity.
#1709
Labels
bug
Something isn't working
Describe the bug
generated
ON CONFLICT
clause still includes multitenancy attribute even when the identity hasall_tenants?: true
set.To Reproduce
When you have an identity with
all_tenants?: true
and you go to perform an upsert (while providing a tenant) - there will be an error from Postgrex** (Postgrex.Error) ERROR 42P10 (invalid_column_reference) there is no unique or exclusion constraint matching the ON CONFLICT specification",
Expected behavior
the generated
ON CONFLICT
clause will not include the multitenancy attribute if the identity hasall_tenants?
set to true.The text was updated successfully, but these errors were encountered: