From 4d6151eda71c7377e84f2035140a7a4d57855e80 Mon Sep 17 00:00:00 2001 From: Bram Spies Date: Tue, 11 Feb 2025 16:49:39 +0100 Subject: [PATCH 1/2] Adjust form handle column in form submission table to have same length has form handle in forms table --- .../2024_03_07_100000_create_form_submissions_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2024_03_07_100000_create_form_submissions_table.php b/database/migrations/2024_03_07_100000_create_form_submissions_table.php index 9990150b..337f3d0d 100644 --- a/database/migrations/2024_03_07_100000_create_form_submissions_table.php +++ b/database/migrations/2024_03_07_100000_create_form_submissions_table.php @@ -10,7 +10,7 @@ public function up() { Schema::create($this->prefix('form_submissions'), function (Blueprint $table) { $table->id(); - $table->string('form', 30)->nullable()->index(); + $table->string('form', 255)->nullable()->index(); $table->jsonb('data')->nullable(); $table->timestamps(6); From e46148e5025e531d3396a087735041e03060d75e Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Tue, 11 Feb 2025 16:37:22 +0000 Subject: [PATCH 2/2] don't specify a length - match forms migration --- .../2024_03_07_100000_create_form_submissions_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2024_03_07_100000_create_form_submissions_table.php b/database/migrations/2024_03_07_100000_create_form_submissions_table.php index 337f3d0d..6ee9bfff 100644 --- a/database/migrations/2024_03_07_100000_create_form_submissions_table.php +++ b/database/migrations/2024_03_07_100000_create_form_submissions_table.php @@ -10,7 +10,7 @@ public function up() { Schema::create($this->prefix('form_submissions'), function (Blueprint $table) { $table->id(); - $table->string('form', 255)->nullable()->index(); + $table->string('form')->nullable()->index(); $table->jsonb('data')->nullable(); $table->timestamps(6);