feat(search): use FULLTEXT index (close #2716 pr #2726)

This commit is contained in:
BoYanZh
2022-12-16 16:51:36 +08:00
committed by GitHub
parent 5a6b600ace
commit b3be9ef428
4 changed files with 39 additions and 7 deletions

View File

@ -42,6 +42,7 @@ func InitDB() {
var err error
if flags.Dev {
dB, err = gorm.Open(sqlite.Open("file::memory:?cache=shared"), gormConfig)
conf.Conf.Database.Type = "sqlite3"
} else {
database := conf.Conf.Database
switch database.Type {