"Touch" playlists to force some clients to reload cover art

This commit is contained in:
Deluan 2023-01-14 12:21:31 -05:00
parent 12dd219e16
commit d3e4a5287d
1 changed files with 20 additions and 0 deletions

View File

@ -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
}