Use dropIfExists for smoother rollbacks
This commit is contained in:
parent
766d012187
commit
26e712dc06
|
|
@ -30,7 +30,7 @@ class DbBackendUsers extends Migration
|
|||
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('backend_users');
|
||||
Schema::dropIfExists('backend_users');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class DbBackendUserGroups extends Migration
|
|||
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('backend_user_groups');
|
||||
Schema::dropIfExists('backend_user_groups');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class DbBackendUsersGroups extends Migration
|
|||
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('backend_users_groups');
|
||||
Schema::dropIfExists('backend_users_groups');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class DbBackendUserThrottle extends Migration
|
|||
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('backend_user_throttle');
|
||||
Schema::dropIfExists('backend_user_throttle');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,6 +22,6 @@ class DbBackendUserPreferences extends Migration
|
|||
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('backend_user_preferences');
|
||||
Schema::dropIfExists('backend_user_preferences');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class DbDeferredBindings extends Migration
|
|||
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('deferred_bindings');
|
||||
Schema::dropIfExists('deferred_bindings');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ class DbSystemFiles extends Migration
|
|||
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('system_files');
|
||||
Schema::dropIfExists('system_files');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class DbSystemPluginVersions extends Migration
|
|||
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('system_plugin_versions');
|
||||
Schema::dropIfExists('system_plugin_versions');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class DbSystemPluginHistory extends Migration
|
|||
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('system_plugin_history');
|
||||
Schema::dropIfExists('system_plugin_history');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,6 @@ class DbSystemSettings extends Migration
|
|||
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('system_settings');
|
||||
Schema::dropIfExists('system_settings');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,6 @@ class DbSystemParameters extends Migration
|
|||
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('system_parameters');
|
||||
Schema::dropIfExists('system_parameters');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class DbSystemEmailTemplates extends Migration
|
|||
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('system_email_templates');
|
||||
Schema::dropIfExists('system_email_templates');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class DbSystemEmailLayouts extends Migration
|
|||
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('system_email_layouts');
|
||||
Schema::dropIfExists('system_email_layouts');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue