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