From 9640b86f59daf80991989f0848e02c01ead202d7 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 9 Jun 2023 14:37:11 -0700 Subject: [PATCH] Add default-components to list of default-extensions --- Civi/Core/SettingsManager.php | 1 + .../civicrm_extension.sqldata.php | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/Civi/Core/SettingsManager.php b/Civi/Core/SettingsManager.php index 1b1cdd50e9..feb3f86f66 100644 --- a/Civi/Core/SettingsManager.php +++ b/Civi/Core/SettingsManager.php @@ -344,6 +344,7 @@ class SettingsManager { case 'domain': $defaults = [ 'installed' => FALSE, + // The default list of components should be kept in sync with "civicrm_extension.sqldata.php". 'enable_components' => ['CiviEvent', 'CiviContribute', 'CiviMember', 'CiviMail', 'CiviReport', 'CiviPledge'], 'customFileUploadDir' => '[civicrm.files]/custom/', 'imageUploadDir' => '[civicrm.files]/persist/contribute/', diff --git a/sql/civicrm_data/civicrm_extension.sqldata.php b/sql/civicrm_data/civicrm_extension.sqldata.php index 37d159560e..2ec47f048a 100644 --- a/sql/civicrm_data/civicrm_extension.sqldata.php +++ b/sql/civicrm_data/civicrm_extension.sqldata.php @@ -45,4 +45,30 @@ return CRM_Core_CodeGen_SqlData::create('civicrm_extension', 'INSERT IGNORE INTO 'name' => 'FlexMailer', 'file' => 'flexmailer', ], + + // The following should be kept in sync with the *default* list of components (`enable_components`). + [ + 'full_name' => 'civi_contribute', + 'name' => 'CiviContribute', + ], + [ + 'full_name' => 'civi_event', + 'name' => 'CiviEvent', + ], + [ + 'full_name' => 'civi_mail', + 'name' => 'CiviMail', + ], + [ + 'full_name' => 'civi_member', + 'name' => 'CiviMember', + ], + [ + 'full_name' => 'civi_pledge', + 'name' => 'CiviPledge', + ], + [ + 'full_name' => 'civi_report', + 'name' => 'CiviReport', + ], ]); -- 2.25.1