gitea源码

1234567891011121314151617181920
  1. // Copyright 2019 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_10
  4. import "xorm.io/xorm"
  5. func AddCrossReferenceColumns(x *xorm.Engine) error {
  6. // Comment see models/comment.go
  7. type Comment struct {
  8. RefRepoID int64 `xorm:"index"`
  9. RefIssueID int64 `xorm:"index"`
  10. RefCommentID int64 `xorm:"index"`
  11. RefAction int64 `xorm:"SMALLINT"`
  12. RefIsPull bool
  13. }
  14. return x.Sync(new(Comment))
  15. }