🛠️ Add support for nullable recurrence interval in API and tests:

- 🗃️ Updated `meetup_events` table to allow `recurrence_interval` as nullable (default: 1).
-  Added test to verify single event creation with explicit null recurrence fields.
This commit is contained in:
HolgerHatGarKeineNode
2026-07-01 09:39:10 +02:00
parent 9884fd25de
commit 8e1e5b998e
3 changed files with 52 additions and 158 deletions
@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('meetup_events', function (Blueprint $table) {
$table->unsignedInteger('recurrence_interval')->nullable()->default(1)->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('meetup_events', function (Blueprint $table) {
$table->unsignedInteger('recurrence_interval')->default(1)->change();
});
}
};