mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-17 23:51:48 +03:00
Correctly handle error in migration
This commit is contained in:
parent
c4eab5db86
commit
52b8c5f151
@ -37,7 +37,7 @@ update annotation set item_type = 'media_file' where item_type = 'mediaFile';
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Down20200131183653(tx *sql.Tx) error {
|
func Down20200131183653(tx *sql.Tx) error {
|
||||||
tx.Exec(`
|
_, err := tx.Exec(`
|
||||||
create table search_dg_tmp
|
create table search_dg_tmp
|
||||||
(
|
(
|
||||||
id varchar(255) not null
|
id varchar(255) not null
|
||||||
@ -59,5 +59,5 @@ create index search_table
|
|||||||
|
|
||||||
update annotation set item_type = 'mediaFile' where item_type = 'media_file';
|
update annotation set item_type = 'mediaFile' where item_type = 'media_file';
|
||||||
`)
|
`)
|
||||||
return nil
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user