summaryrefslogtreecommitdiffstats
path: root/models/migrations/v1_21/v279.go
blob: 19647225c9a95ac4f4f2d453547774dbc9143f0b (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 AddIndexToActionUserID(x *xorm.Engine) error {
	type Action struct {
		UserID int64 `xorm:"INDEX"`
	}

	return x.Sync(new(Action))
}