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.

v153.go 450B

123456789101112131415161718192021222324
  1. // Copyright 2020 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_13 //nolint
  4. import (
  5. "xorm.io/xorm"
  6. )
  7. func AddTeamReviewRequestSupport(x *xorm.Engine) error {
  8. type Review struct {
  9. ReviewerTeamID int64 `xorm:"NOT NULL DEFAULT 0"`
  10. }
  11. type Comment struct {
  12. AssigneeTeamID int64 `xorm:"NOT NULL DEFAULT 0"`
  13. }
  14. if err := x.Sync2(new(Review)); err != nil {
  15. return err
  16. }
  17. return x.Sync2(new(Comment))
  18. }