1
0
mirror of https://github.com/flarum/core.git synced 2025-07-28 20:20:34 +02:00

revert the fix index names logic, preparing for illuminate 5.7

This commit is contained in:
Daniël Klabbers
2019-01-15 21:03:32 +01:00
parent c22c74553f
commit e17d4d57b7

View File

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