From 83dbf6dc4fdd76fb59614a971215e4452b870f8c Mon Sep 17 00:00:00 2001 From: Jesse Schutt Date: Sun, 28 Aug 2016 19:31:53 -0500 Subject: [PATCH] Swaps Drop for DropIfExists (#15113) 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 --- src/Illuminate/Database/Migrations/stubs/create.stub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Database/Migrations/stubs/create.stub b/src/Illuminate/Database/Migrations/stubs/create.stub index 692b29f058b7..a98c4749cb1f 100755 --- a/src/Illuminate/Database/Migrations/stubs/create.stub +++ b/src/Illuminate/Database/Migrations/stubs/create.stub @@ -26,6 +26,6 @@ class DummyClass extends Migration */ public function down() { - Schema::drop('DummyTable'); + Schema::dropIfExists('DummyTable'); } }