mirror of
https://github.com/navidrome/navidrome.git
synced 2025-05-05 21:01:08 +03:00
add downgrade (#4)
This commit is contained in:
parent
b3ded07500
commit
8a08a2ea6a
@ -20,6 +20,11 @@ alter table media_file
|
||||
}
|
||||
|
||||
func downDuplicate(ctx context.Context, tx *sql.Tx) error {
|
||||
// This code is executed when the migration is rolled back.
|
||||
return nil
|
||||
_, err := tx.Exec(`
|
||||
alter table media_file
|
||||
drop column is_duplicate;
|
||||
|
||||
`)
|
||||
return err
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user