File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,17 +34,17 @@ install RabbitMQ rabbitmq-server
34
34
35
35
install PostgreSQL postgresql postgresql-contrib libpq-dev
36
36
sudo -u postgres createuser --superuser vagrant
37
- sudo -u postgres createdb -O vagrant activerecord_unittest
38
- sudo -u postgres createdb -O vagrant activerecord_unittest2
37
+ sudo -u postgres createdb -O vagrant -E UTF8 -T template0 activerecord_unittest
38
+ sudo -u postgres createdb -O vagrant -E UTF8 -T template0 activerecord_unittest2
39
39
40
40
debconf-set-selections <<< ' mysql-server mysql-server/root_password password root'
41
41
debconf-set-selections <<< ' mysql-server mysql-server/root_password_again password root'
42
42
install MySQL mysql-server libmysqlclient-dev
43
43
# Set the password in an environment variable to avoid the warning issued if set with `-p`.
44
44
MYSQL_PWD=root mysql -uroot << SQL
45
45
CREATE USER 'rails'@'localhost';
46
- CREATE DATABASE activerecord_unittest DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci ;
47
- CREATE DATABASE activerecord_unittest2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci ;
46
+ CREATE DATABASE activerecord_unittest DEFAULT CHARACTER SET utf8mb4 ;
47
+ CREATE DATABASE activerecord_unittest2 DEFAULT CHARACTER SET utf8mb4 ;
48
48
GRANT ALL PRIVILEGES ON activerecord_unittest.* to 'rails'@'localhost';
49
49
GRANT ALL PRIVILEGES ON activerecord_unittest2.* to 'rails'@'localhost';
50
50
GRANT ALL PRIVILEGES ON inexistent_activerecord_unittest.* to 'rails'@'localhost';
You can’t perform that action at this time.
0 commit comments