diff --git a/database/migrations/2016_10_23_201624_add_foreign_allocations.php b/database/migrations/2016_10_23_201624_add_foreign_allocations.php index b401f8fa2..2d829060a 100644 --- a/database/migrations/2016_10_23_201624_add_foreign_allocations.php +++ b/database/migrations/2016_10_23_201624_add_foreign_allocations.php @@ -12,7 +12,7 @@ return new class extends Migration public function up(): void { Schema::table('allocations', function (Blueprint $table) { - $table->unsignedInteger('assigned_to')->change(); + $table->unsignedInteger('assigned_to')->nullable()->change(); $table->unsignedInteger('node')->change(); });