From 0bd42bacfcc6ecc81c7953cea1f93105594ad433 Mon Sep 17 00:00:00 2001 From: nilsdelaguardia Date: Thu, 31 Oct 2024 12:33:52 -0400 Subject: [PATCH] Fix down migration in create_logger_tables --- .../2019_03_35_000001_create_logger_tables.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/database/migrations/2019_03_35_000001_create_logger_tables.php b/database/migrations/2019_03_35_000001_create_logger_tables.php index 6fa1c35..573ecaa 100644 --- a/database/migrations/2019_03_35_000001_create_logger_tables.php +++ b/database/migrations/2019_03_35_000001_create_logger_tables.php @@ -132,11 +132,11 @@ public function up(): void public function down(): void { Schema::disableForeignKeyConstraints(); - Schema::drop('audit_changes'); - Schema::drop('audit_routes'); - Schema::drop('audit_keys'); - Schema::drop('audit_models'); - Schema::drop('audit_activities'); + Schema::dropIfExists('audit_models'); + Schema::dropIfExists('audit_changes'); + Schema::dropIfExists('audit_activities'); + Schema::dropIfExists('audit_routes'); + Schema::dropIfExists('audit_keys'); Schema::enableForeignKeyConstraints(); } }