aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/Rakefile
diff options
context:
space:
mode:
authorHugo Peixoto <hugo.peixoto@gmail.com>2009-08-09 03:49:57 +0100
committerJeremy Kemper <jeremy@bitsweat.net>2009-08-08 19:02:29 -0700
commitd8041538dd1fed038c1ad30ddca5c9ce8254ee30 (patch)
treed3baab9a940308cebde6c42c01db1f7b5159d6c0 /activerecord/Rakefile
parentb97d2933747767a1aeacb9594f3d376f5791fc3a (diff)
downloadrails-d8041538dd1fed038c1ad30ddca5c9ce8254ee30.tar.gz
rails-d8041538dd1fed038c1ad30ddca5c9ce8254ee30.tar.bz2
rails-d8041538dd1fed038c1ad30ddca5c9ce8254ee30.zip
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>
Diffstat (limited to 'activerecord/Rakefile')
-rw-r--r--activerecord/Rakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/Rakefile b/activerecord/Rakefile
index 0d33b9d516..09dbc5ad6d 100644
--- a/activerecord/Rakefile
+++ b/activerecord/Rakefile
@@ -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'