2020-03-11 07:29:52 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2020-03-11 07:29:52 -04:00
|
|
|
*/
|
|
|
|
|
namespace OC\DB;
|
|
|
|
|
|
|
|
|
|
class MissingColumnInformation {
|
2023-11-14 09:14:14 -05:00
|
|
|
private array $listOfMissingColumns = [];
|
2020-03-11 07:29:52 -04:00
|
|
|
|
|
|
|
|
public function addHintForMissingColumn(string $tableName, string $columnName): void {
|
|
|
|
|
$this->listOfMissingColumns[] = [
|
|
|
|
|
'tableName' => $tableName,
|
|
|
|
|
'columnName' => $columnName,
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getListOfMissingColumns(): array {
|
|
|
|
|
return $this->listOfMissingColumns;
|
|
|
|
|
}
|
|
|
|
|
}
|