Skip to content

Commit

Permalink
Change text to mediumText (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaucau authored Nov 6, 2020
1 parent 52112af commit 94e5cb5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions migrations/2020_09_09_173600_increase_char_limit.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

/*
* This file is part of fof/pages.
*
* Copyright (c) 2019 FriendsOfFlarum.
*
* 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('pages', function (Blueprint $table) {
$table->mediumText('content')->comment(' ')->change();
});
},
'down' => function (Builder $schema) {
$schema->table('pages', function (Blueprint $table) {
$table->text('content')->comment('')->change();
});
},
];
2 changes: 1 addition & 1 deletion src/PageValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class PageValidator extends AbstractValidator
],
'content' => [
'required',
'max:65535',
'max:16777215',
],
];
}

0 comments on commit 94e5cb5

Please sign in to comment.