diff --git a/core/Migrations/Version33000Date20251209123503.php b/core/Migrations/Version33000Date20251209123503.php index daa3470850d40..1a9cdc4434339 100644 --- a/core/Migrations/Version33000Date20251209123503.php +++ b/core/Migrations/Version33000Date20251209123503.php @@ -39,7 +39,9 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt 'notnull' => true, 'length' => 32, // xxh128 ]); - $table->dropIndex('mounts_user_root_path_index'); + if ($table->hasIndex('mounts_user_root_path_index')) { + $table->dropIndex('mounts_user_root_path_index'); + } $table->addUniqueIndex(['user_id', 'root_id', 'mount_point_hash'], 'mounts_user_root_path_index'); return $schema; }