aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-11-14 15:51:26 +0100
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2023-11-27 15:23:52 +0100
commitad88c04f2de08e2adda5dc2031699d892466fd94 (patch)
tree75df26efb51420f3e9120108de678dc0feaa68e2 /lib
parent2cb1c0f2dc0a5678de142c2791fde25475eb1632 (diff)
downloadnextcloud-server-ad88c04f2de08e2adda5dc2031699d892466fd94.tar.gz
nextcloud-server-ad88c04f2de08e2adda5dc2031699d892466fd94.zip
Migrate missing index database check to new API
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/DB/MissingIndexInformation.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/DB/MissingIndexInformation.php b/lib/private/DB/MissingIndexInformation.php
index 74498668349..4fc3a52d3a4 100644
--- a/lib/private/DB/MissingIndexInformation.php
+++ b/lib/private/DB/MissingIndexInformation.php
@@ -27,16 +27,16 @@ declare(strict_types=1);
namespace OC\DB;
class MissingIndexInformation {
- private $listOfMissingIndexes = [];
+ private array $listOfMissingIndices = [];
- public function addHintForMissingSubject(string $tableName, string $indexName) {
- $this->listOfMissingIndexes[] = [
+ public function addHintForMissingIndex(string $tableName, string $indexName): void {
+ $this->listOfMissingIndices[] = [
'tableName' => $tableName,
'indexName' => $indexName
];
}
- public function getListOfMissingIndexes(): array {
- return $this->listOfMissingIndexes;
+ public function getListOfMissingIndices(): array {
+ return $this->listOfMissingIndices;
}
}