summaryrefslogtreecommitdiffstats
path: root/models/migrations
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2018-12-08 20:27:30 +0800
committerLauris BH <lauris@nix.lv>2018-12-08 14:27:30 +0200
commit4b4453cb9226e1a5229b8bdbb91ecfbdfc64d87d (patch)
tree9bfe2103f80af2cc3937e6f28f9eda6e590df7e3 /models/migrations
parent8b864a328ed0875543ef0a6d6541d8f2913165f1 (diff)
downloadgitea-4b4453cb9226e1a5229b8bdbb91ecfbdfc64d87d.tar.gz
gitea-4b4453cb9226e1a5229b8bdbb91ecfbdfc64d87d.zip
fix topic name length on database (#5493)
Diffstat (limited to 'models/migrations')
-rw-r--r--models/migrations/v68.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/migrations/v68.go b/models/migrations/v68.go
index 68c8d237fd..d9e80ca80e 100644
--- a/models/migrations/v68.go
+++ b/models/migrations/v68.go
@@ -25,7 +25,7 @@ func reformatAndRemoveIncorrectTopics(x *xorm.Engine) (err error) {
type Topic struct {
ID int64
- Name string `xorm:"UNIQUE"`
+ Name string `xorm:"UNIQUE VARCHAR(25)"`
RepoCount int
CreatedUnix int64 `xorm:"INDEX created"`
UpdatedUnix int64 `xorm:"INDEX updated"`