We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Adding the following annotation to an edge should replace the existing constraint on that edge from ON DELETE SET NULL to ON DELETE CASCADE:
ON DELETE SET NULL
ON DELETE CASCADE
entsql.Annotation{OnDelete: entsql.Cascade}
When migrating it doesn't generate a change for this constraint because it already exists by name.
It should drop the previous constraint, and then add the new one.
Steps:
SET NULL
The text was updated successfully, but these errors were encountered:
Hey @ivanvanderbyl! It's great to see you here again 😃
We're working on the new migration implementation and this issue should be addressed there.
Sorry, something went wrong.
This still seems to be an issue. Is there any proposed workaround here until this is resolved?
Hey @ivanvanderbyl and @adayNU.
The issue should was resolved with the Atlas migration. See https://entgo.io/docs/migrate#atlas-integration for more info.
Closing, but please let me know if you have any issues with it. Thanks 🙏
No branches or pull requests
Current Behavior 😯
Adding the following annotation to an edge should replace the existing constraint on that edge from
ON DELETE SET NULL
toON DELETE CASCADE
:When migrating it doesn't generate a change for this constraint because it already exists by name.
Expected Behavior 🤔
It should drop the previous constraint, and then add the new one.
Steps to Reproduce 🕹
Steps:
entsql.Annotation{OnDelete: entsql.Cascade}
to an edge that doesn't currently have any OnDelete annotations.SET NULL
.Your Environment 🌎
The text was updated successfully, but these errors were encountered: