diff --git a/db/migration/20200418110522_reindex_to_fix_album_years.go b/db/migration/20200418110522_reindex_to_fix_album_years.go new file mode 100644 index 000000000..328de59fe --- /dev/null +++ b/db/migration/20200418110522_reindex_to_fix_album_years.go @@ -0,0 +1,20 @@ +package migration + +import ( + "database/sql" + "github.com/pressly/goose" +) + +func init() { + goose.AddMigration(Up20200418110522, Down20200418110522) +} + +func Up20200418110522(tx *sql.Tx) error { + notice(tx, "A full rescan will be performed to fix search Albums by year") + return forceFullRescan(tx) +} + +func Down20200418110522(tx *sql.Tx) error { + // This code is executed when the migration is rolled back. + return nil +}