Test to pass SET NAMES to init_command

This commit is contained in:
Griatch 2019-03-24 15:31:43 +01:00
parent ee1e7c6a7d
commit 362f5cf5c1
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,6 @@ before_script:
- cp .travis/${TESTING_DB}_settings.py testing_mygame/server/conf/settings.py
- cd testing_mygame
- evennia migrate
- mysql -u root -e "ALTER TABLE accounts_accountdb CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;" evennia
- evennia collectstatic --noinput
script:

View File

@ -54,7 +54,8 @@ DATABASES = {
'NAME': 'default',
'OPTIONS': {
'charset': 'utf8mb4',
'init_command': 'set collation_connection=utf8mb4_unicode_ci'
# 'init_command': 'set collation_connection=utf8mb4_unicode_ci'
'init_command': "SET NAMES 'utf8mb4'"
}
}
}