Skip to content

Commit

Permalink
Add overridable parameters for default charset and collation (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlafreniere authored and jmorissette committed Aug 22, 2019
1 parent 20a4f99 commit 6a62f81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mysql_schema_configuration/mysql_schema_configuration.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
*/

resource "mysql_database" "schema" {
name = "${var.schema_name}"
default_collation = "utf8_bin"
name = "${var.schema_name}"
default_character_set = "${lookup(var.optional_parameters, "default_character_set", "utf8")}"
default_collation = "${lookup(var.optional_parameters, "default_collation", "utf8_bin")}"
}

resource "mysql_user" "user" {
Expand Down

0 comments on commit 6a62f81

Please sign in to comment.