Skip to content

Commit

Permalink
bump to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
mfridman committed Mar 30, 2023
1 parent 7e5fcc2 commit eed4771
Show file tree
Hide file tree
Showing 34 changed files with 61 additions and 61 deletions.
8 changes: 4 additions & 4 deletions cmd/goose/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import (
"text/tabwriter"
"text/template"

"github.com/pressly/goose/v3"
"github.com/pressly/goose/v3/internal/cfg"
"github.com/pressly/goose/v3/internal/migrationstats"
"github.com/pressly/goose/v3/internal/migrationstats/migrationstatsos"
"github.com/pressly/goose/v4"
"github.com/pressly/goose/v4/internal/cfg"
"github.com/pressly/goose/v4/internal/migrationstats"
"github.com/pressly/goose/v4/internal/migrationstats/migrationstatsos"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion create.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ var goSQLMigrationTemplate = template.Must(template.New("goose.go-migration").Pa
import (
"database/sql"
"github.com/pressly/goose/v3"
"github.com/pressly/goose/v4"
)
func init() {
Expand Down
2 changes: 1 addition & 1 deletion dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package goose
import (
"fmt"

"github.com/pressly/goose/v3/internal/dialect"
"github.com/pressly/goose/v4/internal/dialect"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion examples/go-migrations/00002_rename_root.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"database/sql"

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

func init() {
Expand Down
2 changes: 1 addition & 1 deletion examples/go-migrations/00003_add_user_no_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"database/sql"
"errors"

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

func init() {
Expand Down
2 changes: 1 addition & 1 deletion examples/go-migrations/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"log"
"os"

"github.com/pressly/goose/v3"
"github.com/pressly/goose/v4"
_ "modernc.org/sqlite"
)

Expand Down
2 changes: 1 addition & 1 deletion goose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"
"testing"

"github.com/pressly/goose/v3/internal/check"
"github.com/pressly/goose/v4/internal/check"
_ "modernc.org/sqlite"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/dialect/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"fmt"
"time"

"github.com/pressly/goose/v3/internal/dialect/dialectquery"
"github.com/pressly/goose/v4/internal/dialect/dialectquery"
)

// Store is the interface that wraps the basic methods for a database dialect.
Expand Down
2 changes: 1 addition & 1 deletion internal/migrationstats/migration_sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"io"

"github.com/pressly/goose/v3/internal/sqlparser"
"github.com/pressly/goose/v4/internal/sqlparser"
)

type sqlMigration struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/migrationstats/migrationstats.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"path/filepath"

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

// FileWalker walks all files for GatherStats.
Expand Down
20 changes: 10 additions & 10 deletions internal/migrationstats/migrationstats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strings"
"testing"

"github.com/pressly/goose/v3/internal/check"
"github.com/pressly/goose/v4/internal/check"
)

func TestParsingGoMigrations(t *testing.T) {
Expand Down Expand Up @@ -53,7 +53,7 @@ var (
import (
"database/sql"
"github.com/pressly/goose/v3"
"github.com/pressly/goose/v4"
)
func init() {
Expand All @@ -69,7 +69,7 @@ func down001(tx *sql.Tx) error { return nil }`
import (
"database/sql"
"github.com/pressly/goose/v3"
"github.com/pressly/goose/v4"
)
func init() {
Expand All @@ -83,7 +83,7 @@ func down002(tx *sql.Tx) error { return nil }`
import (
"database/sql"
"github.com/pressly/goose/v3"
"github.com/pressly/goose/v4"
)
func init() {
Expand All @@ -97,7 +97,7 @@ func up003(tx *sql.Tx) error { return nil }`
import (
"database/sql"
"github.com/pressly/goose/v3"
"github.com/pressly/goose/v4"
)
func init() {
Expand All @@ -110,7 +110,7 @@ var (
import (
"database/sql"
"github.com/pressly/goose/v3"
"github.com/pressly/goose/v4"
)
func init() {
Expand All @@ -126,7 +126,7 @@ func down001(db *sql.DB) error { return nil }`
import (
"database/sql"
"github.com/pressly/goose/v3"
"github.com/pressly/goose/v4"
)
func init() {
Expand All @@ -140,7 +140,7 @@ func down002(db *sql.DB) error { return nil }`
import (
"database/sql"
"github.com/pressly/goose/v3"
"github.com/pressly/goose/v4"
)
func init() {
Expand All @@ -154,7 +154,7 @@ func up003(db *sql.DB) error { return nil }`
import (
"database/sql"
"github.com/pressly/goose/v3"
"github.com/pressly/goose/v4"
)
func init() {
Expand All @@ -172,7 +172,7 @@ func init() {}`
import (
"database/sql"
"github.com/pressly/goose/v3"
"github.com/pressly/goose/v4"
)
func init() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"path/filepath"

"github.com/pressly/goose/v3/internal/migrationstats"
"github.com/pressly/goose/v4/internal/migrationstats"
)

// NewFileWalker returns a new FileWalker for the given filenames.
Expand Down
2 changes: 1 addition & 1 deletion internal/sqlparser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"testing"

"github.com/pressly/goose/v3/internal/check"
"github.com/pressly/goose/v4/internal/check"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"time"

"github.com/pressly/goose/v3/internal/sqlparser"
"github.com/pressly/goose/v4/internal/sqlparser"
)

// MigrationRecord struct.
Expand Down
6 changes: 3 additions & 3 deletions tests/clickhouse/clickhouse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"testing"
"time"

"github.com/pressly/goose/v3"
"github.com/pressly/goose/v3/internal/check"
"github.com/pressly/goose/v3/internal/testdb"
"github.com/pressly/goose/v4"
"github.com/pressly/goose/v4/internal/check"
"github.com/pressly/goose/v4/internal/testdb"
)

func TestMain(m *testing.M) {
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/allow_missing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"database/sql"
"testing"

"github.com/pressly/goose/v3"
"github.com/pressly/goose/v3/internal/check"
"github.com/pressly/goose/v4"
"github.com/pressly/goose/v4/internal/check"
)

func TestNotAllowMissing(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"syscall"
"testing"

"github.com/pressly/goose/v3"
"github.com/pressly/goose/v3/internal/check"
"github.com/pressly/goose/v3/internal/testdb"
"github.com/pressly/goose/v4"
"github.com/pressly/goose/v4/internal/check"
"github.com/pressly/goose/v4/internal/testdb"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/migrations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"reflect"
"testing"

"github.com/pressly/goose/v3"
"github.com/pressly/goose/v3/internal/check"
"github.com/pressly/goose/v4"
"github.com/pressly/goose/v4/internal/check"
)

func TestMigrateUpWithReset(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/no_versioning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"database/sql"
"testing"

"github.com/pressly/goose/v3"
"github.com/pressly/goose/v3/internal/check"
"github.com/pressly/goose/v4"
"github.com/pressly/goose/v4/internal/check"
)

func TestNoVersioning(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions tests/gomigrations/error/gomigrations_error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package gomigrations
import (
"testing"

"github.com/pressly/goose/v3"
"github.com/pressly/goose/v3/internal/check"
"github.com/pressly/goose/v3/internal/testdb"
"github.com/pressly/goose/v4"
"github.com/pressly/goose/v4/internal/check"
"github.com/pressly/goose/v4/internal/testdb"

_ "github.com/pressly/goose/v3/tests/gomigrations/error/testdata"
_ "github.com/pressly/goose/v4/tests/gomigrations/error/testdata"
)

func TestGoMigrationByOne(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion tests/gomigrations/error/testdata/001_up_no_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gomigrations
import (
"database/sql"

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

func init() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"database/sql"
"fmt"

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

func init() {
Expand Down
2 changes: 1 addition & 1 deletion tests/gomigrations/error/testdata/003_truncate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gomigrations
import (
"database/sql"

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

func init() {
Expand Down
2 changes: 1 addition & 1 deletion tests/gomigrations/error/testdata/004_ERROR_insert.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"database/sql"
"fmt"

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

func init() {
Expand Down
8 changes: 4 additions & 4 deletions tests/gomigrations/success/gomigrations_success_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"path/filepath"
"testing"

"github.com/pressly/goose/v3"
"github.com/pressly/goose/v3/internal/check"
"github.com/pressly/goose/v3/internal/testdb"
"github.com/pressly/goose/v4"
"github.com/pressly/goose/v4/internal/check"
"github.com/pressly/goose/v4/internal/testdb"

_ "github.com/pressly/goose/v3/tests/gomigrations/success/testdata"
_ "github.com/pressly/goose/v4/tests/gomigrations/success/testdata"
)

func TestGoMigrationByOne(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion tests/gomigrations/success/testdata/001_up_down.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gomigrations
import (
"database/sql"

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

func init() {
Expand Down
2 changes: 1 addition & 1 deletion tests/gomigrations/success/testdata/002_up_only.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gomigrations
import (
"database/sql"

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

func init() {
Expand Down
2 changes: 1 addition & 1 deletion tests/gomigrations/success/testdata/003_down_only.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gomigrations
import (
"database/sql"

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

func init() {
Expand Down
2 changes: 1 addition & 1 deletion tests/gomigrations/success/testdata/004_empty.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package gomigrations

import (
"github.com/pressly/goose/v3"
"github.com/pressly/goose/v4"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion tests/gomigrations/success/testdata/005_up_down_no_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gomigrations
import (
"database/sql"

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

func init() {
Expand Down
2 changes: 1 addition & 1 deletion tests/gomigrations/success/testdata/006_up_only_no_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gomigrations
import (
"database/sql"

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

func init() {
Expand Down
Loading

0 comments on commit eed4771

Please sign in to comment.