diff --git a/database/migrations/2025_01_09_143607_database_host_node_foreign_delete_cascade.php b/database/migrations/2025_01_09_143607_database_host_node_foreign_delete_cascade.php new file mode 100644 index 0000000000..66c0b184a6 --- /dev/null +++ b/database/migrations/2025_01_09_143607_database_host_node_foreign_delete_cascade.php @@ -0,0 +1,24 @@ +dropForeign(['database_host_id']); + $table->foreign('database_host_id')->references('id')->on('database_hosts')->cascadeOnDelete(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void {} +};