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

Merge branch 'master' into dk/1236-user-preferences

This commit is contained in:
Daniël Klabbers
2020-06-26 09:50:10 +02:00
329 changed files with 7763 additions and 5804 deletions

View File

@@ -0,0 +1,25 @@
<?php
/*
* This file is part of Flarum.
*
* For detailed 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('discussions', function (Blueprint $table) {
$table->integer('comment_count')->default(1)->change();
});
},
'down' => function (Builder $schema) {
$schema->table('discussions', function (Blueprint $table) {
$table->integer('comment_count')->default(0)->change();
});
}
];

View File

@@ -0,0 +1,14 @@
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
use Flarum\Database\Migration;
return Migration::addColumns('groups', [
'is_hidden' => ['boolean', 'default' => false]
]);