Closed zipzapzanigan closed 2 years ago
Hey @zipzap888!
The issue was also briefly discussed here: https://github.com/blitz-js/blitz/issues/3053. Once we have a Planetscale recipe, it should do all the required changes to make the app work with Planetscale, like removing the migrations folder, removing or replacing $reset
calls etc.
Right now the solution is to perform all the changes manually.
What is the problem?
when you run db.$reset when using planetscale and prisma (mysql) it seems that the default jest tests don't work.
db.$reset drops the tables of the database, and it does a "prisma migrate reset --force --skip-generate" but planetscale doesn't use migrate, it requires that you use prisma db push. This would require that we send a mysql command to drop all tables, and then do a db push.
Paste all your error logs here:
Paste all relevant code snippets here:
What are detailed steps to reproduce this?
Run
blitz -v
and paste the output here:Please include below any other applicable logs and screenshots that show your problem:
No response