From 96cdebd8abc88abaeeb3b866448f96c047b400be Mon Sep 17 00:00:00 2001 From: Quentin Renard Date: Wed, 4 Mar 2020 23:23:18 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20#41=20=E2=80=93=20Use=20text=20columns=20?= =?UTF-8?q?for=20medias=20and=20files=20uuid,=20alt=5Ftext,=20caption=20an?= =?UTF-8?q?d=20filename?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also make alt_text nullable --- ...20_02_09_000003_create_twill_default_medias_tables.php | 8 ++++---- ...020_02_09_000004_create_twill_default_files_tables.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/migrations/default/2020_02_09_000003_create_twill_default_medias_tables.php b/migrations/default/2020_02_09_000003_create_twill_default_medias_tables.php index 69792ea11..4670d2279 100644 --- a/migrations/default/2020_02_09_000003_create_twill_default_medias_tables.php +++ b/migrations/default/2020_02_09_000003_create_twill_default_medias_tables.php @@ -21,12 +21,12 @@ public function up() $table->{twillIncrementsMethod()}('id'); $table->timestamps(); $table->softDeletes(); - $table->string('uuid'); - $table->string('alt_text'); + $table->text('uuid'); + $table->text('alt_text')->nullable(); $table->integer('width')->unsigned(); $table->integer('height')->unsigned(); - $table->string('caption')->nullable(); - $table->string('filename')->nullable(); + $table->text('caption')->nullable(); + $table->text('filename')->nullable(); }); } diff --git a/migrations/default/2020_02_09_000004_create_twill_default_files_tables.php b/migrations/default/2020_02_09_000004_create_twill_default_files_tables.php index 5ecb593a4..009c4670b 100644 --- a/migrations/default/2020_02_09_000004_create_twill_default_files_tables.php +++ b/migrations/default/2020_02_09_000004_create_twill_default_files_tables.php @@ -21,8 +21,8 @@ public function up() $table->{twillIncrementsMethod()}('id'); $table->timestamps(); $table->softDeletes(); - $table->string('uuid'); - $table->string('filename')->nullable(); + $table->text('uuid'); + $table->text('filename')->nullable(); $table->integer('size')->unsigned(); }); }