From 623728b310f493c9a99bf9a37f18192315a542b8 Mon Sep 17 00:00:00 2001 From: Novruz Rahimov Date: Wed, 7 Feb 2024 22:32:12 +0400 Subject: [PATCH] fix: add the missing bracket to the migration file --- .../migrations/add_tenant_aware_column_to_media_table.php.stub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/add_tenant_aware_column_to_media_table.php.stub b/database/migrations/add_tenant_aware_column_to_media_table.php.stub index ea0181b9..4df4ae6d 100644 --- a/database/migrations/add_tenant_aware_column_to_media_table.php.stub +++ b/database/migrations/add_tenant_aware_column_to_media_table.php.stub @@ -18,7 +18,7 @@ return new class extends Migration public function down(): void { - if (Schema::hasColumn(app(config('curator.model'))->getTable(), config('curator.tenant_ownership_relationship_name') . '_id')) + if (Schema::hasColumn(app(config('curator.model'))->getTable(), config('curator.tenant_ownership_relationship_name') . '_id')) { Schema::table(app(config('curator.model'))->getTable(), function(Blueprint $table) { $table->dropColumn(config('curator.tenant_ownership_relationship_name') . '_id'); });