prisma migrations using T3 stack

prisma migrations are not setup in the T3 stack There is no script in package.json, or any documentation talking about migrations Is it on purpose? Do you want people to use npx prisma db push ? Or you want to give people freedom on how to handle migrations?
6 Replies
Lopen
Lopen16mo ago
Usually npm i runs it automatically
Axibord
Axibord16mo ago
But when you change a model in .prisma, how do you apply to the db?
Lopen
Lopen16mo ago
npx prisma migrate dev --name add_new_stuff
npx prisma migrate dev --name add_new_stuff
This will creat a migration file and also apply it
Axibord
Axibord16mo ago
Yeah I know, but why it's not included in the T3 doc ? I was just questioning if it was intentional, and the team want people to not use migrations idk
Lopen
Lopen16mo ago
Maybe you could open an issue on github or maybe this finds the team It may be a good first request
Axibord
Axibord16mo ago
Yep, thank you!
Want results from more Discord servers?
Add your server