mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-16 12:10:36 +03:00
Remove invalid migration
This commit is contained in:
parent
95cc211659
commit
21ed7348c6
@ -1,25 +0,0 @@
|
||||
package migration
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/deluan/navidrome/conf"
|
||||
"github.com/pressly/goose"
|
||||
)
|
||||
|
||||
func init() {
|
||||
goose.AddMigration(Up20201025222059, Down20201025222059)
|
||||
}
|
||||
|
||||
func Up20201025222059(tx *sql.Tx) error {
|
||||
cacheFolder := filepath.Join(conf.Server.DataFolder, "cache")
|
||||
notice(tx, "Purging all cache entries, as the format of the cache changed.")
|
||||
return os.RemoveAll(cacheFolder)
|
||||
}
|
||||
|
||||
func Down20201025222059(tx *sql.Tx) error {
|
||||
// This code is executed when the migration is rolled back.
|
||||
return nil
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user