From 21ed7348c6024bd21230f6ad762bca51cb1dc1b8 Mon Sep 17 00:00:00 2001 From: Deluan Date: Mon, 26 Oct 2020 10:57:21 -0400 Subject: [PATCH] Remove invalid migration --- db/migration/20201025222059_purge_cache.go | 25 ---------------------- 1 file changed, 25 deletions(-) delete mode 100644 db/migration/20201025222059_purge_cache.go diff --git a/db/migration/20201025222059_purge_cache.go b/db/migration/20201025222059_purge_cache.go deleted file mode 100644 index c8c74c87c..000000000 --- a/db/migration/20201025222059_purge_cache.go +++ /dev/null @@ -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 -}