From b661d524770008182f1ca34f01ea06ef65750aaa Mon Sep 17 00:00:00 2001 From: Deluan Date: Thu, 9 Apr 2020 00:24:26 -0400 Subject: [PATCH] Force full scan to enable search by tracks' artists in albums --- ...9002249_enable_search_by_tracks_artists.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 db/migration/20200409002249_enable_search_by_tracks_artists.go diff --git a/db/migration/20200409002249_enable_search_by_tracks_artists.go b/db/migration/20200409002249_enable_search_by_tracks_artists.go new file mode 100644 index 000000000..dacb1d012 --- /dev/null +++ b/db/migration/20200409002249_enable_search_by_tracks_artists.go @@ -0,0 +1,19 @@ +package migration + +import ( + "database/sql" + "github.com/pressly/goose" +) + +func init() { + goose.AddMigration(Up20200409002249, Down20200409002249) +} + +func Up20200409002249(tx *sql.Tx) error { + notice(tx, "A full rescan will be performed to enable search by individual Artist in an Album!") + return forceFullRescan(tx) +} + +func Down20200409002249(tx *sql.Tx) error { + return nil +}