Merge pull request #11 from bodepd/issue/master/set_charset_on_create
Database should set charset on create.
This commit is contained in:
commit
dbcdaf98d1
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ Puppet::Type.type(:database).provide(:mysql) do
|
|||
commands :mysqlshow => 'mysqlshow'
|
||||
|
||||
def create
|
||||
mysqladmin("--default-character-set=#{resource[:charset]}", 'create', @resource[:name])
|
||||
mysql('-NBe', "CREATE DATABASE #{@resource[:name]} CHARACTER SET #{resource[:charset]}")
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
|
Loading…
Reference in a new issue