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.
*/
use Flarum\Database\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Schema\Builder;
return [
'up' => function (Builder $schema) {
$schema->table('discussions', function (Blueprint $table) use ($schema) {
$schema->table('discussions', function (Blueprint $table) {
$table->index('is_locked');
Migration::fixIndexNames($schema, $table);
});
},
'down' => function (Builder $schema) {
$schema->table('discussions', function (Blueprint $table) use ($schema) {
$schema->table('discussions', function (Blueprint $table) {
$table->dropIndex(['is_locked']);
Migration::fixIndexNames($schema, $table);
});
}
];