Skip to content

Commit

Permalink
Upgrade goose
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Apr 4, 2023
1 parent 7a0df44 commit 7847f19
Show file tree
Hide file tree
Showing 70 changed files with 91 additions and 109 deletions.
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -25,7 +25,7 @@ server: check_go_env ##@Development Start the backend in development mode
.PHONY: server

watch: ##@Development Start Go tests in watch mode (re-run when code changes)
go run github.com/onsi/ginkgo/v2/ginkgo watch -notify ./...
go run github.com/onsi/ginkgo/v2/ginkgo@latest watch -notify ./...
.PHONY: watch

test: ##@Development Run Go tests
Expand All @@ -49,12 +49,12 @@ wire: check_go_env ##@Development Update Dependency Injection
.PHONY: wire

snapshots: ##@Development Update (GoLang) Snapshot tests
UPDATE_SNAPSHOTS=true go run github.com/onsi/ginkgo/v2/ginkgo ./server/subsonic/...
UPDATE_SNAPSHOTS=true go run github.com/onsi/ginkgo/v2/ginkgo@latest ./server/subsonic/...
.PHONY: snapshots

migration: ##@Development Create an empty migration file
@if [ -z "${name}" ]; then echo "Usage: make migration name=name_of_migration_file"; exit 1; fi
go run github.com/pressly/goose/cmd/goose -dir db/migration create ${name}
go run github.com/pressly/goose/v3/cmd/goose@latest -dir db/migration create ${name}
.PHONY: migration

setup-dev: setup
Expand Down
2 changes: 1 addition & 1 deletion db/db.go
Expand Up @@ -9,7 +9,7 @@ import (
_ "github.com/navidrome/navidrome/db/migration"
"github.com/navidrome/navidrome/log"
"github.com/navidrome/navidrome/utils/singleton"
"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20200130083147_create_schema.go
Expand Up @@ -4,7 +4,7 @@ import (
"database/sql"

"github.com/navidrome/navidrome/log"
"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20200131183653_standardize_item_type.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20200208222418_add_defaults_to_annotations.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20200220143731_change_duration_to_float.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20200325185135_add_album_artist_id.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20200326090707_fix_album_artists_importing.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20200327193744_add_year_range_to_album.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20200404214704_add_indexes.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20200418110522_reindex_to_fix_album_years.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20200423204116_add_sort_fields.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20200508093059_add_artist_song_count.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20200512104202_add_disc_subtitle.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20200516140647_add_playlist_tracks_table.go
Expand Up @@ -5,7 +5,7 @@ import (
"strings"

"github.com/navidrome/navidrome/log"
"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20200608153717_referential_integrity.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20200706231659_add_default_transcodings.go
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/google/uuid"
"github.com/navidrome/navidrome/consts"
"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20200710211442_add_playlist_path.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20200731095603_create_play_queues_table.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20200801101355_create_bookmark_table.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20201003111749_add_starred_at_index.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20201010162350_add_album_size.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20201012210022_add_artist_playlist_size.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20201021085410_add_mbids.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20201021093209_add_media_file_indexes.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20201021135455_add_media_file_artist_index.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20201030162009_add_artist_info_table.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20201110205344_add_comments_and_lyrics.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20201128100726_add_real-path_option.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20201213124814_add_all_artist_ids_to_album.go
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/navidrome/navidrome/log"
"github.com/navidrome/navidrome/utils"
"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20210322132848_add_timestamp_indexes.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20210418232815_fix_album_comments.go
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/navidrome/navidrome/consts"
"github.com/navidrome/navidrome/log"
"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20210430212322_add_bpm_metadata.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20210530121921_create_shares_table.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion db/migration/20210601231734_update_share_fieldnames.go
Expand Up @@ -3,7 +3,7 @@ package migrations
import (
"database/sql"

"github.com/pressly/goose"
"github.com/pressly/goose/v3"
)

func init() {
Expand Down

0 comments on commit 7847f19

Please sign in to comment.