🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
"Touch" playlists to force some clients to reload cover art
Deluand3e4a5287d6f
diff --git a/db/migration/20230114121537_touch_playlists.go b/db/migration/20230114121537_touch_playlists.gonew file mode 100644index 000000000..50a9b4da5--- /dev/null+++ b/db/migration/20230114121537_touch_playlists.go@@ -0,0 +1,20 @@+package migrations++import (+ "database/sql"++ "github.com/pressly/goose"+)++func init() {+ goose.AddMigration(upTouchPlaylists, downTouchPlaylists)+}++func upTouchPlaylists(tx *sql.Tx) error {+ _, err := tx.Exec(`update playlist set updated_at = datetime('now');`)+ return err+}++func downTouchPlaylists(tx *sql.Tx) error {+ return nil+}