summaryrefslogtreecommitdiffstats
path: root/models/migrations/v1_22/v291.go
blob: 0bfffe5d0518e67a98e4b4e77b496518b572b26f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2024 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package v1_22 //nolint

import "xorm.io/xorm"

func AddCommentIDIndexofAttachment(x *xorm.Engine) error {
	type Attachment struct {
		CommentID int64 `xorm:"INDEX"`
	}

	return x.Sync(&Attachment{})
}