Skip to content

Commit

Permalink
Add index on publicKeyCredentialId in Doctrine mapping
Browse files Browse the repository at this point in the history
This commit introduces a database index on the `publicKeyCredentialId` field in the `PublicKeyCredentialSource` mapping. The added index aims to optimize query performance for operations involving this column.
  • Loading branch information
Spomky committed Jan 4, 2025
1 parent 3cc89ba commit eb36430
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping https://raw.github.com/doctrine/doctrine2/master/doctrine-mapping.xsd"
>
<mapped-superclass name="Webauthn\PublicKeyCredentialSource">
<indexes>
<index name="pkcid_idx" columns="publicKeyCredentialId"/>
</indexes>
<field name="publicKeyCredentialId" type="base64"/>
<field name="type"/>
<field name="transports" type="json"/>
Expand Down

0 comments on commit eb36430

Please sign in to comment.