Skip to content
Snippets Groups Projects
Commit 2bbbd9b2 authored by Seamus Lee's avatar Seamus Lee
Browse files

#1618 Trigger a reconciliation of logging tables after Extension...

#1618 Trigger a reconciliation of logging tables after Extension upgrades have been done to ensure any new columns are correctly added to logging tables as well

Update PR as per comments from Dave D
parent 45917880
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