From bc18eb01dcdc395e2d5e198bf60d4562c8b68585 Mon Sep 17 00:00:00 2001 From: Antonio Ribeiro Date: Tue, 2 Apr 2024 15:22:53 +0200 Subject: [PATCH] Force columns to be nullable, needed for Laravel 11 --- ...114756_update_metadata_description_fields.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/migrations/2021_09_21_114756_update_metadata_description_fields.php b/src/migrations/2021_09_21_114756_update_metadata_description_fields.php index bda87c1..4fc9d3f 100644 --- a/src/migrations/2021_09_21_114756_update_metadata_description_fields.php +++ b/src/migrations/2021_09_21_114756_update_metadata_description_fields.php @@ -14,26 +14,26 @@ class UpdateMetadataDescriptionFields extends Migration public function up() { Schema::table('metadata', function (Blueprint $table) { - $table->text('description')->change(); - $table->text('og_description')->change(); + $table->text('description')->nullable()->change(); + $table->text('og_description')->nullable()->change(); }); Schema::table('metadata_translations', function (Blueprint $table) { - $table->text('description')->change(); - $table->text('og_description')->change(); + $table->text('description')->nullable()->change(); + $table->text('og_description')->nullable()->change(); }); } public function down() { Schema::table('metadata', function (Blueprint $table) { - $table->string('description')->change(); - $table->string('og_description')->change(); + $table->string('description')->nullable()->change(); + $table->string('og_description')->nullable()->change(); }); Schema::table('metadata_translations', function (Blueprint $table) { - $table->string('description')->change(); - $table->string('og_description')->change(); + $table->string('description')->nullable()->change(); + $table->string('og_description')->nullable()->change(); }); } }