Private
Public Access
1
0

added strict mode in mysql settings

This commit is contained in:
Sander Roosendaal
2019-06-18 21:33:39 +02:00
parent 09001ff4a9
commit 74ebe724cb
2 changed files with 3 additions and 0 deletions

View File

@@ -156,6 +156,9 @@ DATABASES = {
'PASSWORD': CFG['db_password'],
'HOST': CFG['db_host'],
'PORT': CFG['db_port'],
'OPTIONS': {
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'"
}
},
'slave': {
'ENGINE': 'django.db.backends.sqlite3',