mirror of
https://github.com/nextcloud/server.git
synced 2026-06-15 11:41:20 -04:00
Merge pull request #57579 from nextcloud/fix/57572/remove-only-existing-index
fix(mounts): only remove existing index
This commit is contained in:
commit
80c16e76be
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