diff --git a/Gopkg.lock b/Gopkg.lock index a0b3c64..5c199a6 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -1,6 +1,14 @@ # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. +[[projects]] + digest = "1:ffe9824d294da03b391f44e1ae8281281b4afc1bdaa9588c9097785e3af10cec" + name = "github.com/davecgh/go-spew" + packages = ["spew"] + pruneopts = "UT" + revision = "8991bc29aa16c548c550c7ff78260e27b9ab7c73" + version = "v1.1.1" + [[projects]] digest = "1:abeb38ade3f32a92943e5be54f55ed6d6e3b6602761d74b4aab4c9dd45c18abd" name = "github.com/fsnotify/fsnotify" @@ -9,6 +17,20 @@ revision = "c2828203cd70a50dcccfb2761f8b1f8ceef9a8e9" version = "v1.4.7" +[[projects]] + digest = "1:692b29784ba0a25c33a77cb4c2594e2ffc1e72fc66e17e87503e03a29cb227c5" + name = "github.com/golang-migrate/migrate" + packages = [ + ".", + "database", + "database/postgres", + "source", + "source/file", + ] + pruneopts = "UT" + revision = "4937cd088f7c7193ee59b319c1c2caa7482aae8e" + version = "v3.5.4" + [[projects]] digest = "1:ca59b1175189b3f0e9f1793d2c350114be36eaabbe5b9f554b35edee1de50aea" name = "github.com/gorilla/mux" @@ -47,6 +69,21 @@ revision = "d161d7a76b5661016ad0b085869f77fd410f3e6a" version = "v1.2.0" +[[projects]] + branch = "master" + digest = "1:1c6754955b19aca14dc731b3ba126c0ec4a3221552f7e3db350faa12441ac701" + name = "github.com/joshsoftware/golang-boilerplate" + packages = [ + "api", + "app", + "category", + "config", + "db", + "server", + ] + pruneopts = "UT" + revision = "e797fe694033a3ae3d6a6dffa9b78d0b00c7090d" + [[projects]] digest = "1:8ef506fc2bb9ced9b151dafa592d4046063d744c646c1bbe801982ce87e4bc24" name = "github.com/lib/pq" @@ -104,6 +141,14 @@ revision = "ba968bfe8b2f7e042a574c888954fccecfa385b4" version = "v0.8.1" +[[projects]] + digest = "1:0028cb19b2e4c3112225cd871870f2d9cf49b9b4276531f03438a88e94be86fe" + name = "github.com/pmezard/go-difflib" + packages = ["difflib"] + pruneopts = "UT" + revision = "792786c7400a136282c1664665ae0a8db921c6c2" + version = "v1.0.0" + [[projects]] digest = "1:3e39bafd6c2f4bf3c76c3bfd16a2e09e016510ad5db90dc02b88e2f565d6d595" name = "github.com/spf13/afero" @@ -147,6 +192,25 @@ revision = "6d33b5a963d922d182c91e8a1c88d81fd150cfd4" version = "v1.3.1" +[[projects]] + digest = "1:ac83cf90d08b63ad5f7e020ef480d319ae890c208f8524622a2f3136e2686b02" + name = "github.com/stretchr/objx" + packages = ["."] + pruneopts = "UT" + revision = "477a77ecc69700c7cdeb1fa9e129548e1c1c393c" + version = "v0.1.1" + +[[projects]] + digest = "1:0bcc464dabcfad5393daf87c3f8142911d0f6c52569b837e91a1c15e890265f3" + name = "github.com/stretchr/testify" + packages = [ + "assert", + "mock", + ] + pruneopts = "UT" + revision = "ffdc059bfe9ce6a4e144ba849dbedead332c6053" + version = "v1.3.0" + [[projects]] digest = "1:b24d38b282bacf9791408a080f606370efa3d364e4b5fd9ba0f7b87786d3b679" name = "github.com/urfave/cli" @@ -229,15 +293,23 @@ analyzer-name = "dep" analyzer-version = 1 input-imports = [ + "github.com/golang-migrate/migrate", + "github.com/golang-migrate/migrate/database", + "github.com/golang-migrate/migrate/database/postgres", + "github.com/golang-migrate/migrate/source/file", "github.com/gorilla/mux", "github.com/jmoiron/sqlx", + "github.com/joshsoftware/golang-boilerplate/api", + "github.com/joshsoftware/golang-boilerplate/app", + "github.com/joshsoftware/golang-boilerplate/category", + "github.com/joshsoftware/golang-boilerplate/config", + "github.com/joshsoftware/golang-boilerplate/db", + "github.com/joshsoftware/golang-boilerplate/server", "github.com/lib/pq", - "github.com/mattes/migrate", - "github.com/mattes/migrate/database", - "github.com/mattes/migrate/database/postgres", - "github.com/mattes/migrate/source/file", "github.com/pkg/errors", "github.com/spf13/viper", + "github.com/stretchr/testify/assert", + "github.com/stretchr/testify/mock", "github.com/urfave/cli", "github.com/urfave/negroni", "go.uber.org/zap", diff --git a/db/migrations.go b/db/migrations.go index a0a88cf..752b3a4 100644 --- a/db/migrations.go +++ b/db/migrations.go @@ -8,12 +8,12 @@ import ( "strconv" "time" + "github.com/golang-migrate/migrate" + "github.com/golang-migrate/migrate/database" + "github.com/golang-migrate/migrate/database/postgres" + _ "github.com/golang-migrate/migrate/source/file" "github.com/joshsoftware/golang-boilerplate/config" _ "github.com/lib/pq" - "github.com/mattes/migrate" - "github.com/mattes/migrate/database" - "github.com/mattes/migrate/database/postgres" - _ "github.com/mattes/migrate/source/file" ) var ErrFindingDriver = errors.New("no migrate driver instance found")