From e0b62496746993012f3bf33bad0baef895fc98ae Mon Sep 17 00:00:00 2001 From: Tom Witkowski Date: Mon, 23 Mar 2020 18:21:21 +0100 Subject: [PATCH] fix down method in new migration --- migrations/add_event_column_to_activity_log_table.php.stub | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/migrations/add_event_column_to_activity_log_table.php.stub b/migrations/add_event_column_to_activity_log_table.php.stub index 7006ee68..2f06748d 100644 --- a/migrations/add_event_column_to_activity_log_table.php.stub +++ b/migrations/add_event_column_to_activity_log_table.php.stub @@ -21,6 +21,8 @@ class AddEventColumnToActivityLogTable extends Migration */ public function down() { - Schema::connection(config('activitylog.database_connection'))->dropIfExists(config('activitylog.table_name')); + Schema::connection(config('activitylog.database_connection'))->table(config('activitylog.table_name'), function (Blueprint $table) { + $table->dropColumn('event'); + }); } }