diff --git a/database/migrations/2022_09_03_070656_add_module_id_to_hosts.php b/database/migrations/2022_09_03_070656_add_module_id_to_hosts.php new file mode 100644 index 0000000..0d423f6 --- /dev/null +++ b/database/migrations/2022_09_03_070656_add_module_id_to_hosts.php @@ -0,0 +1,32 @@ +foreign('module_id')->references('id')->on('modules')->cascadeOnUpdate(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('hosts', function (Blueprint $table) { + // + }); + } +};