Force full rescan when adding multi-genres

This commit is contained in:
Deluan 2021-07-16 22:55:22 -04:00 committed by Deluan Quintão
parent 3a356499ae
commit e2233779f1
1 changed files with 5 additions and 1 deletions

View File

@ -11,6 +11,7 @@ func init() {
}
func upAddGenreTables(tx *sql.Tx) error {
notice(tx, "A full rescan will be performed to import multiple genres!")
_, err := tx.Exec(`
create table if not exists genre
(
@ -56,7 +57,10 @@ create table if not exists artist_genres
unique (artist_id, genre_id)
);
`)
return err
if err != nil {
return err
}
return forceFullRescan(tx)
}
func downAddGenreTables(tx *sql.Tx) error {