diff --git a/django/website/local_settings.py.jenkins b/django/website/local_settings.py.jenkins index e3bff451fa42f364d40387c0d196ae5a41175b48..f131e9cfd2f42c5a47980ae76d08e9a3c93a7bde 100644 --- a/django/website/local_settings.py.jenkins +++ b/django/website/local_settings.py.jenkins @@ -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;", } } } diff --git a/django/website/local_settings.py.production b/django/website/local_settings.py.production index ac4d17a2f1fb6f7514e71d2160af1c1ac79dcb68..0785b5798fa7dbb1777721717e59f242703177b1 100644 --- a/django/website/local_settings.py.production +++ b/django/website/local_settings.py.production @@ -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;", } } } diff --git a/django/website/local_settings.py.staging b/django/website/local_settings.py.staging index 77804ec59e0c76e01b94dbe3611554cb734510a5..095494e7c17471b4181ccc20ce93c6590c06b198 100644 --- a/django/website/local_settings.py.staging +++ b/django/website/local_settings.py.staging @@ -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;", } } }