1
0
mirror of https://github.com/flarum/core.git synced 2025-08-20 15:21:49 +02:00

further revert #96e2824

This commit is contained in:
Daniël Klabbers
2019-01-15 20:49:06 +01:00
parent 390148456c
commit 54fdc40d87
13 changed files with 26 additions and 26 deletions

View File

@@ -14,7 +14,7 @@ use Illuminate\Database\Schema\Builder;
return [
'up' => function (Builder $schema) {
$schema->table('posts', function (Blueprint $table) use ($schema) {
$schema->table('posts', function (Blueprint $table) {
$table->index(['discussion_id', 'number']);
$table->index(['discussion_id', 'created_at']);
$table->index(['user_id', 'created_at']);
@@ -22,7 +22,7 @@ return [
},
'down' => function (Builder $schema) {
$schema->table('posts', function (Blueprint $table) use ($schema) {
$schema->table('posts', function (Blueprint $table) {
$table->dropIndex(['discussion_id', 'number']);
$table->dropIndex(['discussion_id', 'created_at']);
$table->dropIndex(['user_id', 'created_at']);