mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-07 19:03:18 +03:00
Force full rescan when adding multi-genres
This commit is contained in:
parent
3a356499ae
commit
e2233779f1
@ -11,6 +11,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func upAddGenreTables(tx *sql.Tx) error {
|
func upAddGenreTables(tx *sql.Tx) error {
|
||||||
|
notice(tx, "A full rescan will be performed to import multiple genres!")
|
||||||
_, err := tx.Exec(`
|
_, err := tx.Exec(`
|
||||||
create table if not exists genre
|
create table if not exists genre
|
||||||
(
|
(
|
||||||
@ -56,7 +57,10 @@ create table if not exists artist_genres
|
|||||||
unique (artist_id, genre_id)
|
unique (artist_id, genre_id)
|
||||||
);
|
);
|
||||||
`)
|
`)
|
||||||
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
}
|
||||||
|
return forceFullRescan(tx)
|
||||||
}
|
}
|
||||||
|
|
||||||
func downAddGenreTables(tx *sql.Tx) error {
|
func downAddGenreTables(tx *sql.Tx) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user