Upsert with multi-column unique index?
What is the correct way to do an upsert with a multi-column unique index?
I have this model:
And I'm trying to do an upsert like this:
But I'm getting the
What am I doing wrong?
I have this model:
And I'm trying to do an upsert like this:
But I'm getting the
duplicate key value violates unique constraint error even though I have the target of the onConflictDoUpdate set to those two columns.What am I doing wrong?