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

package v1_10 //nolint

import "xorm.io/xorm"

func AddOriginalAuthorOnMigratedReleases(x *xorm.Engine) error {
	type Release struct {
		ID               int64
		OriginalAuthor   string
		OriginalAuthorID int64 `xorm:"index"`
	}

	return x.Sync(new(Release))
}