1
0

Version30000Date20240815080800.php 779 B

123456789101112131415161718192021222324252627
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2024 S1m <git@sgougeon.fr>
  5. * SPDX-FileCopyrightText: 2024 Richard Steinmetz <richard@steinmetz.cloud>
  6. * SPDX-License-Identifier: AGPL-3.0-or-later
  7. */
  8. namespace OC\Core\Migrations;
  9. use Closure;
  10. use OCP\DB\ISchemaWrapper;
  11. use OCP\DB\Types;
  12. use OCP\Migration\IOutput;
  13. use OCP\Migration\SimpleMigrationStep;
  14. class Version30000Date20240815080800 extends SimpleMigrationStep {
  15. public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
  16. /** @var ISchemaWrapper $schema */
  17. $schema = $schemaClosure();
  18. $table = $schema->getTable('webauthn');
  19. $table->addColumn('user_verification', Types::BOOLEAN, ['notnull' => false, 'default' => false]);
  20. return $schema;
  21. }
  22. }