Skip to content

Commit

Permalink
Swap Drop for DropIfExists in all stubs (#15230)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbardelmeijer authored and taylorotwell committed Sep 2, 2016
1 parent db5c135 commit ccf1724
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/Console/stubs/cache.stub
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ class CreateCacheTable extends Migration
*/
public function down()
{
Schema::drop('cache');
Schema::dropIfExists('cache');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ class CreateNotificationsTable extends Migration
*/
public function down()
{
Schema::drop('notifications');
Schema::dropIfExists('notifications');
}
}
2 changes: 1 addition & 1 deletion src/Illuminate/Queue/Console/stubs/failed_jobs.stub
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ class Create{{tableClassName}}Table extends Migration
*/
public function down()
{
Schema::drop('{{table}}');
Schema::dropIfExists('{{table}}');
}
}
2 changes: 1 addition & 1 deletion src/Illuminate/Queue/Console/stubs/jobs.stub
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ class Create{{tableClassName}}Table extends Migration
*/
public function down()
{
Schema::drop('{{table}}');
Schema::dropIfExists('{{table}}');
}
}
2 changes: 1 addition & 1 deletion src/Illuminate/Session/Console/stubs/database.stub
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ class CreateSessionsTable extends Migration
*/
public function down()
{
Schema::drop('sessions');
Schema::dropIfExists('sessions');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ public function up()
*/
public function down()
{
Schema::drop('users');
Schema::dropIfExists('users');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ public function up()
*/
public function down()
{
Schema::drop('password_resets');
Schema::dropIfExists('password_resets');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ public function up()
*/
public function down()
{
Schema::drop('flights');
Schema::dropIfExists('flights');
}
}

0 comments on commit ccf1724

Please sign in to comment.