Skip to content

Commit 71883da

Browse files
committed
Added an OPTIONS settings to the DATABASES setting in docker/settings_local.py, to make some migration operations work under docker.
- Legacy-Id: 17141
1 parent cbe8da6 commit 71883da

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docker/settings_local.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@
1313
'ENGINE': 'django.db.backends.mysql',
1414
'USER': 'django',
1515
'PASSWORD': 'RkTkDPFnKpko',
16+
'OPTIONS': {
17+
'sql_mode': 'STRICT_TRANS_TABLES',
18+
'init_command': 'SET storage_engine=MyISAM; SET names "utf8"',
1619
},
17-
} # type: Dict[str, Dict[str, Collection[str]]]
20+
},
21+
} # type: Dict[str, Dict[str, Collection[str]]]
1822

1923
DATABASE_TEST_OPTIONS = {
2024
'init_command': 'SET storage_engine=InnoDB',

0 commit comments

Comments
 (0)