From 5d053fd9b9e9efbbeb1a4705e7de7bd7acfdae65 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Fri, 9 Jun 2023 14:42:23 -0700 Subject: [PATCH] regen.sh - Preserve the default component-extensions The issue is that `civicrm_setting[enable_components]` and `civicrm_extension` need to be sync'd (as of 5.63+). But there's a structural asymmetry - when dealing with an empty/default arrangement, "settings"/"components" will inherit a default activation-list; but "extensions" start with an empty activation-list. With this patch, we retain the local-active list of component-extensions. Hopefully, that matches the default setting... --- bin/regen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/regen.sh b/bin/regen.sh index 46e7d6d241..1542d2a146 100755 --- a/bin/regen.sh +++ b/bin/regen.sh @@ -47,7 +47,7 @@ php GenerateData.php ## Prune local data $MYSQLCMD -e "DROP TABLE IF EXISTS civicrm_install_canary; DELETE FROM civicrm_cache; DELETE FROM civicrm_setting;" -$MYSQLCMD -e "DELETE FROM civicrm_extension WHERE full_name NOT IN ('sequentialcreditnotes', 'eventcart', 'greenwich', 'org.civicrm.search_kit', 'org.civicrm.flexmailer', 'financialacls', 'contributioncancelactions', 'recaptcha', 'ckeditor4', 'legacycustomsearches', 'civiimport');" +$MYSQLCMD -e "DELETE FROM civicrm_extension WHERE full_name NOT IN ('sequentialcreditnotes', 'eventcart', 'greenwich', 'org.civicrm.search_kit', 'org.civicrm.flexmailer', 'financialacls', 'contributioncancelactions', 'recaptcha', 'ckeditor4', 'legacycustomsearches', 'civiimport') and full_name NOT LIKE 'civi_%';" TABLENAMES=$( echo "show tables like 'civicrm_%'" | $MYSQLCMD | grep ^civicrm_ | xargs ) cd $CIVISOURCEDIR/sql -- 2.25.1