12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- declare(strict_types=1);
- namespace OC\Core\Migrations;
- use Closure;
- use OCP\DB\ISchemaWrapper;
- use OCP\Migration\IOutput;
- use OCP\Migration\SimpleMigrationStep;
- class Version30000Date20240814180800 extends SimpleMigrationStep {
- public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) {
-
- $schema = $schemaClosure();
- $table = $schema->getTable('webauthn');
- $column = $table->getColumn('public_key_credential_id');
-
- if ($column->getLength() < 512) {
- $column->setLength(512);
- }
- return $schema;
- }
- }
|