Skip to content

Commit eda3b69

Browse files
committed
fix: mysql fulltext index
1 parent 472e078 commit eda3b69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

models/article.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ type ArticleDetail struct {
1414
CreateAt *time.Time `json:"createAt" gorm:"autoCreateTime;"`
1515
UpdateAt *time.Time `json:"updateAt" gorm:"autoUpdateTime;"`
1616
Author string `json:"author"`
17-
Content string `json:"content" gorm:"type:TEXT;index:ft_content"`
17+
Content string `json:"content" gorm:"type:TEXT;index:ft_content,fulltext"`
1818
}

0 commit comments

Comments
 (0)