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

Server: Is prisma cascade delete supported? #1409

Open
aridgupta opened this issue Jun 9, 2021 · 5 comments
Open

Server: Is prisma cascade delete supported? #1409

aridgupta opened this issue Jun 9, 2021 · 5 comments

Comments

@aridgupta
Copy link

aridgupta commented Jun 9, 2021

Prisma doesn't yet support cascade deletes. One would normally need to write raw SQL to handle cascade deletes. This is a discussion on the prisma repo. Does this library support cascade deletes using prisma?

@aridgupta aridgupta added the type: bug Something isn't working label Jun 9, 2021
@yuval-hazaz
Copy link
Member

We use Prisma as the ORM in the generated app and tied to its feature set.
based on this discussion, they will support this behavior soon
prisma/prisma#7816

Once Prisma adds support, we will need to add the relevant configuration in the UI and CLI to allow the developer to control the settings.

I will leave this issue open for tracking, and change its type to "feature request"

@yuval-hazaz yuval-hazaz added type: feature request and removed type: bug Something isn't working labels Jun 23, 2021
@yuval-hazaz
Copy link
Member

A few days ago Prisma released v2.26.0 with cascade delete support (in preview)
https://github.com/prisma/prisma/releases/tag/2.26.0

We will wait for a future release with GA before we implement cascade delete

@thebiglabasky
Copy link

We're currently planning to promote this one to GA around the beginning to mid-september.

@yuval-hazaz
Copy link
Member

@thebiglabasky thanks for sharing
Keep up the excellent work with Prisma

@janpio
Copy link

janpio commented Sep 7, 2021

Here you go: https://github.com/prisma/prisma/releases/tag/3.0.1 🚀
Make sure to read the release notes properly and take not of the potential breaking changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Accepted - not ready
Development

No branches or pull requests

4 participants