You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding support for major version upgrade in cloud sql instance. (#6374) (#12338)
* Adding support for major version upgrade in cloud sql instance.
* Resolving Lint errors
* Minor changes to improve readability
* Op redeclared in the file
* Update resource_sql_database_instance.go.erb
* Added test for the database version upgrade and added appropriate comments.
* Update mmv1/third_party/terraform/tests/resource_sql_database_instance_test.go.erb
Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
Signed-off-by: Modular Magician <[email protected]>
Signed-off-by: Modular Magician <[email protected]>
Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
Copy file name to clipboardExpand all lines: google/resource_sql_database_instance.go
+31-5
Original file line number
Diff line number
Diff line change
@@ -518,7 +518,6 @@ is set to true.`,
518
518
"database_version": {
519
519
Type: schema.TypeString,
520
520
Required: true,
521
-
ForceNew: true,
522
521
Description: `The MySQL, PostgreSQL or SQL Server (beta) version to use. Supported values include MYSQL_5_6, MYSQL_5_7, MYSQL_8_0, POSTGRES_9_6, POSTGRES_10, POSTGRES_11, POSTGRES_12, POSTGRES_13, POSTGRES_14, SQLSERVER_2017_STANDARD, SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, SQLSERVER_2017_WEB. Database Version Policies includes an up-to-date reference of supported versions.`,
523
522
},
524
523
@@ -1357,11 +1356,39 @@ func resourceSqlDatabaseInstanceUpdate(d *schema.ResourceData, meta interface{})
1357
1356
returnerr
1358
1357
}
1359
1358
1360
-
// Update only updates the settings, so they are all we need to set.
0 commit comments