N
Neon2y ago
fair-rose

Check of understanding

I'm thinking of using Neon and I just wanted to check some of my understanding from reading through the docs. I did not go DEEP yet... If I create a schema on my main branch or production branch. I then create a child branch from main ... I create some schema changes and decide I want to roll these into main. Is this something I can do in back office? What is that process look like? I saw some guides using libraries like Drizzle. I tend to just write my SQL statements straight up in my code and I didn't see any base migration docs.
3 Replies
like-gold
like-gold2y ago
There is not currently a way to merge branches into their parents in your case, you should use a branch to check if everything applies right and passes tests. Then apply the same migration to your main branch
foreign-sapphire
foreign-sapphire2y ago
thanks for the question and clarification, was wondering (and struggling) with this
eastern-cyan
eastern-cyan2y ago
This video by Mahmoud has some more detail on this topic: https://www.youtube.com/watch?v=PX881bVAPxM
Neon
YouTube
Prisma essentials: from development to production (Prisma Migrate w...
Learn about database migrations using Prisma Migrate and how to go from Development to Preview to Production. - Code example: https://github.com/neondatabase/preview-branches-with-fly/tree/with-prisma - Try Neon at https://neon.tech/youtube → Neon Discord: https://neon.tech/discord → Follow us on Twitter: https://twitter.com/neondatabase
→ S...

Did you find this page helpful?