diff --git a/src/Entity/PublicKeyCredentialSource.php b/src/Entity/PublicKeyCredentialSource.php index 8ff4f7b7..0a3e1dbd 100644 --- a/src/Entity/PublicKeyCredentialSource.php +++ b/src/Entity/PublicKeyCredentialSource.php @@ -38,12 +38,14 @@ class PublicKeyCredentialSource extends BasePublicKeyCredentialSource #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type:"integer")] - private string $id; + private int $id; /** - * Override the $uvInitialized field which we do not use, but needs + * Override the $backupEligible, $backupStatus and $uvInitialized fields which we do not use, but needs * to be initialized. Needed to prevent read before written errors. */ + public ?bool $backupEligible = null; + public ?bool $backupStatus = null; public ?bool $uvInitialized = false; public function __construct( diff --git a/src/Migrations/Version20250106150814.php b/src/Migrations/Version20250106150814.php new file mode 100644 index 00000000..df8971ab --- /dev/null +++ b/src/Migrations/Version20250106150814.php @@ -0,0 +1,47 @@ +addSql('ALTER TABLE public_key_credential_sources ADD backup_eligible TINYINT(1) DEFAULT NULL, ADD backup_status TINYINT(1) DEFAULT NULL, ADD uv_initialized TINYINT(1) DEFAULT NULL'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('ALTER TABLE public_key_credential_sources DROP backup_eligible, DROP backup_status, DROP uv_initialized'); + } +}