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'); });