Files
2026-08-03 08:13:15 +00:00

24 lines
503 B
Go

// Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package v1_10
import (
"context"
"gitea.dev/modelmigration/base"
)
func AddCrossReferenceColumns(_ context.Context, x base.EngineMigration) error {
// Comment see models/comment.go
type Comment struct {
RefRepoID int64 `xorm:"index"`
RefIssueID int64 `xorm:"index"`
RefCommentID int64 `xorm:"index"`
RefAction int64 `xorm:"SMALLINT"`
RefIsPull bool
}
return x.Sync(new(Comment))
}