您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920212223
  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. "fmt"
  7. "xorm.io/xorm"
  8. )
  9. func addReviewMigrateInfo(x *xorm.Engine) error {
  10. type Review struct {
  11. OriginalAuthor string
  12. OriginalAuthorID int64
  13. }
  14. if err := x.Sync2(new(Review)); err != nil {
  15. return fmt.Errorf("Sync2: %v", err)
  16. }
  17. return nil
  18. }