kinsyu
Explore posts from serversDTDrizzle Team
•Created by kinsyu on 5/25/2024 in #help
onConflictDoUpdate excluded with a dynamic column
Hey, I'm trying to perform an insert where it's possible that the record already exists, therefore I'm using
onConflictDoUpdate
, the problem I'm running into is that I can't dynamically set the column to update, here's my current approach:
I'm getting the following error when executing this
4 replies
DTDrizzle Team
•Created by kinsyu on 12/1/2023 in #help
There's not enough information to infer relation
I am trying to use drizzle studio but I'm running into the following issue,
There is not enough information to infer relation "__public__.collectionsTable.tokens"
.
Here's a simplified version of the schema.
In short, each collection can have multiple tokens, but each token can belong to only one collection.
I haven't had any issues with this schema for around the 6 months that we've been using it, but we wanted to try out drizzle studio and ran into that issue. The database is running on Planetscale, not sure if that's relevant.3 replies