-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Remove keystone dev --reset-db
#8302
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
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 93f78fc:
|
packages/core/src/scripts/cli.ts
Outdated
| return telemetry(cwd, argv[1]); | ||
| } else { | ||
| return commands[command](cwd); | ||
| return prisma(cwd, argv.slice(1), defaultFlags(flags, { frozen: false }).frozen); |
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.
The default flags function doesn't work fore when you want to pass through a Prisma flag - for example --force-reset
c2edaa4 to
d572865
Compare
e690da7 to
f7f6e18
Compare
710d0c0 to
7d7460a
Compare
355692d to
310007d
Compare
310007d to
93f78fc
Compare
This pull request removes
--reset-db.This command was dangerous at the best of times and frustrating almost every other time you accidentally used it from your shell history.
Resetting your database in this way is not a typical way to work with a local development database.
We recommend using
keystone prisma db push --force-resetfor the limited number of occasions that you need this.This pull request is part of the work from #8046 which cements the idea that
keystone devis about a workflow, and not about kicking off specific actions.(review and merge #8046 before this pull request is rebased)