diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-11-14 16:19:16 +0100 |
---|---|---|
committer | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2023-11-27 15:23:52 +0100 |
commit | a0e365f6d21e0f5dd37839325308e25724ecee63 (patch) | |
tree | 6e1f9b64e4561b61e1281519cd9cdb5c34eb1c3f /apps/settings/lib/SetupChecks | |
parent | 1b547c7db88f872db999793f56554cb9e3a4366b (diff) | |
download | nextcloud-server-a0e365f6d21e0f5dd37839325308e25724ecee63.tar.gz nextcloud-server-a0e365f6d21e0f5dd37839325308e25724ecee63.zip |
Switch from deprecated hasPrimaryKey to getPrimaryKey function
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/settings/lib/SetupChecks')
-rw-r--r-- | apps/settings/lib/SetupChecks/DatabaseHasMissingPrimaryKeys.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/lib/SetupChecks/DatabaseHasMissingPrimaryKeys.php b/apps/settings/lib/SetupChecks/DatabaseHasMissingPrimaryKeys.php index ca872fa265c..9609fe117bb 100644 --- a/apps/settings/lib/SetupChecks/DatabaseHasMissingPrimaryKeys.php +++ b/apps/settings/lib/SetupChecks/DatabaseHasMissingPrimaryKeys.php @@ -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']); } } |