Skip to content

A free open source IT asset/license management system

Conditionally drop table

Marcus Mooreb5ea8b8a4fd1
diff --git a/database/migrations/2012_12_06_225929_migration_cartalyst_sentry_install_groups.php b/database/migrations/2012_12_06_225929_migration_cartalyst_sentry_install_groups.php
index cd45847bc7..49242f2e30 100644
--- a/database/migrations/2012_12_06_225929_migration_cartalyst_sentry_install_groups.php
+++ b/database/migrations/2012_12_06_225929_migration_cartalyst_sentry_install_groups.php
@@ -44,6 +44,7 @@ class MigrationCartalystSentryInstallGroups extends Migration
*/
public function down()
{
- Schema::drop('permission_groups');
+ // See 2014_11_04_231416_update_group_field_for_reporting.php and 2019_06_12_184327_rename_groups_table.php
+ Schema::dropIfExists('permission_groups');
}
}