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 7ac219db8..eeb3ec1e6 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 @@ -8,12 +8,12 @@ * file that was distributed with this source code. */ -use Flarum\Tags\Tag; +use Illuminate\Database\ConnectionInterface; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Builder; return [ - 'up' => function (Builder $schema) { + 'up' => function (Builder $schema, ConnectionInterface $db) { $schema->create('tags', function (Blueprint $table) { $table->increments('id'); $table->string('name', 100); @@ -35,8 +35,7 @@ return [ $table->integer('last_discussion_id')->unsigned()->nullable(); }); - Tag::unguard(); - Tag::insert([ + $db->table('tags')->insert([ 'name' => 'General', 'slug' => 'general', 'color' => '#888',