1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-13 04:58:19 +00:00

fix topic name length on database (#5493) (#5495)

This commit is contained in:
Lunny Xiao
2018-12-09 08:57:49 +08:00
committed by Lauris BH
parent 8e4a0a978a
commit 8237fd4a2d
2 changed files with 2 additions and 2 deletions

View File

@@ -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"`