-
Notifications
You must be signed in to change notification settings - Fork 23
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
Delete cascade from user to injects should never happen #272
Comments
I reproduce it.
So to fix the problem we need to make a migration but before rush headfirst I prefer to ask you @richard-julien, do you remember if there is a good reason to have done that ? |
No memories on that. I think it was implemented with cascade like this for everything related to the user. I think you should take a look on the other user cascade to see if you need to prevent this behavior on other objects |
Ok I checked all the others delete cascade for the user, they seem legit the only one that I have a doubt is the logs one :
Not sure if we want to keep this kind of logs even when user is deleted |
Agree, I am not sure this is useful to keep it |
Description
When deleting a user in the platform, all injects created by the user are deleted. We need a "set null" behavior on the creator....
The text was updated successfully, but these errors were encountered: