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

v174.go 551 B

1234567891011121314151617181920212223
  1. // Copyright 2021 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. "xorm.io/xorm"
  7. )
  8. func addRepoTransfer(x *xorm.Engine) error {
  9. type RepoTransfer struct {
  10. ID int64 `xorm:"pk autoincr"`
  11. DoerID int64
  12. RecipientID int64
  13. RepoID int64
  14. TeamIDs []int64
  15. CreatedUnix int64 `xorm:"INDEX NOT NULL created"`
  16. UpdatedUnix int64 `xorm:"INDEX NOT NULL updated"`
  17. }
  18. return x.Sync(new(RepoTransfer))
  19. }