From 133bf01c2fb8a209e14bfe0f6618831d6a217243 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Wed, 8 Feb 2023 13:14:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20Task?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...21_set_host_id_nullable_to_tasks_table.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2023_02_08_024521_set_host_id_nullable_to_tasks_table.php diff --git a/database/migrations/2023_02_08_024521_set_host_id_nullable_to_tasks_table.php b/database/migrations/2023_02_08_024521_set_host_id_nullable_to_tasks_table.php new file mode 100644 index 0000000..7ce3e06 --- /dev/null +++ b/database/migrations/2023_02_08_024521_set_host_id_nullable_to_tasks_table.php @@ -0,0 +1,32 @@ +unsignedBigInteger('host_id')->nullable()->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down(): void + { + Schema::table('tasks', function (Blueprint $table) { + $table->unsignedBigInteger('host_id')->nullable(false)->change(); + }); + } +};