From 2953afc7b78d33b0b8651d608fabcb80ad037cf7 Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 24 Mar 2019 15:31:43 +0100 Subject: [PATCH] Test to pass SET NAMES to init_command --- .travis.yml | 1 - .travis/mysql_settings.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b9550a7fd4..3abc6f298b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: diff --git a/.travis/mysql_settings.py b/.travis/mysql_settings.py index c4ec79d0e6..b0abfb8519 100644 --- a/.travis/mysql_settings.py +++ b/.travis/mysql_settings.py @@ -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'" } } }