Force full rescan when adding multi-genres
This commit is contained in:
parent
3a356499ae
commit
e2233779f1
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||||
);
|
);
|
||||||
`)
|
`)
|
||||||
return err
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return forceFullRescan(tx)
|
||||||
}
|
}
|
||||||
|
|
||||||
func downAddGenreTables(tx *sql.Tx) error {
|
func downAddGenreTables(tx *sql.Tx) error {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue