diff --git a/database/migrations/2024_07_02_155058_update_member_participants_column.php b/database/migrations/2024_07_02_155058_update_member_participants_column.php index 5c1a1d3e..ccec6a2f 100644 --- a/database/migrations/2024_07_02_155058_update_member_participants_column.php +++ b/database/migrations/2024_07_02_155058_update_member_participants_column.php @@ -16,7 +16,7 @@ return new class extends Migration public function up() { Schema::table('participants', function (Blueprint $table) { - $table->renameColumn('mitgliedsnr', 'member_id')->nullable(); + $table->renameColumn('mitgliedsnr', 'member_id'); }); Schema::table('participants', function (Blueprint $table) { diff --git a/tests/Feature/Form/FormRegisterActionTest.php b/tests/Feature/Form/FormRegisterActionTest.php index 9af378ac..26ce9571 100644 --- a/tests/Feature/Form/FormRegisterActionTest.php +++ b/tests/Feature/Form/FormRegisterActionTest.php @@ -430,7 +430,7 @@ class FormRegisterActionTest extends FormTestCase ->create(); $this->register($form, ['email' => 'max@muster.de'])->assertOk(); - $this->assertNull($form->participants->first()->mitgliedsnr); + $this->assertNull($form->participants->first()->member_id); $this->assertNull($form->participants->first()->parent_id); }