diff --git a/README.md b/README.md index 06a1551..a337496 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ You can manage your database's evolution by creating incremental SQL or Go scrip This will install the `gorm-goose` binary to your `$GOPATH/bin` directory. -You can also build gorm-goose into your own applications by importing `github.com/Altoros/gorm-goose/lib/goose`. +You can also build gorm-goose into your own applications by importing `github.com/Altoros/gorm-goose/lib/gorm-goose`. # Usage diff --git a/cmd/gorm-goose/cmd_create.go b/cmd/gorm-goose/cmd_create.go index ee8cba9..22974b4 100644 --- a/cmd/gorm-goose/cmd_create.go +++ b/cmd/gorm-goose/cmd_create.go @@ -7,7 +7,7 @@ import ( "path/filepath" "time" - "github.com/Altoros/gorm-goose/lib/goose" + goose "github.com/Altoros/gorm-goose/lib/gorm-goose" ) var createCmd = &Command{ diff --git a/cmd/gorm-goose/cmd_dbversion.go b/cmd/gorm-goose/cmd_dbversion.go index b6437b6..cdbc723 100644 --- a/cmd/gorm-goose/cmd_dbversion.go +++ b/cmd/gorm-goose/cmd_dbversion.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/Altoros/gorm-goose/lib/goose" + goose "github.com/Altoros/gorm-goose/lib/gorm-goose" ) var dbVersionCmd = &Command{ diff --git a/cmd/gorm-goose/cmd_down.go b/cmd/gorm-goose/cmd_down.go index d32434b..0b3fcc2 100644 --- a/cmd/gorm-goose/cmd_down.go +++ b/cmd/gorm-goose/cmd_down.go @@ -3,7 +3,7 @@ package main import ( "log" - "github.com/Altoros/gorm-goose/lib/goose" + goose "github.com/Altoros/gorm-goose/lib/gorm-goose" ) var downCmd = &Command{ diff --git a/cmd/gorm-goose/cmd_redo.go b/cmd/gorm-goose/cmd_redo.go index eb78c8d..8d3cc4f 100644 --- a/cmd/gorm-goose/cmd_redo.go +++ b/cmd/gorm-goose/cmd_redo.go @@ -3,7 +3,7 @@ package main import ( "log" - "github.com/Altoros/gorm-goose/lib/goose" + goose "github.com/Altoros/gorm-goose/lib/gorm-goose" ) var redoCmd = &Command{ diff --git a/cmd/gorm-goose/cmd_status.go b/cmd/gorm-goose/cmd_status.go index 6ac5933..9c89547 100644 --- a/cmd/gorm-goose/cmd_status.go +++ b/cmd/gorm-goose/cmd_status.go @@ -6,7 +6,7 @@ import ( "path/filepath" "time" - "github.com/Altoros/gorm-goose/lib/goose" + goose "github.com/Altoros/gorm-goose/lib/gorm-goose" "github.com/jinzhu/gorm" ) diff --git a/cmd/gorm-goose/cmd_up.go b/cmd/gorm-goose/cmd_up.go index 5997dda..1d1e802 100644 --- a/cmd/gorm-goose/cmd_up.go +++ b/cmd/gorm-goose/cmd_up.go @@ -3,7 +3,7 @@ package main import ( "log" - "github.com/Altoros/gorm-goose/lib/goose" + goose "github.com/Altoros/gorm-goose/lib/gorm-goose" ) var upCmd = &Command{ diff --git a/cmd/gorm-goose/main.go b/cmd/gorm-goose/main.go index 478c620..c5accf1 100644 --- a/cmd/gorm-goose/main.go +++ b/cmd/gorm-goose/main.go @@ -7,7 +7,7 @@ import ( "strings" "text/template" - "github.com/Altoros/gorm-goose/lib/goose" + goose "github.com/Altoros/gorm-goose/lib/gorm-goose" ) // global options. available to any subcommands. diff --git a/lib/goose/dbconf.go b/lib/gorm-goose/dbconf.go similarity index 99% rename from lib/goose/dbconf.go rename to lib/gorm-goose/dbconf.go index 6531596..bc19ff7 100644 --- a/lib/goose/dbconf.go +++ b/lib/gorm-goose/dbconf.go @@ -1,4 +1,4 @@ -package goose +package gormgoose import ( "fmt" diff --git a/lib/goose/dbconf_test.go b/lib/gorm-goose/dbconf_test.go similarity index 98% rename from lib/goose/dbconf_test.go rename to lib/gorm-goose/dbconf_test.go index db526b3..34200af 100644 --- a/lib/goose/dbconf_test.go +++ b/lib/gorm-goose/dbconf_test.go @@ -1,4 +1,4 @@ -package goose +package gormgoose import ( "os" diff --git a/lib/goose/migrate.go b/lib/gorm-goose/migrate.go similarity index 99% rename from lib/goose/migrate.go rename to lib/gorm-goose/migrate.go index 483fcfc..06c7a40 100644 --- a/lib/goose/migrate.go +++ b/lib/gorm-goose/migrate.go @@ -1,4 +1,4 @@ -package goose +package gormgoose import ( "errors" diff --git a/lib/goose/migrate_test.go b/lib/gorm-goose/migrate_test.go similarity index 98% rename from lib/goose/migrate_test.go rename to lib/gorm-goose/migrate_test.go index 6dbffa3..da1e789 100644 --- a/lib/goose/migrate_test.go +++ b/lib/gorm-goose/migrate_test.go @@ -1,4 +1,4 @@ -package goose +package gormgoose import ( "testing" diff --git a/lib/goose/migration_go.go b/lib/gorm-goose/migration_go.go similarity index 99% rename from lib/goose/migration_go.go rename to lib/gorm-goose/migration_go.go index 318b5a4..4bb70ca 100644 --- a/lib/goose/migration_go.go +++ b/lib/gorm-goose/migration_go.go @@ -1,4 +1,4 @@ -package goose +package gormgoose import ( "bytes" diff --git a/lib/goose/migration_sql.go b/lib/gorm-goose/migration_sql.go similarity index 99% rename from lib/goose/migration_sql.go rename to lib/gorm-goose/migration_sql.go index 7a56891..d03073c 100644 --- a/lib/goose/migration_sql.go +++ b/lib/gorm-goose/migration_sql.go @@ -1,4 +1,4 @@ -package goose +package gormgoose import ( "bufio" diff --git a/lib/goose/migration_sql_test.go b/lib/gorm-goose/migration_sql_test.go similarity index 99% rename from lib/goose/migration_sql_test.go rename to lib/gorm-goose/migration_sql_test.go index 5852960..c3513b2 100644 --- a/lib/goose/migration_sql_test.go +++ b/lib/gorm-goose/migration_sql_test.go @@ -1,4 +1,4 @@ -package goose +package gormgoose import ( "strings" diff --git a/lib/goose/util.go b/lib/gorm-goose/util.go similarity index 96% rename from lib/goose/util.go rename to lib/gorm-goose/util.go index 6296923..c8a7ef9 100644 --- a/lib/goose/util.go +++ b/lib/gorm-goose/util.go @@ -1,4 +1,4 @@ -package goose +package gormgoose import ( "io"