Prisma tips?

So, i've been using prisma migrate dev for every migration for awhile now. But I only just read the docs that you shouldn't use this to migrate (?) other environments like prod and staging What commands do y'all use consistently?
2 Replies
Brendonovich
Brendonovich3y ago
My Prisma migration flow is usually something like this: 1. prisma db push in development to sync your dev database with your schema. Doesn't generate migrations. 2. prisma migrate dev in development to generate migrations once you've finalised your schema changes. 3. prisma migrate deploy in production to deploy new migrations to your production database. You usually run this in CI or on app startup.
anderjaska
anderjaskaOP3y ago
thank you
Want results from more Discord servers?
Add your server