Added an OPTIONS settings to the DATABASES setting in docker/settings_local.py, to make some migration operations work under docker.

- Legacy-Id: 17141
This commit is contained in:
Henrik Levkowetz 2019-12-08 19:20:56 +00:00
parent cbe8da6a71
commit 71883dae63

View file

@ -13,8 +13,12 @@ DATABASES = {
'ENGINE': 'django.db.backends.mysql',
'USER': 'django',
'PASSWORD': 'RkTkDPFnKpko',
'OPTIONS': {
'sql_mode': 'STRICT_TRANS_TABLES',
'init_command': 'SET storage_engine=MyISAM; SET names "utf8"',
},
} # type: Dict[str, Dict[str, Collection[str]]]
},
} # type: Dict[str, Dict[str, Collection[str]]]
DATABASE_TEST_OPTIONS = {
'init_command': 'SET storage_engine=InnoDB',