Skip to content

Commit

Permalink
Default to utf8 for MySQL
Browse files Browse the repository at this point in the history
Change default charset to utf8 and default collation order to
utf8_unicode_ci to align with upstream defaults.

Change-Id: I0fb57f14a0d30226c840a6e920f2b3807b90080a
Closes-Bug: #1322715
(cherry picked from commit 166b00a)
  • Loading branch information
rickerc authored and claytono committed May 28, 2014
1 parent 72184bf commit 5589df7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions manifests/db/mysql.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
# Optional. Defaults to undef.
#
# [*charset*]
# the database charset. Optional. Defaults to 'latin1'
# the database charset. Optional. Defaults to 'utf8'
#
# [*collate*]
# the database collation. Optional. Defaults to 'latin1_swedish_ci'
# the database collation. Optional. Defaults to 'utf8_unicode_ci'
#
# [*mysql_module*]
# (optional) Mysql module version to use. Tested versions
Expand All @@ -37,8 +37,8 @@
$user = 'ceilometer',
$host = 'localhost',
$allowed_hosts = undef,
$charset = 'latin1',
$collate = 'latin1_swedish_ci',
$charset = 'utf8',
$collate = 'utf8_unicode_ci',
$mysql_module = '0.9',
) {

Expand Down
4 changes: 2 additions & 2 deletions spec/classes/ceilometer_db_mysql_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
:dbname => 'ceilometer',
:user => 'ceilometer',
:host => 'localhost',
:charset => 'latin1',
:collate => 'latin1_swedish_ci',
:charset => 'utf8',
:collate => 'utf8_unicode_ci',
:mysql_module => '0.9',
}
end
Expand Down

0 comments on commit 5589df7

Please sign in to comment.