Test to add utf8mb4 encoding for mysql

This commit is contained in:
Griatch 2019-03-20 21:58:43 +01:00
parent 943ac9dbfb
commit d8adc9b817
2 changed files with 5 additions and 2 deletions

View file

@ -20,7 +20,7 @@ before_install:
- psql -U postgres -c "CREATE DATABASE evennia;"
- psql -U postgres -c "CREATE USER evennia WITH PASSWORD 'password';"
- psql -U postgres -c "ALTER USER evennia CREATEDB;"
- mysql -u root -e "CREATE DATABASE evennia CHARACTER SET utf8 COLLATE utf8_unicode_ci;"
- mysql -u root -e "CREATE DATABASE evennia CHARACTER SET utf8mb4;"
- mysql -u root -e "CREATE USER 'evennia'@'localhost' IDENTIFIED BY 'password';"
- mysql -u root -e "GRANT ALL ON *.* TO 'evennia'@'localhost' IDENTIFIED BY 'password';"

View file

@ -47,7 +47,10 @@ DATABASES = {
'HOST': 'localhost',
'PORT': '', # use default port
'TEST': {
'NAME': 'default'
'NAME': 'default',
'OPTIONS': {
'ENCODING': 'utf8mb4'
}
}
}
}