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