* SPDX-FileCopyrightText: 2024 Richard Steinmetz * SPDX-License-Identifier: AGPL-3.0-or-later */ namespace OC\Core\Migrations; use Closure; use OCP\DB\ISchemaWrapper; use OCP\DB\Types; use OCP\Migration\IOutput; use OCP\Migration\SimpleMigrationStep; class Version30000Date20240815080800 extends SimpleMigrationStep { public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { /** @var ISchemaWrapper $schema */ $schema = $schemaClosure(); $table = $schema->getTable('webauthn'); $table->addColumn('user_verification', Types::BOOLEAN, ['notnull' => false, 'default' => false]); return $schema; } }