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(); + }); + } +};