Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: force full rescan to enable search by album artist
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
db/migration/20200310171621_enable_search_by_albumartist.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package migration | ||
|
||
import ( | ||
"database/sql" | ||
|
||
"github.com/pressly/goose" | ||
) | ||
|
||
func init() { | ||
goose.AddMigration(Up20200310171621, Down20200310171621) | ||
} | ||
|
||
func Up20200310171621(tx *sql.Tx) error { | ||
notice(tx, "A full rescan will be performed to enable search by Album Artist!") | ||
return forceFullRescan(tx) | ||
} | ||
|
||
func Down20200310171621(tx *sql.Tx) error { | ||
// This code is executed when the migration is rolled back. | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters