Skip to content

Commit

Permalink
🐛 v2 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lawzava committed Nov 30, 2021
1 parent 2e11fc8 commit c23a675
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ linters-settings:
- performance
- style
goimports:
local-prefixes: github.com/lawzava/go-pg-migrate
local-prefixes: github.com/lawzava/go-pg-migrate/v2
govet:
check-shadowing: true
misspell:
Expand Down
2 changes: 1 addition & 1 deletion examples/1_create_users_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

migrate "github.com/lawzava/go-pg-migrate"
migrate "github.com/lawzava/go-pg-migrate/v2"
)

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

migrate "github.com/lawzava/go-pg-migrate"
migrate "github.com/lawzava/go-pg-migrate/v2"
)

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

migrate "github.com/lawzava/go-pg-migrate"
migrate "github.com/lawzava/go-pg-migrate/v2"
)

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

migrate "github.com/lawzava/go-pg-migrate"
migrate "github.com/lawzava/go-pg-migrate/v2"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ go 1.17

require (
github.com/fergusstrange/embedded-postgres v1.2.0
github.com/frankban/quicktest v1.11.3 // indirect
github.com/golang/snappy v0.0.2 // indirect
github.com/google/go-cmp v0.5.6 // indirect
github.com/lib/pq v1.10.4
github.com/nwaples/rardecode v1.1.0 // indirect
github.com/pierrec/lz4 v2.6.0+incompatible // indirect
Expand All @@ -18,6 +16,8 @@ require (
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dsnet/compress v0.0.1 // indirect
github.com/frankban/quicktest v1.11.3 // indirect
github.com/google/go-cmp v0.5.6 // indirect
github.com/mholt/archiver v3.1.1+incompatible // indirect
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func mapMigrations(rawMigrations []*Migration) []*migration {
migrations := make([]*migration, len(rawMigrations))

for migrationIdx := range rawMigrations {
// nolint:exhaustivestruct // ID & created_at are filled by go-pg
// nolint:exhaustivestruct // ID & created_at are not used
migrations[migrationIdx] = &migration{
Name: rawMigrations[migrationIdx].Name,
Number: rawMigrations[migrationIdx].Number,
Expand Down

0 comments on commit c23a675

Please sign in to comment.