-
Notifications
You must be signed in to change notification settings - Fork 48
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
Provide easy way to reset all data in database #237
Comments
Here's an initial design proposal. It's not clear to me yet where the best location for this feature would be but this should get the ball rolling and unblock users. As part of #265 we should rethink this further. Important: When clicking the button, the user should be prompted with a confirmation pop up. |
@madebysid can you implement the functionality for this yourself or does this depend on some (missing) SDK functionality? |
It is possible, I'll run a |
Please make sure that the need to put this somewhere more safe and hidden is tracked. Super scary, even if it needs 5 confirmations. |
Personally, I'd prefer if we handle this in the CLI today with a workflow like Then when we go for it, we have the following UI: Something to improve Soren's workflow is exporting the models from import { PrismaClient, models } from "@prisma/client"
const prisma = new PrismaClient()
for (let model of models) {
await prisma[model].deleteMany()
} I also think with Migrate will cover this use case better. I'd very much prefer to leave this until post-Beta given that we have so many other fish to fry related to the databrowser. |
This still open!!! We need a |
No description provided.
The text was updated successfully, but these errors were encountered: