Explorar el Código

fix: consume error tokenname length (#355)

zijiren hace 5 meses
padre
commit
9445af955b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      core/model/consumeerr.go

+ 1 - 1
core/model/consumeerr.go

@@ -14,7 +14,7 @@ type ConsumeError struct {
 	CreatedAt  time.Time       `                                                                    json:"created_at"`
 	GroupID    string          `gorm:"size:64;index;index:idx_consume_error_group_reqat,priority:1" json:"group_id"`
 	RequestID  string          `gorm:"type:char(16);index"                                          json:"request_id"`
-	TokenName  EmptyNullString `gorm:"not null"                                                     json:"token_name"`
+	TokenName  EmptyNullString `gorm:"size:32;not null"                                             json:"token_name"`
 	Model      string          `gorm:"size:64"                                                      json:"model"`
 	Content    string          `gorm:"type:text"                                                    json:"content"`
 	ID         int             `gorm:"primaryKey"                                                   json:"id"`