From 94597e57c1276b52fb1c0123077b96ea5d86b445 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Wed, 10 Jul 2024 00:18:18 +0200 Subject: [PATCH] Fix migration --- .../2024_07_06_144714_create_forms_prevention_text_column.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/database/migrations/2024_07_06_144714_create_forms_prevention_text_column.php b/database/migrations/2024_07_06_144714_create_forms_prevention_text_column.php index 0311a150..ab287036 100644 --- a/database/migrations/2024_07_06_144714_create_forms_prevention_text_column.php +++ b/database/migrations/2024_07_06_144714_create_forms_prevention_text_column.php @@ -3,7 +3,6 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -use Tests\RequestFactories\EditorRequestFactory; return new class extends Migration { @@ -15,7 +14,7 @@ return new class extends Migration public function up() { Schema::table('forms', function (Blueprint $table) { - $table->json('prevention_text')->after('description')->default(json_encode(EditorRequestFactory::new()->empty()->create())); + $table->json('prevention_text')->after('description')->default(json_encode(['time' => 4, 'blocks' => [], 'version' => 1.0])); }); }