Skip to content

Commit e71fd7d

Browse files
earl-warrenforgejo-backport-action
authored andcommitted
fix: xorm needs to be lowercase otherwise it is ignored
Fixes: https://codeberg.org/forgejo/forgejo/issues/6389 (cherry picked from commit b03ecf5)
1 parent 424f853 commit e71fd7d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/auth/webauthn.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ type WebAuthnCredential struct {
5252
AAGUID []byte
5353
SignCount uint32 `xorm:"BIGINT"`
5454
CloneWarning bool
55-
BackupEligible bool `XORM:"NOT NULL DEFAULT false"`
56-
BackupState bool `XORM:"NOT NULL DEFAULT false"`
55+
BackupEligible bool `xorm:"NOT NULL DEFAULT false"`
56+
BackupState bool `xorm:"NOT NULL DEFAULT false"`
5757
// If legacy is set to true, backup_eligible and backup_state isn't set.
58-
Legacy bool `XORM:"NOT NULL DEFAULT true"`
58+
Legacy bool `xorm:"NOT NULL DEFAULT true"`
5959
CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"`
6060
UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"`
6161
}

0 commit comments

Comments
 (0)