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
Lopen2y ago
Usually npm i runs it automatically
Axibord
AxibordOP2y ago
But when you change a model in .prisma, how do you apply to the db?
Lopen
Lopen2y 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
AxibordOP2y 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
Lopen2y ago
Maybe you could open an issue on github or maybe this finds the team It may be a good first request
Axibord
AxibordOP2y ago
Yep, thank you!
Want results from more Discord servers?
Add your server