Skip to content

Commit

Permalink
Update packages and README, disable stump
Browse files Browse the repository at this point in the history
  • Loading branch information
chapsuk committed May 3, 2018
1 parent 949560b commit ffc9437
Show file tree
Hide file tree
Showing 12 changed files with 41 additions and 53 deletions.
6 changes: 3 additions & 3 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

[[constraint]]
name = "github.com/pressly/goose"
version = "2.2.0"
version = "2.3.0"

[[constraint]]
name = "github.com/smartystreets/goconvey"
Expand Down
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ go get -u github.com/chapsuk/miga

PackageName | Version | Postgres | MySQL
----------- | ------- | ------------------- | --------
goose | ? | :heavy_check_mark: | :heavy_check_mark:
migrate | 3.2.0 | :heavy_check_mark: | :heavy_check_mark:
stump | ? | :heavy_check_mark: | :heavy_minus_sign:
goose | 2.3.0 | :heavy_check_mark: | :heavy_check_mark:
migrate | 3.2.0 | :heavy_check_mark: | :heavy_check_mark:

## Features

Expand Down Expand Up @@ -143,10 +142,3 @@ seed:
PASS
ok github.com/chapsuk/miga/tests 10.521s
```

## !WARN

Vendor locked until:

* [goose - table name](https://github.com/pressly/goose/pull/104)
* [stump - table name](https://github.com/m1ome/stump/pull/6)
2 changes: 1 addition & 1 deletion driver/goose/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func New(dialect, dsn, tableName, dir string) (*Goose, error) {
return nil, err
}

orig.SetDBVersionTableName(tableName)
orig.SetTableName(tableName)
orig.SetLogger(&utils.StdLogger{})

db, err := sql.Open(dialect, dsn)
Expand Down
2 changes: 1 addition & 1 deletion driver/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func Available(name string) bool {
switch name {
case Goose:
case Migrate:
case Stump:
// case Stump:
default:
return false
}
Expand Down
2 changes: 1 addition & 1 deletion driver/stump/migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func New(dialect, dsn, tableName, dir string) (*Migrator, error) {
return nil, err
}

orig.SetDBVersionTableName(tableName)
// orig.SetTableName(tableName)

return &Migrator{
stump: s,
Expand Down
2 changes: 1 addition & 1 deletion tests/vars.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var (
drivers = map[driverName]dialects{
"goose": []string{"mysql", "postgres"},
"migrate": []string{"mysql", "postgres"},
"stump": []string{"postgres"},
// "stump": []string{"postgres"},
}

dsns = map[string]dsn{
Expand Down
4 changes: 0 additions & 4 deletions vendor/github.com/m1ome/stump/package/migrate/vars.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 22 additions & 22 deletions vendor/github.com/pressly/goose/dialect.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/pressly/goose/migrate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/pressly/goose/status.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions vendor/github.com/pressly/goose/version.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ffc9437

Please sign in to comment.