2021-03-22 18:38:04 +01:00
|
|
|
package migrations
|
2020-04-18 17:08:54 +02:00
|
|
|
|
|
|
|
import (
|
2023-11-27 20:46:44 +01:00
|
|
|
"context"
|
2020-04-18 17:08:54 +02:00
|
|
|
"database/sql"
|
2020-04-26 18:53:36 +02:00
|
|
|
|
2023-04-04 15:57:00 +02:00
|
|
|
"github.com/pressly/goose/v3"
|
2020-04-18 17:08:54 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
2023-11-27 20:46:44 +01:00
|
|
|
goose.AddMigrationContext(Up20200418110522, Down20200418110522)
|
2020-04-18 17:08:54 +02:00
|
|
|
}
|
|
|
|
|
2023-11-27 20:46:44 +01:00
|
|
|
func Up20200418110522(_ context.Context, tx *sql.Tx) error {
|
2020-04-18 17:08:54 +02:00
|
|
|
notice(tx, "A full rescan will be performed to fix search Albums by year")
|
|
|
|
return forceFullRescan(tx)
|
|
|
|
}
|
|
|
|
|
2023-11-27 20:46:44 +01:00
|
|
|
func Down20200418110522(_ context.Context, tx *sql.Tx) error {
|
2020-04-18 17:08:54 +02:00
|
|
|
return nil
|
|
|
|
}
|