Merge pull request #11 from bodepd/issue/master/set_charset_on_create

Database should set charset on create.
This commit is contained in:
Dan Bode 2011-06-17 15:49:34 -07:00
commit dbcdaf98d1

View file

@ -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