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