Skip to content
Snippets Groups Projects
Commit afbc5a8b authored by Alice Heaton's avatar Alice Heaton :speech_balloon:
Browse files

InnoDb table and foreign key checks don't work well together in Django. See...

InnoDb table and foreign key checks don't work well together in Django. See http://stackoverflow.com/questions/6178816/django-cannot-add-or-update-a-child-row-a-foreign-key-constraint-fails
parent 54142fb9
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ DATABASES = {
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
'OPTIONS': {
"init_command": "SET storage_engine=INNODB",
"init_command": "SET storage_engine=INNODB;SET foreign_key_checks = 0;",
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment