2018-06-04 14:20:01 +00:00
|
|
|
<?php
|
2019-12-03 18:57:53 +00:00
|
|
|
|
2018-06-12 21:43:29 +00:00
|
|
|
declare(strict_types=1);
|
2019-12-03 18:57:53 +00:00
|
|
|
|
2018-06-04 14:20:01 +00:00
|
|
|
/**
|
2024-05-23 07:26:56 +00:00
|
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2018-06-04 14:20:01 +00:00
|
|
|
*/
|
|
|
|
namespace OC\DB;
|
|
|
|
|
|
|
|
class MissingIndexInformation {
|
2023-11-14 14:51:26 +00:00
|
|
|
private array $listOfMissingIndices = [];
|
2018-06-04 14:20:01 +00:00
|
|
|
|
2023-11-14 14:51:26 +00:00
|
|
|
public function addHintForMissingIndex(string $tableName, string $indexName): void {
|
|
|
|
$this->listOfMissingIndices[] = [
|
2018-06-04 14:20:01 +00:00
|
|
|
'tableName' => $tableName,
|
|
|
|
'indexName' => $indexName
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
2023-11-14 14:51:26 +00:00
|
|
|
public function getListOfMissingIndices(): array {
|
|
|
|
return $this->listOfMissingIndices;
|
2018-06-04 14:20:01 +00:00
|
|
|
}
|
2019-11-22 19:52:10 +00:00
|
|
|
}
|