2023-01-14 18:21:31 +01:00
|
|
|
package migrations
|
|
|
|
|
|
|
|
import (
|
|
|
|
"database/sql"
|
|
|
|
|
2023-04-04 15:57:00 +02:00
|
|
|
"github.com/pressly/goose/v3"
|
2023-01-14 18:21:31 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|