1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-16 06:26:13 +00:00
forgejo/models/migrations/v1_10/v98.go

17 lines
352 B
Go
Raw Normal View History

// Copyright 2019 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package v1_10 //nolint
2019-10-17 09:26:49 +00:00
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))
}