Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

v65.go 451B

1234567891011121314151617181920
  1. package migrations
  2. import (
  3. "code.gitea.io/gitea/modules/timeutil"
  4. "xorm.io/xorm"
  5. )
  6. func addU2FReg(x *xorm.Engine) error {
  7. type U2FRegistration struct {
  8. ID int64 `xorm:"pk autoincr"`
  9. Name string
  10. UserID int64 `xorm:"INDEX"`
  11. Raw []byte
  12. Counter uint32
  13. CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"`
  14. UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"`
  15. }
  16. return x.Sync2(&U2FRegistration{})
  17. }