1
0
mirror of https://github.com/flarum/core.git synced 2025-08-30 03:20:36 +02:00

reverts #96e2824

This commit is contained in:
Daniël Klabbers
2019-01-15 20:39:38 +01:00
parent 167059027e
commit 390148456c
15 changed files with 4 additions and 105 deletions

View File

@@ -9,7 +9,6 @@
* file that was distributed with this source code.
*/
use Flarum\Database\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Schema\Builder;
@@ -17,16 +16,12 @@ return [
'up' => function (Builder $schema) {
$schema->table('notifications', function (Blueprint $table) use ($schema) {
$table->index('user_id');
Migration::fixIndexNames($schema, $table);
});
},
'down' => function (Builder $schema) {
$schema->table('notifications', function (Blueprint $table) use ($schema) {
$table->dropIndex(['user_id']);
Migration::fixIndexNames($schema, $table);
});
}
];