mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-18 21:07:44 +03:00
Force reindex to fix album by year searches
This commit is contained in:
parent
dae938de6f
commit
689449df9e
20
db/migration/20200418110522_reindex_to_fix_album_years.go
Normal file
20
db/migration/20200418110522_reindex_to_fix_album_years.go
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
package migration
|
||||||
|
|
||||||
|
import (
|
||||||
|
"database/sql"
|
||||||
|
"github.com/pressly/goose"
|
||||||
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
goose.AddMigration(Up20200418110522, Down20200418110522)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Up20200418110522(tx *sql.Tx) error {
|
||||||
|
notice(tx, "A full rescan will be performed to fix search Albums by year")
|
||||||
|
return forceFullRescan(tx)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Down20200418110522(tx *sql.Tx) error {
|
||||||
|
// This code is executed when the migration is rolled back.
|
||||||
|
return nil
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user