Hey there, I have a web app I’ve been working on, on Redwood v0.31.0
I have a few tables such as ‘Tournaments’ and ‘User’, and everything works great with the general db operations via prisma.
Having said that, I have some calls I need to do that need raw sql access (such as checking number of relations and comparing that with a number in the record that indicates max relations allowed). However when I use queryRaw, it gives me this error:
Raw query failed. Code: 42P01
. Message: relation "tournament" does not exist
Even when I select all from User, it gives me a single user account that I had when I first setup the project with redwood, but nothing since then (and again, I can see the multiple user accounts and tournaments with regular db access such as db.tournaments and db.users or even with prisma studio)
I feel as though somehow queryRaw is targeting the old database (potentially an SQL database I used when I setup redwood before moving to postgresql) but I’m unsure how to confirm this or how to fix this.
Any suggestions are appreciated!