Merge pull request '[v10.0/forgejo] fix: xorm needs to be lowercase otherwise it is ignored' (#6406) from bp-v10.0/forgejo-b03ecf5 into v10.0/forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6406
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
This commit is contained in:
Earl Warren 2024-12-29 20:09:11 +00:00
commit c7c22aae8c

View file

@ -52,10 +52,10 @@ type WebAuthnCredential struct {
AAGUID []byte AAGUID []byte
SignCount uint32 `xorm:"BIGINT"` SignCount uint32 `xorm:"BIGINT"`
CloneWarning bool CloneWarning bool
BackupEligible bool `XORM:"NOT NULL DEFAULT false"` BackupEligible bool `xorm:"NOT NULL DEFAULT false"`
BackupState bool `XORM:"NOT NULL DEFAULT false"` BackupState bool `xorm:"NOT NULL DEFAULT false"`
// If legacy is set to true, backup_eligible and backup_state isn't set. // If legacy is set to true, backup_eligible and backup_state isn't set.
Legacy bool `XORM:"NOT NULL DEFAULT true"` Legacy bool `xorm:"NOT NULL DEFAULT true"`
CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"` CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"`
UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"` UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"`
} }