mirror of
https://github.com/flarum/framework.git
synced 2024-11-27 02:53:37 +08:00
fixes #1801, increasing the size of posts.content to mediumText correctly
This commit is contained in:
parent
de5ab3a436
commit
0b7c611715
|
@ -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();
|
||||
});
|
||||
}
|
||||
];
|
Loading…
Reference in New Issue
Block a user