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