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:
@ -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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
];
|
];
|
Reference in New Issue
Block a user