1
0
mirror of https://github.com/flarum/core.git synced 2025-07-20 00:01:17 +02:00

Merge pull request #1155 from ssfinney/feature/mediumtext_for_post_content_column

Change content column from TEXT to MEDIUMTEXT
This commit is contained in:
Franz Liedke
2017-04-13 08:04:05 +02:00
committed by GitHub

View File

@@ -0,0 +1,27 @@
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Schema\Builder;
return [
'up' => function (Builder $schema) {
$schema->table('posts', function (Blueprint $table) {
$table->mediumText('content')->change();
});
},
'down' => function (Builder $schema) {
$schema->table('posts', function (Blueprint $table) {
$table->text('content')->change();
});
}
];