Skip to content

Commit

Permalink
fixes #1801, increasing the size of posts.content to mediumText corre…
Browse files Browse the repository at this point in the history
…ctly
  • Loading branch information
luceos committed Jun 24, 2019
1 parent fda9cba commit 590b311
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}
];

0 comments on commit 590b311

Please sign in to comment.