From 542801f2dcc609d95b37bacf0ef65007cd83fc61 Mon Sep 17 00:00:00 2001 From: Chandan Singh <63041696+chandan-singh7929@users.noreply.github.com> Date: Tue, 27 Apr 2021 20:57:34 +0530 Subject: [PATCH] ACMS-736: Fix local test failure by updating default setting patch (#784) --- patches/d9-acms-settings.patch | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/patches/d9-acms-settings.patch b/patches/d9-acms-settings.patch index 115f1315b..e3e1330cf 100644 --- a/patches/d9-acms-settings.patch +++ b/patches/d9-acms-settings.patch @@ -21,9 +21,12 @@ if (AcquiaDrupalEnvironmentDetector::isAhEnv()) { require "/var/www/site-php/$ah_group/$safe_site_name-settings.inc"; } // Temporary workaround to override the default MySQL wait_timeout setting. - $databases['default']['default']['init_commands'] = array( - 'wait_timeout' => "SET SESSION wait_timeout=3600", - ); + $default_settings['default']['default'] = [ + 'init_commands' => [ + 'wait_timeout' => "SET SESSION wait_timeout=3600", + ], + ]; + $databases = array_merge_recursive($databases, $default_settings); acquia_hosting_db_choose_active(); } }