From c8271a36e01c094ad19aa75611d025a653a672dd Mon Sep 17 00:00:00 2001 From: Hugo Clarke-Wing <7689302+clarkewing@users.noreply.github.com> Date: Fri, 26 Apr 2024 15:02:02 +0200 Subject: [PATCH] Ensure Playground tables have primary indexes --- .../migrations/2024_04_19_111613_create_playground_tables.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/2024_04_19_111613_create_playground_tables.php b/database/migrations/2024_04_19_111613_create_playground_tables.php index 97dd909..e87387c 100644 --- a/database/migrations/2024_04_19_111613_create_playground_tables.php +++ b/database/migrations/2024_04_19_111613_create_playground_tables.php @@ -10,13 +10,13 @@ public function up(): void { Schema::create('playground_sessions', function (Blueprint $table) { - $table->uuid('id'); + $table->uuid('id')->primary(); $table->ipAddress()->nullable(); $table->timestamps(); }); Schema::create('playground_notams', function (Blueprint $table) { - $table->uuid('id'); + $table->uuid('id')->primary(); $table->foreignIdFor(PlaygroundSession::class, 'session_id'); $table->text('text'); $table->string('tag', 2)->nullable();