mirror of
https://github.com/navidrome/navidrome.git
synced 2025-05-09 06:41:06 +03:00
* add internet radio support * Add dynamic sidebar icon to Radios * Fix typos * Make URL suffix consistent * Fix typo * address feedback * Don't need to preload when playing Internet Radios * Reorder migration, or else it won't be applied * Make Radio list view responsive Also added filter by name, removed RadioActions and RadioContextMenu, and added a default radio icon, in case of favicon is not available. * Simplify StreamField usage * fix button, hide progress on mobile * use js styles over index.css Co-authored-by: Deluan <deluan@navidrome.org>
31 lines
568 B
Go
31 lines
568 B
Go
package migrations
|
|
|
|
import (
|
|
"database/sql"
|
|
|
|
"github.com/pressly/goose"
|
|
)
|
|
|
|
func init() {
|
|
goose.AddMigration(upCreateInternetRadio, downCreateInternetRadio)
|
|
}
|
|
|
|
func upCreateInternetRadio(tx *sql.Tx) error {
|
|
_, err := tx.Exec(`
|
|
create table if not exists radio
|
|
(
|
|
id varchar(255) not null primary key,
|
|
name varchar not null unique,
|
|
stream_url varchar not null,
|
|
home_page_url varchar default '' not null,
|
|
created_at datetime,
|
|
updated_at datetime
|
|
);
|
|
`)
|
|
return err
|
|
}
|
|
|
|
func downCreateInternetRadio(tx *sql.Tx) error {
|
|
return nil
|
|
}
|