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

Fix deleting database host when it has assigned nodes #899

Conversation

PseudoResonance
Copy link
Contributor

Deleting a database host with assigned nodes currently throws a foreign key constraint error. This migration will cascade delete the node assignments as well, but maybe it'd be preferable to just show an error and ask the user to remove the node assignments?

Copy link
Contributor

@RMartinOscar RMartinOscar left a comment

Choose a reason for hiding this comment

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

No rollback needed

@RMartinOscar RMartinOscar requested a review from Boy132 January 9, 2025 15:25
@RMartinOscar RMartinOscar linked an issue Jan 9, 2025 that may be closed by this pull request
@RMartinOscar RMartinOscar merged commit d088e79 into pelican-dev:main Jan 9, 2025
15 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 9, 2025
@PseudoResonance PseudoResonance deleted the fix-delete-database-host-when-assigned-node branch January 9, 2025 23:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to delete DatabaseHost if it has nodes
3 participants