diff --git a/CHANGELOG.md b/CHANGELOG.md index e0e4b88a..944f7959 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/databases.go b/databases.go index 5c4edc26..c06cca3a 100644 --- a/databases.go +++ b/databases.go @@ -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"` } diff --git a/databases_test.go b/databases_test.go index 9e7e4182..f73076e6 100644 --- a/databases_test.go +++ b/databases_test.go @@ -614,7 +614,7 @@ func TestDatabases_ListPools(t *testing.T) { "user": "user", "size": 10, "mode": "transaction", - "database": "db", + "db": "db", "connection": { "uri": "postgresql://user:pass@host.com/db", "host": "host.com", @@ -669,7 +669,7 @@ func TestDatabases_CreatePool(t *testing.T) { "user": "user", "size": 10, "mode": "transaction", - "database": "db", + "db": "db", "connection": { "uri": "postgresql://user:pass@host.com/db", "host": "host.com", @@ -732,7 +732,7 @@ func TestDatabases_GetPool(t *testing.T) { "user": "user", "size": 10, "mode": "transaction", - "database": "db", + "db": "db", "connection": { "uri": "postgresql://user:pass@host.com/db", "host": "host.com", diff --git a/godo.go b/godo.go index 7f298732..c7cfa7c6 100644 --- a/godo.go +++ b/godo.go @@ -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"