We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1a6ab2 commit 62ddc5cCopy full SHA for 62ddc5c
models/migrations/v1_23/v310.go
@@ -8,13 +8,18 @@ import (
8
"xorm.io/xorm"
9
)
10
11
+type WebAuthnCredential struct {
12
+ Flags protocol.AuthenticatorFlags
13
+}
14
+
15
+func (cred WebAuthnCredential) TableName() string {
16
+ return "webauthn_credential"
17
18
19
func AddFlagsOnWebAuthnCredential(x *xorm.Engine) error {
- type WebAuthnCredential struct {
- Flags protocol.AuthenticatorFlags
- }
20
if err := x.Sync(new(WebAuthnCredential)); err != nil {
21
return err
22
}
- _, err := x.Exec("UPDATE webauthn_credential SET flags = 29")
23
+ _, err := x.Exec("UPDATE webauthn_credential SET flags = 29 WHERE id > 0")
24
25
0 commit comments