From 3cf8b8e97d22f2fdb80ef4d1883ddccf435f9bf4 Mon Sep 17 00:00:00 2001 From: Deluan Date: Wed, 21 Oct 2020 09:02:51 -0400 Subject: [PATCH] Fix migration that adds MBIDs --- ...130401_add_more_tags.go => 20201021085410_add_mbids.go} | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename db/migration/{20200827130401_add_more_tags.go => 20201021085410_add_mbids.go} (83%) diff --git a/db/migration/20200827130401_add_more_tags.go b/db/migration/20201021085410_add_mbids.go similarity index 83% rename from db/migration/20200827130401_add_more_tags.go rename to db/migration/20201021085410_add_mbids.go index 80bdf44f2..9ef222f18 100644 --- a/db/migration/20200827130401_add_more_tags.go +++ b/db/migration/20201021085410_add_mbids.go @@ -7,10 +7,10 @@ import ( ) func init() { - goose.AddMigration(upAddMoreTags, downAddMoreTags) + goose.AddMigration(Up20201021085410, Down20201021085410) } -func upAddMoreTags(tx *sql.Tx) error { +func Up20201021085410(tx *sql.Tx) error { _, err := tx.Exec(` alter table media_file add mbz_track_id varchar(255); @@ -52,6 +52,7 @@ alter table artist return forceFullRescan(tx) } -func downAddMoreTags(tx *sql.Tx) error { +func Down20201021085410(tx *sql.Tx) error { + // This code is executed when the migration is rolled back. return nil }