How do you push schema changes to a dev branch with planetscale and prisma

How do you push schema changes to a dev branch with planetscale/prisma
5 Replies
theFern
theFern•2y ago
Have you been able to resolve this issue? I'm having the same issue.
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
theFern
theFern•2y ago
You're right, I just don't know how to push the change to the development branch instead 😅
Unknown User
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
hakkub
hakkub•2y ago
You would need to create a dev branch that is branched off of production in your planetscale dashboard. Then use that connection string locally in your code. Then to deploy any changes to dev you just run npx prisma migrate dev Then when you want to merge those changes on the dev branch to production, you would create a deploy request in the PS dashboard.
Want results from more Discord servers?
Add your server