Add option for player to report real paths in Subsonic API. Closes #625

This commit is contained in:
Deluan
2020-11-28 10:24:55 -05:00
parent 7becc18da9
commit 975579ab26
6 changed files with 46 additions and 13 deletions
@@ -0,0 +1,23 @@
package migration
import (
"database/sql"
"github.com/pressly/goose"
)
func init() {
goose.AddMigration(Up20201128100726, Down20201128100726)
}
func Up20201128100726(tx *sql.Tx) error {
_, err := tx.Exec(`
alter table player
add report_real_path bool default FALSE not null;
`)
return err
}
func Down20201128100726(tx *sql.Tx) error {
return nil
}