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.

19 lines
449 B

  1. package migrations
  2. import (
  3. "code.gitea.io/gitea/modules/util"
  4. "github.com/go-xorm/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 util.TimeStamp `xorm:"INDEX created"`
  14. UpdatedUnix util.TimeStamp `xorm:"INDEX updated"`
  15. }
  16. return x.Sync2(&U2FRegistration{})
  17. }