TRPC still looks for old column name after renaming
So I updated my prisma schema and also renamed my column in my table. But somehow I still get an TRPC which says that the column name is wrong.
10 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Did that no change
Also after changing the schema file, do I not just run
npx prisma migrate
to reflect the change?
npx prisma migrate devTry doing npx prisma generate
Btw... it's not tRPC, but prisma
Ran npx prisma generate no success
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
prisma studio shows the change correct
db address is the same, just removed the only session from the db and refreshed my page and got logout 😄
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Restarting again now
ok I think it worked now?
dunno what was the actual change that fixed that
Probably
With the restart?
not sure, do you have to restart after running that command?
Oh, i think you actually have to restart most of the times
At least I'm used to restarting the dev server after making prisma changes
nice thank you both, ill remember that