diff options
Diffstat (limited to 'lib/private/DB/MissingPrimaryKeyInformation.php')
-rw-r--r-- | lib/private/DB/MissingPrimaryKeyInformation.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/private/DB/MissingPrimaryKeyInformation.php b/lib/private/DB/MissingPrimaryKeyInformation.php new file mode 100644 index 00000000000..355ce86423a --- /dev/null +++ b/lib/private/DB/MissingPrimaryKeyInformation.php @@ -0,0 +1,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; + } +} |