From 590b3115708bf94a9c7f169d98c6126380c7056e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Mon, 24 Jun 2019 14:53:56 +0200 Subject: [PATCH] fixes #1801, increasing the size of posts.content to mediumText correctly --- ..._24_145100_change_posts_content_column_to_mediumtext.php} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename migrations/{2017_04_09_152230_change_posts_content_column_to_mediumtext.php => 2019_06_24_145100_change_posts_content_column_to_mediumtext.php} (74%) diff --git a/migrations/2017_04_09_152230_change_posts_content_column_to_mediumtext.php b/migrations/2019_06_24_145100_change_posts_content_column_to_mediumtext.php similarity index 74% rename from migrations/2017_04_09_152230_change_posts_content_column_to_mediumtext.php rename to migrations/2019_06_24_145100_change_posts_content_column_to_mediumtext.php index e40ccb544..65e23db1b 100644 --- a/migrations/2017_04_09_152230_change_posts_content_column_to_mediumtext.php +++ b/migrations/2019_06_24_145100_change_posts_content_column_to_mediumtext.php @@ -12,16 +12,17 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Builder; +// https://github.com/doctrine/dbal/issues/2566#issuecomment-480217999 return [ 'up' => function (Builder $schema) { $schema->table('posts', function (Blueprint $table) { - $table->mediumText('content')->change(); + $table->mediumText('content')->comment(' ')->change(); }); }, 'down' => function (Builder $schema) { $schema->table('posts', function (Blueprint $table) { - $table->text('content')->change(); + $table->text('content')->comment('')->change(); }); } ];