2020-11-10 08:34:57 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
/**
|
2024-05-23 07:26:56 +00:00
|
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2020-11-10 08:34:57 +00:00
|
|
|
*/
|
|
|
|
namespace OC\DB;
|
|
|
|
|
|
|
|
class MissingPrimaryKeyInformation {
|
2023-11-14 15:07:37 +00:00
|
|
|
private array $listOfMissingPrimaryKeys = [];
|
2020-11-10 08:34:57 +00:00
|
|
|
|
2023-11-14 15:07:37 +00:00
|
|
|
public function addHintForMissingPrimaryKey(string $tableName): void {
|
2020-11-10 08:34:57 +00:00
|
|
|
$this->listOfMissingPrimaryKeys[] = [
|
|
|
|
'tableName' => $tableName,
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getListOfMissingPrimaryKeys(): array {
|
|
|
|
return $this->listOfMissingPrimaryKeys;
|
|
|
|
}
|
|
|
|
}
|