Skip to content

Commit

Permalink
Swaps Drop for DropIfExists (#15113)
Browse files Browse the repository at this point in the history
During development I find myself migrating up and down frequently. If an error pops up that causes the migration to fail, it often requires manual db manipulation to get the migration flow running again. DropIfExists has helped in these situations.

Signed-off-by: Jesse Schutt <[email protected]>
  • Loading branch information
jesseschutt authored and taylorotwell committed Aug 29, 2016
1 parent 0bd5286 commit 83dbf6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Migrations/stubs/create.stub
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ class DummyClass extends Migration
*/
public function down()
{
Schema::drop('DummyTable');
Schema::dropIfExists('DummyTable');
}
}

0 comments on commit 83dbf6d

Please sign in to comment.