Skip to content
Snippets Groups Projects
Unverified Commit e54e2263 authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #21135 from seamuslee001/dev_core_1618

#1618 Trigger a reconciliation of logging tables after Extens…
parents 1e9edcc0 2bbbd9b2
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment