File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ func reformatAndRemoveIncorrectTopics(x *xorm.Engine) (err error) {
25
25
26
26
type Topic struct {
27
27
ID int64
28
- Name string `xorm:"UNIQUE"`
28
+ Name string `xorm:"UNIQUE VARCHAR(25) "`
29
29
RepoCount int
30
30
CreatedUnix int64 `xorm:"INDEX created"`
31
31
UpdatedUnix int64 `xorm:"INDEX updated"`
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ var topicPattern = regexp.MustCompile(`^[a-z0-9][a-z0-9-]*$`)
26
26
// Topic represents a topic of repositories
27
27
type Topic struct {
28
28
ID int64
29
- Name string `xorm:"UNIQUE"`
29
+ Name string `xorm:"UNIQUE VARCHAR(25) "`
30
30
RepoCount int
31
31
CreatedUnix util.TimeStamp `xorm:"INDEX created"`
32
32
UpdatedUnix util.TimeStamp `xorm:"INDEX updated"`
You can’t perform that action at this time.
0 commit comments