v28
Explore posts from serversPPrisma
•Created by v28 on 5/7/2025 in #help-and-questions
renaming column names
Hello,
In the past I've made some really bad naming decisions for my columns and I'm wanting to rename these now.
current schema:
I would like to rename the
botStatusType
column to botActivityType
. To do this I tried using the @map property, below is an example of how i tried this:
My database is populated full of data which cannot be removed, id like this schema change to be seemless, but when attempting to prisma db push
I get the following error:
2 replies
Correct way to fetch trpc data on SSR and CSR
Hello,
I am currently using trpc in my nextjs app router project and I am wondering what the best way of using trpc is with a mixture of SSR and CSR.
The issue I'm having is that because I'm fetching the data on the server, it also fetches on the client which menas I'm making a request needlessly, and I'm not sure what the best way of dealing with this is.
I have a page which is SSR rendered, so I fetch the data which will be used by the page:
1 replies