From 392ae3db0a570af8516768454fae1ee0a77ff903 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Tue, 24 Apr 2018 21:54:39 +0200 Subject: [PATCH] Remove unnecessary parameter in migration closure --- .../tags/migrations/2015_02_24_000000_create_tags_table.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/extensions/tags/migrations/2015_02_24_000000_create_tags_table.php b/extensions/tags/migrations/2015_02_24_000000_create_tags_table.php index d5f0a9b5c..f9b3b63fe 100644 --- a/extensions/tags/migrations/2015_02_24_000000_create_tags_table.php +++ b/extensions/tags/migrations/2015_02_24_000000_create_tags_table.php @@ -9,12 +9,11 @@ * file that was distributed with this source code. */ -use Illuminate\Database\ConnectionInterface; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Builder; return [ - 'up' => function (Builder $schema, ConnectionInterface $db) { + 'up' => function (Builder $schema) { $schema->create('tags', function (Blueprint $table) { $table->increments('id'); $table->string('name', 100); @@ -36,7 +35,7 @@ return [ $table->integer('last_discussion_id')->unsigned()->nullable(); }); - $db->table('tags')->insert([ + $schema->getConnection()->table('tags')->insert([ 'name' => 'General', 'slug' => 'general', 'color' => '#888',