mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-25 11:20:56 +03:00
[PR #899] [MERGED] Fix deleting database host when it has assigned nodes #1041
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pelican-dev/panel/pull/899
Author: @PseudoResonance
Created: 1/9/2025
Status: ✅ Merged
Merged: 1/9/2025
Merged by: @rmartinoscar
Base:
main← Head:fix-delete-database-host-when-assigned-node📝 Commits (3)
1ed1e97Cascade delete from database_host_node when the database host is deleted5ae9084Update database/migrations/2025_01_09_143607_database_host_node_foreign_delete_cascade.phpf33670eUpdate 2025_01_09_143607_database_host_node_foreign_delete_cascade.php📊 Changes
1 file changed (+24 additions, -0 deletions)
View changed files
➕
database/migrations/2025_01_09_143607_database_host_node_foreign_delete_cascade.php(+24 -0)📄 Description
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?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.