Commit 645a8126 authored by Michal Čihař's avatar Michal Čihař

Okay using SET NAMES is safer

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent c3c1ab4a
......@@ -32,7 +32,7 @@ if 'TRAVIS_DATABASE' in os.environ:
DATABASES['default']['USER'] = 'root'
DATABASES['default']['PASSWORD'] = ''
DATABASES['default']['OPTIONS'] = {
'init_command': 'SET CHRACTER SET utf8',
'init_command': 'SET NAMES utf8',
}
elif os.environ['TRAVIS_DATABASE'] == 'postgresql':
DATABASES['default']['ENGINE'] = \
......
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