Skip to content

Commit 821357e

Browse files
skysarthakSarthak Tandon
and
Sarthak Tandon
authored
Fix edition downgrade failure for an ENTERPRISE_PLUS instance with da… (#12289)
Co-authored-by: Sarthak Tandon <[email protected]>
1 parent 77315f8 commit 821357e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.tmpl

+1
Original file line numberDiff line numberDiff line change
@@ -2024,6 +2024,7 @@ func resourceSqlDatabaseInstanceUpdate(d *schema.ResourceData, meta interface{})
20242024
instance.Settings.SettingsVersion = int64(_settings["version"].(int))
20252025
// Collation cannot be included in the update request
20262026
instance.Settings.Collation = ""
2027+
instance.Settings.DataCacheConfig = expandDataCacheConfig(_settings["data_cache_config"].([]interface{}))
20272028

20282029
// Lock on the master_instance_name just in case updating any replica
20292030
// settings causes operations on the master.

mmv1/third_party/terraform/services/sql/resource_sql_database_instance_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1879,7 +1879,6 @@ func TestAccSqlDatabaseInstance_Postgres_Edition_Upgrade(t *testing.T) {
18791879
}
18801880

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

0 commit comments

Comments
 (0)