Skip to content
Snippets Groups Projects
Unverified Commit ca665f46 authored by colemanw's avatar colemanw Committed by GitHub
Browse files

Merge pull request #22937 from colemanw/upit

#3112 Clear caches to avoid error on upgrade
parents f75ef99d ac74d0b5
Branches
Tags
No related merge requests found
......@@ -126,6 +126,9 @@ class CRM_Upgrade_Incremental_php_FiveFortySeven extends CRM_Upgrade_Incremental
}
CRM_Core_DAO::executeQuery("DELETE FROM civicrm_component WHERE name = 'CiviGrant'", [], TRUE, NULL, FALSE, FALSE);
}
// Reload the civi cache here as 'table_name' may not be in the cached entities
// array generated in an earlier version retrieved via $cache->get('api4.entities.info', []);
Civi::cache('metadata')->flush();
// There are existing records which should be managed by `civigrant`. To assign ownership, we need
// placeholders in `civicrm_extension` and `civicrm_managed`.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment