blob: 355ce86423aa260d74a1e7711dda97749942476f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OC\DB;
class MissingPrimaryKeyInformation {
private array $listOfMissingPrimaryKeys = [];
public function addHintForMissingPrimaryKey(string $tableName): void {
$this->listOfMissingPrimaryKeys[] = [
'tableName' => $tableName,
];
}
public function getListOfMissingPrimaryKeys(): array {
return $this->listOfMissingPrimaryKeys;
}
}
|