From 3548bde384bbd112ffb9d2198856610cb7db12a5 Mon Sep 17 00:00:00 2001 From: Benjamin Gaussorgues Date: Thu, 13 Feb 2025 10:35:13 +0100 Subject: chore(filecache): remove index fs_id_storage_size Index is outdated by PR 50781 Signed-off-by: Benjamin Gaussorgues --- core/Application.php | 6 +--- core/Migrations/Version31000Date20250213102442.php | 37 ++++++++++++++++++++++ 2 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 core/Migrations/Version31000Date20250213102442.php (limited to 'core') diff --git a/core/Application.php b/core/Application.php index 79021a46e81..cfd0f90ef24 100644 --- a/core/Application.php +++ b/core/Application.php @@ -1,4 +1,5 @@ addMissingIndex( - 'filecache', - 'fs_id_storage_size', - ['fileid', 'storage', 'size'] - ); $event->addMissingIndex( 'filecache', 'fs_storage_path_prefix', diff --git a/core/Migrations/Version31000Date20250213102442.php b/core/Migrations/Version31000Date20250213102442.php new file mode 100644 index 00000000000..d267e867129 --- /dev/null +++ b/core/Migrations/Version31000Date20250213102442.php @@ -0,0 +1,37 @@ +getTable('filecache'); + + // Index added in Version13000Date20170718121200 + if ($table->hasIndex('fs_id_storage_size')) { + $table->dropIndex('fs_id_storage_size'); + } + + return $schema; + } +} -- cgit v1.2.3