summaryrefslogtreecommitdiffstats
path: root/models/repo_language_stats.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-08-04 14:54:29 +0100
committerGitHub <noreply@github.com>2020-08-04 14:54:29 +0100
commit502e38c33c08cc6e9e7df86a934eb8b47ae26c49 (patch)
treee0cd7a6db89d9a138cd9d2e10241e405479b4932 /models/repo_language_stats.go
parent3585bb73efcd74454cf123de85fa6e67d34001ec (diff)
downloadgitea-502e38c33c08cc6e9e7df86a934eb8b47ae26c49.tar.gz
gitea-502e38c33c08cc6e9e7df86a934eb8b47ae26c49.zip
Increase size of the language column in language_stat (#12396)
In #12379 it was discovered that enry v2 has a maximum language length of 34 characters which is larger than the 30 previously provided. This PR updates the language column to 50. Fix #12379
Diffstat (limited to 'models/repo_language_stats.go')
-rw-r--r--models/repo_language_stats.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo_language_stats.go b/models/repo_language_stats.go
index a15063e25a..e60e441c7a 100644
--- a/models/repo_language_stats.go
+++ b/models/repo_language_stats.go
@@ -19,7 +19,7 @@ type LanguageStat struct {
RepoID int64 `xorm:"UNIQUE(s) INDEX NOT NULL"`
CommitID string
IsPrimary bool
- Language string `xorm:"VARCHAR(30) UNIQUE(s) INDEX NOT NULL"`
+ Language string `xorm:"VARCHAR(50) UNIQUE(s) INDEX NOT NULL"`
Percentage float32 `xorm:"-"`
Size int64 `xorm:"NOT NULL DEFAULT 0"`
Color string `xorm:"-"`