From ccd472901172a675e7204c65dc486a50d9172dc7 Mon Sep 17 00:00:00 2001 From: Daniel Klabbers Date: Thu, 19 Jul 2018 09:52:20 +0200 Subject: [PATCH] instead of changing fulltext, use medium text schema builder change on posts.content --- .../migrations/2018_01_18_135000_change_posts_b8_columns.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/framework/core/migrations/2018_01_18_135000_change_posts_b8_columns.php b/framework/core/migrations/2018_01_18_135000_change_posts_b8_columns.php index 03b44f92c..406210a81 100644 --- a/framework/core/migrations/2018_01_18_135000_change_posts_b8_columns.php +++ b/framework/core/migrations/2018_01_18_135000_change_posts_b8_columns.php @@ -34,9 +34,8 @@ return [ $table->renameColumn('edited_user_id', 'edit_user_id'); $table->renameColumn('edited_user_id', 'hidden_user_id'); - }); - $prefix = $schema->getConnection()->getTablePrefix(); - $schema->getConnection()->statement('ALTER TABLE '.$prefix.'posts MODIFY content FULLTEXT'); + $table->mediumText('content')->change(); + }); } ];