aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-08-04 19:38:31 +0100
committerGitHub <noreply@github.com>2020-08-04 14:38:31 -0400
commit5e5c893555411bcbeedc4a3f0d853731b63f05c4 (patch)
treefb2840ea144df1afbe0fa3ecb95c9b93a92e6b3f /models
parent502e38c33c08cc6e9e7df86a934eb8b47ae26c49 (diff)
downloadgitea-5e5c893555411bcbeedc4a3f0d853731b63f05c4.tar.gz
gitea-5e5c893555411bcbeedc4a3f0d853731b63f05c4.zip
Need RepoID in the languagestat field (#12427)
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'models')
-rw-r--r--models/migrations/v145.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/migrations/v145.go b/models/migrations/v145.go
index 49c2bc4dc4..436c95fab9 100644
--- a/models/migrations/v145.go
+++ b/models/migrations/v145.go
@@ -14,6 +14,7 @@ import (
func increaseLanguageField(x *xorm.Engine) error {
type LanguageStat struct {
+ RepoID int64 `xorm:"UNIQUE(s) INDEX NOT NULL"`
Language string `xorm:"VARCHAR(50) UNIQUE(s) INDEX NOT NULL"`
}