Skip to content
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

Implement deleteDataFromAllTables function #710

Merged

Conversation

John-Paul-Larkin
Copy link
Member

✨ Codu Pull Request 💻

Codu Logo

Added a function which deletes all data, from all tables in the database.
This is invoked before the database is filled with the seed data.

I tried adding a user prompt before the deletion process.
I was unable to implement synchronous (or async) command line entry.
I am not sure why exactly, but my assumption is that it is something to do with the way the prisma CLI handles asynchronous operations in the 'npx prsima db seed' script.

Any Breaking changes

None

Associated Screenshots

None

Copy link

vercel bot commented Feb 4, 2024

@John-Paul-Larkin is attempting to deploy a commit to the Codú Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@NiallJoeMaher NiallJoeMaher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Looks like this will work well 🦾

Copy link

vercel bot commented Feb 4, 2024

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

Name Status Preview Comments Updated (UTC)
codu ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 4, 2024 6:40pm

@John-Paul-Larkin John-Paul-Larkin requested a review from a team as a code owner February 4, 2024 19:22
@NiallJoeMaher NiallJoeMaher merged commit 86f2711 into codu-code:develop Feb 4, 2024
2 of 4 checks passed
@John-Paul-Larkin John-Paul-Larkin deleted the 708-duplicate-seed-data branch March 27, 2024 13:06
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.

2 participants