🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Fix migration that adds MBIDs
Deluan3cf8b8e97d22
diff --git a/db/migration/20200827130401_add_more_tags.go b/db/migration/20201021085410_add_mbids.gosimilarity index 83%rename from db/migration/20200827130401_add_more_tags.gorename to db/migration/20201021085410_add_mbids.goindex 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_fileadd mbz_track_id varchar(255);@@ -52,6 +52,7 @@ alter table artistreturn 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}