[legacy-framework] Fix blitz db reset for Prisma >=2.0.0-beta.8#716
[legacy-framework] Fix blitz db reset for Prisma >=2.0.0-beta.8#716flybayer merged 2 commits intoblitz-js:canaryfrom SigurdMW:fix-db-raw
blitz db reset for Prisma >=2.0.0-beta.8#716Conversation
|
So I noted that the types for db in the method |
flybayer
left a comment
There was a problem hiding this comment.
Thank you @SigurdMW!
Couple things, as this doesn't work as is:
.rawQueryneeds renamed to.queryRaw- All the statements without
SELECTshould use.executeRaw
Here's the prisma docs on this change
The original issue wasn't clear on this, so sorry about that.
Then after making those changes, test it to make sure it actually works on a real database :)
|
@flybayer does it look better now? Did run successfully when symlinking and testing locally 👍 |
|
Beautiful!! Thank you so much :) @all-contributors add @SigurdMW for code |
|
I've put up a pull request to add @SigurdMW! 🎉 |
blitz db reset for Prisma >=2.0.0-beta.8
|
fyi -- this means it's now broken if you try to use older versions of prisma :) |
blitz db reset for Prisma >=2.0.0-beta.8blitz db reset for Prisma >=2.0.0-beta.8
Closes: blitz-js/legacy-framework#689
What are the changes and their implications?
Changed
db.rawtodb.rawQuerythat was needed due to Prisma 2.0Checklist