Skip to content

Commit

Permalink
Fix edition downgrade failure for an ENTERPRISE_PLUS instance with da… (
Browse files Browse the repository at this point in the history
#12289) (#20393)

[upstream:821357e87c510c090aabc8502fae4190152a5d99]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Nov 19, 2024
1 parent 132e7b4 commit 89909b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/12289.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
sql: fixed edition downgrade failure for an `ENTERPRISE_PLUS` instance with data cache enabled.
```
1 change: 1 addition & 0 deletions google/services/sql/resource_sql_database_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -2026,6 +2026,7 @@ func resourceSqlDatabaseInstanceUpdate(d *schema.ResourceData, meta interface{})
instance.Settings.SettingsVersion = int64(_settings["version"].(int))
// Collation cannot be included in the update request
instance.Settings.Collation = ""
instance.Settings.DataCacheConfig = expandDataCacheConfig(_settings["data_cache_config"].([]interface{}))

// Lock on the master_instance_name just in case updating any replica
// settings causes operations on the master.
Expand Down
1 change: 0 additions & 1 deletion google/services/sql/resource_sql_database_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1881,7 +1881,6 @@ func TestAccSqlDatabaseInstance_Postgres_Edition_Upgrade(t *testing.T) {
}

func TestAccSqlDatabaseInstance_Edition_Downgrade(t *testing.T) {
t.Skip("https://github.com/hashicorp/terraform-provider-google/issues/20010")
t.Parallel()
enterprisePlusTier := "db-perf-optimized-N-2"
enterpriseTier := "db-custom-2-13312"
Expand Down

0 comments on commit 89909b2

Please sign in to comment.