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

Add dependent: :nullify to Page#nodes #2828

Closed

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Apr 10, 2024

What is this pull request for?

If a page is used in a node, we need to nullify that page_id upon destruction. Otherwise we get foreign key constraint errors.

If a page is used in a node, we need to nullify that page_id upon
destruction. Otherwise we get foreign key constraint errors.
@mamhoff mamhoff requested a review from a team as a code owner April 10, 2024 18:52
@mamhoff
Copy link
Contributor Author

mamhoff commented Apr 10, 2024

We already throw an exception when this happens in the UI. Closing this PR.

Regarding #2829 we might want to do the same there? What do you think?

@mamhoff mamhoff closed this Apr 10, 2024
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.

1 participant