Commit 290462db authored by Michal Čihař's avatar Michal Čihař

Force MySQL to use UTF-8 for testing

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent fd652411
...@@ -31,6 +31,9 @@ if 'TRAVIS_DATABASE' in os.environ: ...@@ -31,6 +31,9 @@ if 'TRAVIS_DATABASE' in os.environ:
DATABASES['default']['NAME'] = 'weblate' DATABASES['default']['NAME'] = 'weblate'
DATABASES['default']['USER'] = 'root' DATABASES['default']['USER'] = 'root'
DATABASES['default']['PASSWORD'] = '' DATABASES['default']['PASSWORD'] = ''
DATABASES['default']['OPTIONS'] = {
'init_command': 'SET NAMES utf8',
}
elif os.environ['TRAVIS_DATABASE'] == 'postgresql': elif os.environ['TRAVIS_DATABASE'] == 'postgresql':
DATABASES['default']['ENGINE'] = \ DATABASES['default']['ENGINE'] = \
'django.db.backends.postgresql_psycopg2' 'django.db.backends.postgresql_psycopg2'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment