summaryrefslogtreecommitdiffstats
path: root/models/release.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-10-05 19:09:27 +0800
committerLauris BH <lauris@nix.lv>2019-10-05 14:09:27 +0300
commitbd41a04a5613a2e017b458351bea0f02b767b893 (patch)
treed13e42c1f9664e09ae432250caaeca78df70ee72 /models/release.go
parentfb7c23f911bebcb72f170f3d8bc8343546805f3b (diff)
downloadgitea-bd41a04a5613a2e017b458351bea0f02b767b893.tar.gz
gitea-bd41a04a5613a2e017b458351bea0f02b767b893.zip
Add extra user information when migrating release (#8331)
* add extra user information when migrating release * add migrations * fix tests
Diffstat (limited to 'models/release.go')
-rw-r--r--models/release.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/models/release.go b/models/release.go
index 3729a6f690..243cc2fa3c 100644
--- a/models/release.go
+++ b/models/release.go
@@ -26,6 +26,8 @@ type Release struct {
PublisherID int64 `xorm:"INDEX"`
Publisher *User `xorm:"-"`
TagName string `xorm:"INDEX UNIQUE(n)"`
+ OriginalAuthor string
+ OriginalAuthorID int64 `xorm:"index"`
LowerTagName string
Target string
Title string