X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FExtension%2FUpgrades.php;h=adf3b1f49493501cda107cf59bf5654b2b772694;hb=004f7adfd9ee84e434dd4a2a9d04634683ebb5c8;hp=d26a266ff6e9d9fa254a5b9165c720708a60f95a;hpb=0e59da6882996499a2670cda7f42e57b2e020d16;p=civicrm-core.git diff --git a/CRM/Extension/Upgrades.php b/CRM/Extension/Upgrades.php index d26a266ff6..adf3b1f494 100644 --- a/CRM/Extension/Upgrades.php +++ b/CRM/Extension/Upgrades.php @@ -69,9 +69,27 @@ class CRM_Extension_Upgrades { CRM_Utils_Hook::upgrade('enqueue', $queue); + // dev/core#1618 When Extension Upgrades are run reconcile log tables + $task = new CRM_Queue_Task( + [__CLASS__, 'upgradeLogTables'], + [], + ts('Update log tables') + ); + // Set weight low so that it will be run last. + $queue->createItem($task, -2); + return $queue; } + /** + * Update log tables following execution of extension upgrades + */ + public static function upgradeLogTables() { + $logging = new CRM_Logging_Schema(); + $logging->fixSchemaDifferences(); + return TRUE; + } + /** * @return array * Array(string $extKey => CRM_Extension_Upgrader_Interface $upgrader)