From 1628390ccf63f7a7f735b3351d211a933233c161 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Thu, 15 Jan 2026 16:13:12 -0100 Subject: [PATCH] fix(mounts): only remove existing index Signed-off-by: Maxence Lange --- core/Migrations/Version33000Date20251209123503.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }