🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Correctly handle error in migration
jvoisin52b8c5f151d5
diff --git a/db/migration/20200131183653_standardize_item_type.go b/db/migration/20200131183653_standardize_item_type.goindex fb15fe864..db936cb69 100644--- a/db/migration/20200131183653_standardize_item_type.go+++ b/db/migration/20200131183653_standardize_item_type.go@@ -37,7 +37,7 @@ update annotation set item_type = 'media_file' where item_type = 'mediaFile';}func Down20200131183653(tx *sql.Tx) error {- tx.Exec(`+ _, err := tx.Exec(`create table search_dg_tmp(id varchar(255) not null@@ -59,5 +59,5 @@ create index search_tableupdate annotation set item_type = 'mediaFile' where item_type = 'media_file';`)- return nil+ return err}