jt
02/13/2022, 7:08 AM42601
. Message: `db error: ERROR: syntax error at or near "user"`` and if I run that same query but on a different model, "budget", for example, I'm getting this error: 'relation "budget" does not exist'
. Any help would be greatly appreciated. Thanks!Eddy Nguyen
02/13/2022, 8:20 AMprisma migrate reset
before running your seed command 🙂 Docojt
02/13/2022, 4:37 PMselect * from user;
it was giving me the database username as the return result, when I was expecting it to return my app's user record. When I ran select * from "User";
, I got the expected result. However, I've slept since then and so I may be mistaken, but I'm almost positive that I tried running `prisma.$queryRaw`TRUNCATE "User" RESTART IDENTITY`;` and it still threw a syntax error. Anyway, when I started truncating tables directly from the database inside the command line, postgres told me to truncate them at the same time. So that's what I did, and it worked.Eddy Nguyen
02/13/2022, 11:02 PM