Skip to content

Commit

Permalink
Support MySQL database advanced configuration (#1051)
Browse files Browse the repository at this point in the history
* Support MySQL database advanced configuration

Resolved #1042.

* Fix invalid interface conversion for MySQL long query time parameter

Co-authored-by: Andrew Starr-Bochicchio <[email protected]>

* Add more test cases for MySQL config

Co-authored-by: Andrew Starr-Bochicchio <[email protected]>

---------

Co-authored-by: Andrew Starr-Bochicchio <[email protected]>
  • Loading branch information
kallydev and andrewsomething authored Oct 17, 2023
1 parent 5732de8 commit 2628683
Show file tree
Hide file tree
Showing 5 changed files with 525 additions and 0 deletions.
11 changes: 11 additions & 0 deletions digitalocean/database/resource_database_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,17 @@ resource "digitalocean_database_cluster" "foobar" {
tags = ["production"]
}`

const testAccCheckDigitalOceanDatabaseClusterMySQL = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
engine = "mysql"
version = "%s"
size = "db-s-1vcpu-1gb"
region = "nyc1"
node_count = 1
tags = ["production"]
}`

const testAccCheckDigitalOceanDatabaseClusterConfigWithEvictionPolicy = `
resource "digitalocean_database_cluster" "foobar" {
name = "%s"
Expand Down
Loading

0 comments on commit 2628683

Please sign in to comment.