changed fetchColumn to fetchOne

This commit is contained in:
Nils 2024-10-16 21:20:53 +02:00
parent b369cfec03
commit 9f6779051c
No known key found for this signature in database
GPG Key ID: 30A8F8CF0E18A06D

View File

@ -56,7 +56,7 @@ class Migration1664374217addTurnStileCaptcha extends MigrationStep
public function update(Connection $connection): void
{
//TODO: Can we prevent overriding current CAPTCHA settings?
$configId = $connection->fetchColumn('SELECT id FROM system_config WHERE configuration_key = :key AND updated_at IS NULL', [
$configId = $connection->fetchOne('SELECT id FROM system_config WHERE configuration_key = :key AND updated_at IS NULL', [
'key' => self::CONFIG_KEY,
]);