mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
fix(mounts): only remove existing index
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
5d4ff58c3c
commit
9c53ae23d6
1 changed files with 3 additions and 1 deletions
|
|
@ -39,7 +39,9 @@ class Version33000Date20251209123503 extends SimpleMigrationStep {
|
|||
'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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue