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