0
0
Fork 0
mirror of https://github.com/nextcloud/server.git synced 2025-02-26 01:40:18 +00:00
nextcloud_server/lib/private/DB/MissingPrimaryKeyInformation.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
518 B
PHP
Raw Permalink Normal View History

<?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;
}
}