diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-11-14 16:07:37 +0100 |
---|---|---|
committer | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2023-11-27 15:23:52 +0100 |
commit | 1b547c7db88f872db999793f56554cb9e3a4366b (patch) | |
tree | b362d7b59489764d19e79a35561fd434588e50b7 /lib | |
parent | ad88c04f2de08e2adda5dc2031699d892466fd94 (diff) | |
download | nextcloud-server-1b547c7db88f872db999793f56554cb9e3a4366b.tar.gz nextcloud-server-1b547c7db88f872db999793f56554cb9e3a4366b.zip |
Migrate missing primary key database check to new API
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/DB/MissingPrimaryKeyInformation.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/DB/MissingPrimaryKeyInformation.php b/lib/private/DB/MissingPrimaryKeyInformation.php index f28c8cfb352..42e5584291c 100644 --- a/lib/private/DB/MissingPrimaryKeyInformation.php +++ b/lib/private/DB/MissingPrimaryKeyInformation.php @@ -26,9 +26,9 @@ declare(strict_types=1); namespace OC\DB; class MissingPrimaryKeyInformation { - private $listOfMissingPrimaryKeys = []; + private array $listOfMissingPrimaryKeys = []; - public function addHintForMissingSubject(string $tableName) { + public function addHintForMissingPrimaryKey(string $tableName): void { $this->listOfMissingPrimaryKeys[] = [ 'tableName' => $tableName, ]; |