fetchRow( "SELECT id FROM blog_categories WHERE slug = 'uncategorized'", ); if ($exists) { return; } $this->table('blog_categories')->insert([ 'name' => 'Uncategorized', 'slug' => 'uncategorized', 'description' => 'Default category for blog posts that have not been assigned a more specific category.', ])->saveData(); } }