1
0
mirror of https://github.com/flarum/core.git synced 2025-07-08 10:35:27 +02:00

fixes #1801, increasing the size of posts.content to mediumText correctly

This commit is contained in:
Daniël Klabbers
2019-06-24 14:53:56 +02:00
parent fda9cba4ce
commit 590b311570

View File

@ -12,16 +12,17 @@
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Schema\Builder; use Illuminate\Database\Schema\Builder;
// https://github.com/doctrine/dbal/issues/2566#issuecomment-480217999
return [ return [
'up' => function (Builder $schema) { 'up' => function (Builder $schema) {
$schema->table('posts', function (Blueprint $table) { $schema->table('posts', function (Blueprint $table) {
$table->mediumText('content')->change(); $table->mediumText('content')->comment(' ')->change();
}); });
}, },
'down' => function (Builder $schema) { 'down' => function (Builder $schema) {
$schema->table('posts', function (Blueprint $table) { $schema->table('posts', function (Blueprint $table) {
$table->text('content')->change(); $table->text('content')->comment('')->change();
}); });
} }
]; ];