mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 13:07:36 +03:00
refactor: drop search table, integrated full_text into main tables
This commit is contained in:
parent
8cdd4e317d
commit
32fbf2e9eb
10 changed files with 62 additions and 67 deletions
|
@ -37,11 +37,9 @@ func (r mediaFileRepository) Exists(id string) (bool, error) {
|
|||
}
|
||||
|
||||
func (r mediaFileRepository) Put(m *model.MediaFile) error {
|
||||
m.FullText = r.getFullText(m.Title, m.Album, m.Artist, m.AlbumArtist)
|
||||
_, err := r.put(m.ID, m)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return r.index(m.ID, m.Title, m.Album, m.Artist, m.AlbumArtist)
|
||||
return err
|
||||
}
|
||||
|
||||
func (r mediaFileRepository) selectMediaFile(options ...model.QueryOptions) SelectBuilder {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue