mirror of
https://github.com/flarum/framework.git
synced 2025-01-22 18:42:01 +08:00
revert the fix index names logic, preparing for illuminate 5.7
This commit is contained in:
parent
c22c74553f
commit
e17d4d57b7
|
@ -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);
|
||||
});
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue
Block a user