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 e40ccb5446..65e23db1bb 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(); }); } ];