Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.3] Swap Drop for DropIfExists in all stubs #15230

Merged
merged 1 commit into from
Sep 2, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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');
}
}