-
Notifications
You must be signed in to change notification settings - Fork 973
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rebuild Prisma Client between upgrades #1155
Rebuild Prisma Client between upgrades #1155
Conversation
This covers the first part of the task, which is shutting down the api side, but I think we need to generate a new Prisma client after the upgrade has run! Let me know if you need me to outline the steps here. :) |
@peterp yes please do outline the steps, I'm still noobing a lot of my way through this x) |
Hi gents! Kill vs. Warn in case of server is runningIf a running server is a part of the problem, might it be easier to simply:
It's a personal preference, but I've always been a proponent of telling users they need to stop processes themselves instead of automatically doing it for them. Another option here could be to default to "warn if process is running" but have an option to "kill process if running". Upgrade Prisma and Regenerate Client
|
@thedavidprice Yeah, that makes sense, let's do that instead.
The problem is that the user needs to regenerate the prisma client. |
@noire-munich just checking back here. Any chance? |
@thedavidprice nope not yet, I was keeping an eye more on #1154 lately. |
We do not. Primarily wanted to make sure you saw the previous comments and they made sense! re: Setup and #1154 Other than waiting for a reply from Peter (btw, he's on vacation until next week), is there anything else you were waiting on? I'm replying in that thread now. |
@noire-munich Sorry, I completely missed your comment asking about the steps:
@thedavidprice I thought a bit about your comments about warning the user about the running server and making them do it instead, but I think it's a lot more code and a bunch more complicated. |
Hi guys!
No problem \o/ glad about it :)
Nope thank you, I'm a bit slow on my contributions lately because I'm focusing on a project RW based that I hope could make it to preprod during Q4 :p
No more time off for you @peterp 😈 , seriously though, not a problem 😋 . Aside from that, both options were clear, however @thedavidprice I would submit to @peterp latest proposal for a first draft, in the undying spirit of "getting things done" before "making them right" ( ok, wording has changed a bit since I last checked the roadmap :p ). I'll go with it and make modifications if we are satisfied and want to push it a bit further, if it's ok with you both :) |
…ch/redwood into pr/prisma-problems-on-upgrade
@peterp I updated the code, I've left two things I'd like to sort out together:
|
It is indeed a bit irrelevant now, since attempting to start the dev-server will shut it down if it's already running.
I would suggest using the redwood/packages/cli/src/commands/dbCommands/up.js Lines 45 to 60 in 60e8907
|
@noire-munich and @peterp checking in to see if it's worth picking up work on this one? If so, let me know (especially if I can be of help). |
@thedavidprice @peterp |
@noire-munich Thanks so much! And great to have you back 🚀 @dac09 Given some testing, this seems like a candidate for v0.25. Can you confirm on your end whether we should consider? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I'll take it from here. It's on my list for potentially including in v0.25 release. Thanks! |
Fixed an outdated import path. Otherwise is working 🚀 Will merge once CI passes. |
pleasure is mine ;) |
…ender-p1 * 'main' of github.com:redwoodjs/redwood: v0.25.0 yarn rw prisma commands now show a little tip (redwoodjs#1772) FIx typo (redwoodjs#1779) Ensure all data is removed during the teardown step (redwoodjs#1714) [v0.25] revert to @prisma/cli; recreate yarn.lock (redwoodjs#1774) use prisma db push for test DB (redwoodjs#1768) Disable --version and -v for prisma alias. (redwoodjs#1767) Rebuild Prisma Client between upgrades (redwoodjs#1155) upgrade Prisma v2.16.1 (redwoodjs#1766) [v0.25] Remove warning if you scaffold a model with a relation (redwoodjs#1757) [v0.25] Scaffolded many-to-many relationship fixes (redwoodjs#1758) add forrest and kim-adeline; update all contribs (redwoodjs#1763) Run clean and then build the js. Fix: applying afterQuery in storybook mocks (redwoodjs#1740) restructure and update Deploy command and change Setup Deploy command template [breaking] (redwoodjs#1747) Fixes prisma command when path has spaces Make tutorial work with workspaces. Add "packages/*" to the template.
Addresses issue #1083