Use dropIfExists instead of drop

This commit is contained in:
Diogo Azevedo
2016-10-16 14:34:56 -02:00
parent 472d6ae508
commit 3ecc0e39ed
2 changed files with 2 additions and 2 deletions

View File

@@ -30,6 +30,6 @@ class CreateUsersTable extends Migration
*/ */
public function down() public function down()
{ {
Schema::drop('users'); Schema::dropIfExists('users');
} }
} }

View File

@@ -27,6 +27,6 @@ class CreatePasswordResetsTable extends Migration
*/ */
public function down() public function down()
{ {
Schema::drop('password_resets'); Schema::dropIfExists('password_resets');
} }
} }