Drizzle FKey errror
I have a posts table in postgres and it has a parentPost Foreign key to allow posts inside post (something like twitter). Heres the schema.
I'm getting this error while inserting into this table
Here's the api code:
3 Replies
I don't think Drizzle supports foreign keys.
I'm not sure if I had the same exact error as you do, but in my case I had to remove all
.references()
drizzle does support foreign keys
ill try removing the fkey constraint