From 34f1b47cccdc68a22b5946ff44a1c893beaca085 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Sat, 3 Sep 2022 15:09:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E5=A4=96=E9=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...22_09_03_070656_add_module_id_to_hosts.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2022_09_03_070656_add_module_id_to_hosts.php 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) { + // + }); + } +};