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.

v172.go 450B

1234567891011121314151617181920
  1. // Copyright 2020 The Gitea Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package migrations
  5. import (
  6. "code.gitea.io/gitea/modules/timeutil"
  7. "xorm.io/xorm"
  8. )
  9. func addSessionTable(x *xorm.Engine) error {
  10. type Session struct {
  11. Key string `xorm:"pk CHAR(16)"`
  12. Data []byte `xorm:"BLOB"`
  13. Expiry timeutil.TimeStamp
  14. }
  15. return x.Sync2(new(Session))
  16. }