Skip to content

Conversation

@dcousens
Copy link
Member

@dcousens dcousens commented Feb 13, 2023

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-reset for 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 dev is about a workflow, and not about kicking off specific actions.

(review and merge #8046 before this pull request is rebased)

@changeset-bot

This comment was marked as resolved.

@vercel
Copy link

vercel bot commented Feb 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
keystone-next-docs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 13, 2023 at 11:49PM (UTC)

@dcousens dcousens requested a review from borisno2 February 13, 2023 07:02
@dcousens dcousens self-assigned this Feb 13, 2023
@dcousens dcousens changed the title Remove --reset-db Remove keystone dev --reset-db Feb 13, 2023
@codesandbox-ci
Copy link

codesandbox-ci bot commented Feb 13, 2023

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:

Sandbox Source
@keystone-6/sandbox Configuration

return telemetry(cwd, argv[1]);
} else {
return commands[command](cwd);
return prisma(cwd, argv.slice(1), defaultFlags(flags, { frozen: false }).frozen);
Copy link
Member

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

@vercel vercel bot temporarily deployed to Preview February 13, 2023 23:02 Inactive
@vercel vercel bot temporarily deployed to Preview February 13, 2023 23:06 Inactive
@vercel vercel bot temporarily deployed to Preview February 13, 2023 23:23 Inactive
@vercel vercel bot temporarily deployed to Preview February 13, 2023 23:31 Inactive
@vercel vercel bot temporarily deployed to Preview February 13, 2023 23:40 Inactive
@vercel vercel bot temporarily deployed to Preview February 13, 2023 23:49 Inactive
@dcousens dcousens merged commit 254e6d5 into main Feb 14, 2023
@dcousens dcousens deleted the no-reset-db branch February 14, 2023 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants