mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
MySQL: fix diacritic uniqueness test by setting the default character set and collation to utf8/utf8_unicode_ci
[#2883 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
This commit is contained in:
parent
b97d293374
commit
d8041538dd
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ end
|
|||
namespace :mysql do
|
||||
desc 'Build the MySQL test databases'
|
||||
task :build_databases do
|
||||
%x( mysqladmin --user=#{MYSQL_DB_USER} create activerecord_unittest )
|
||||
%x( mysqladmin --user=#{MYSQL_DB_USER} create activerecord_unittest2 )
|
||||
%x( echo "create DATABASE activerecord_unittest DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci " | mysql --user=#{MYSQL_DB_USER})
|
||||
%x( echo "create DATABASE activerecord_unittest2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci " | mysql --user=#{MYSQL_DB_USER})
|
||||
end
|
||||
|
||||
desc 'Drop the MySQL test databases'
|
||||
|
|
Loading…
Reference in a new issue