enable strict mode for the database

This commit is contained in:
Andreas Zweili 2017-11-05 17:00:02 +01:00
parent fa681e6de6
commit 3e6da6a10a
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,9 @@ DATABASES = {
'PASSWORD': '2YKtY53F3HDDzPyExAaSh3jdVNh6VN',
'HOST': '127.0.0.1',
'PORT': '3306',
'OPTIONS': {
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'"
}
}
}