-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(database): Fix public_key_credential_id length #36769
Conversation
class Version25000Date20230217195657 extends SimpleMigrationStep { | ||
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { | ||
/** @var ISchemaWrapper $schema */ | ||
$schema = $schemaClosure(); |
Check failure
Code scanning / Psalm
UndefinedDocblockClass Error
/** @var ISchemaWrapper $schema */ | ||
$schema = $schemaClosure(); | ||
|
||
$registrationsTable = $schema->getTable('webauthn'); |
Check failure
Code scanning / Psalm
UndefinedDocblockClass Error
->getColumn('public_key_credential_id') | ||
->setLength(512); | ||
|
||
return $schema; |
Check failure
Code scanning / Psalm
InvalidReturnStatement Error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Please also adjust the original migration that created the column so that new instances have the correct length by default. This should be quicker than creating the wrong width and changing the length right away.
Solved by #47240 🚀 |
Summary
Increases length of column for security key so that it fits. This is essentially an identical migration step to nextcloud/twofactor_webauthn#323.
Checklist