6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-05 04:48:00 +00:00

Get rid of mysql strict trans mode warnings

Here, we adopt the same behaviour as edX.org.

See the following links for documentation:
https://docs.djangoproject.com/en/1.11/ref/databases/#mysql-sql-mode
https://dev.mysql.com/doc/refman/en/sql-mode.html#sql-mode-strict
This commit is contained in:
Régis Behmo 2019-10-07 16:33:28 +02:00
parent 617e190aed
commit 56850683b3
2 changed files with 8 additions and 1 deletions

View File

@ -2,6 +2,10 @@
Note: Breaking changes between versions are indicated by "💥".
## Unreleased
- [Improvement] Enable Mysql strict mode
## 3.7.1 (2019-10-06)
- [Feature] Introduce tutor docker image

View File

@ -36,7 +36,10 @@
"NAME": "{{ OPENEDX_MYSQL_DATABASE }}",
"USER": "{{ OPENEDX_MYSQL_USERNAME }}",
"PASSWORD": "{{ OPENEDX_MYSQL_PASSWORD }}",
"ATOMIC_REQUESTS": true
"ATOMIC_REQUESTS": true,
"OPTIONS": {
"init_command": "SET sql_mode='STRICT_TRANS_TABLES'"
}
}
},
"EMAIL_HOST_USER": "{{ SMTP_USERNAME }}",