Skip to content

🎧 Your Personal Streaming Service

Force full scan to enable search by tracks' artists in albums

Deluanb661d5247700
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
+}