Upgrade to Goose 3.15.1

This commit is contained in:
Deluan
2023-11-27 14:46:44 -05:00
parent 1b4483d32b
commit abde399e7b
69 changed files with 290 additions and 225 deletions
@@ -1,6 +1,7 @@
package migrations
import (
"context"
"database/sql"
"strings"
@@ -9,10 +10,10 @@ import (
)
func init() {
goose.AddMigration(Up20200516140647, Down20200516140647)
goose.AddMigrationContext(Up20200516140647, Down20200516140647)
}
func Up20200516140647(tx *sql.Tx) error {
func Up20200516140647(_ context.Context, tx *sql.Tx) error {
_, err := tx.Exec(`
create table if not exists playlist_tracks
(
@@ -95,6 +96,6 @@ func Up20200516140647UpdatePlaylistTracks(tx *sql.Tx, id string, tracks string)
return nil
}
func Down20200516140647(tx *sql.Tx) error {
func Down20200516140647(_ context.Context, tx *sql.Tx) error {
return nil
}