Remove index from label name (use slug instead)

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2019-07-15 23:11:29 +02:00
parent 7afb7a87db
commit 9b73c91ed5

View file

@ -11,7 +11,7 @@ import (
type Label struct {
Model
LabelSlug string `gorm:"type:varchar(128);index;"`
LabelName string `gorm:"type:varchar(128);index;"`
LabelName string `gorm:"type:varchar(128);"`
LabelPriority int
LabelFavorite bool
LabelDescription string `gorm:"type:text;"`