Strange Prisma error when trying to seed -- meta { column_name 'for' }
I'm trying to seed the following table.
I'm using planet scale as db host and prisma is in relationMode prisma.
I have no errors whatsoever when I seed the tables it's related with. I also have no errors when manually creating rows in it in prisma studio. If I try to create row with prisma.model.create, I get no erros, but also no row.
But if assign the create return value to a variable, then it gives me this error:
There is no such column ( for ) in any table. What could it be?
3 Replies
Please feel free to ask for any additional information. I'd really appreciate any help.
I've only seen that with too long Auth Tokens before, the solution there was @db.text annotation for more string space in mysql
Maybe go to single creates instead of createmany so you can look which dataset fails and find an anomaly?
I actually already did this. Otherwise it just rusn as if it's ok.
`
Also tried to simply type some values to see if the problem was being caused by faker's data. But the result is always the same :/