summaryrefslogtreecommitdiffstats
path: root/models/migrations/v1_21/v277.go
blob: 12529160b754b8df895f32d254b10ec697a5d5d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2023 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package v1_21 //nolint

import (
	"xorm.io/xorm"
)

func AddIndexToIssueUserIssueID(x *xorm.Engine) error {
	type IssueUser struct {
		IssueID int64 `xorm:"INDEX"`
	}

	return x.Sync(new(IssueUser))
}