Skip to content

Commit

Permalink
revert the fix index names logic, preparing for illuminate 5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
luceos committed Jan 15, 2019
1 parent adad532 commit c27411d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions migrations/2018_09_15_043621_add_discussions_indices.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
];

0 comments on commit c27411d

Please sign in to comment.