You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. }