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

Disable mysql foreign key checks on staging, production and jenkins as well....

Disable mysql foreign key checks on staging, production and jenkins as well. See http://stackoverflow.com/questions/6178816/django-cannot-add-or-update-a-child-row-a-foreign-key-constraint-fails
parent 0ae59bf8
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,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;",
}
}
}
......
......@@ -20,7 +20,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;",
}
}
}
......
......@@ -16,7 +16,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