Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
Merge branch 'migration-changes'
Browse files Browse the repository at this point in the history
  • Loading branch information
KasparRosin committed Jan 3, 2020
2 parents 658f824 + c6b1b74 commit 54ae27b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ public function up()
{
$categoriesTable = config('nova-blog.blog_categories_table', 'nova_blog_categories');
if (!Schema::hasTable($categoriesTable)) {
Schema::rename('categories', $categoriesTable);
if (Schema::hasTable('categories')) {
Schema::rename('categories', $categoriesTable);
}
}
}

Expand Down

0 comments on commit 54ae27b

Please sign in to comment.