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

package v1_12 //nolint

import (
	"xorm.io/xorm"
)

func AddReactionOriginals(x *xorm.Engine) error {
	type Reaction struct {
		OriginalAuthorID int64 `xorm:"INDEX NOT NULL DEFAULT(0)"`
		OriginalAuthor   string
	}

	return x.Sync(new(Reaction))
}