mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 00:02:54 -04:00
Switch from deprecated hasPrimaryKey to getPrimaryKey function
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
fc2467c18f
commit
b75affa793
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ class DatabaseHasMissingPrimaryKeys implements ISetupCheck {
|
|||
foreach ($missingPrimaryKeys as $missingPrimaryKey) {
|
||||
if ($schema->hasTable($missingPrimaryKey['tableName'])) {
|
||||
$table = $schema->getTable($missingPrimaryKey['tableName']);
|
||||
if (!$table->hasPrimaryKey()) {
|
||||
if ($table->getPrimaryKey() === null) {
|
||||
$primaryKeyInfo->addHintForMissingPrimaryKey($missingPrimaryKey['tableName']);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue