From 0b7c6117153731ca24e6897c5c31fe44fac3d566 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 framework/core/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/framework/core/migrations/2017_04_09_152230_change_posts_content_column_to_mediumtext.php b/framework/core/migrations/2019_06_24_145100_change_posts_content_column_to_mediumtext.php similarity index 74% rename from framework/core/migrations/2017_04_09_152230_change_posts_content_column_to_mediumtext.php rename to framework/core/migrations/2019_06_24_145100_change_posts_content_column_to_mediumtext.php index e40ccb544..65e23db1b 100644 --- a/framework/core/migrations/2017_04_09_152230_change_posts_content_column_to_mediumtext.php +++ b/framework/core/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(); }); } ];