Skip to content

Commit

Permalink
Merge pull request #219 from sunny-b/bug/fix-db-pool-json
Browse files Browse the repository at this point in the history
fix database pool json field and update patch version
  • Loading branch information
sunny-b authored Mar 29, 2019
2 parents 252753e + 4a5db6b commit 87f69d1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [v1.10.1] - 2019-03-27

- #219 Fix Database Pools json field - @sunny-b

## [v1.10.0] - 2019-03-20

- #215 Add support for Databases - @mikejholly
Expand Down
2 changes: 1 addition & 1 deletion databases.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ type DatabasePool struct {
User string `json:"user"`
Name string `json:"name"`
Size int `json:"size"`
Database string `json:"database"`
Database string `json:"db"`
Mode string `json:"mode"`
Connection *DatabaseConnection `json:"connection"`
}
Expand Down
6 changes: 3 additions & 3 deletions databases_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ func TestDatabases_ListPools(t *testing.T) {
"user": "user",
"size": 10,
"mode": "transaction",
"database": "db",
"db": "db",
"connection": {
"uri": "postgresql://user:[email protected]/db",
"host": "host.com",
Expand Down Expand Up @@ -669,7 +669,7 @@ func TestDatabases_CreatePool(t *testing.T) {
"user": "user",
"size": 10,
"mode": "transaction",
"database": "db",
"db": "db",
"connection": {
"uri": "postgresql://user:[email protected]/db",
"host": "host.com",
Expand Down Expand Up @@ -732,7 +732,7 @@ func TestDatabases_GetPool(t *testing.T) {
"user": "user",
"size": 10,
"mode": "transaction",
"database": "db",
"db": "db",
"connection": {
"uri": "postgresql://user:[email protected]/db",
"host": "host.com",
Expand Down
2 changes: 1 addition & 1 deletion godo.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

const (
libraryVersion = "1.10.0"
libraryVersion = "1.10.1"
defaultBaseURL = "https://api.digitalocean.com/"
userAgent = "godo/" + libraryVersion
mediaType = "application/json"
Expand Down

0 comments on commit 87f69d1

Please sign in to comment.