Load hooks during upgrade mode
authoreileen <emcnaughton@wikimedia.org>
Wed, 6 Feb 2019 21:48:02 +0000 (10:48 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 9 Apr 2019 09:18:59 +0000 (21:18 +1200)
commit62f662b002e4f8b6cfbdbd2b9d0c03712f2441fa
tree9bb0c6baf6531aae10b4668ad45469c6c91a09f9
parent476cc4314ca4dc5b4996dc4712b04ee8beaa3022
Load hooks during upgrade mode

For unknown, svn, reasons extension hooks are not loaded during upgrade
(this doesn't apply to drupal modules) - this causes some fairly serious problems
1) settings are re-loaded & cached with settings from extensions being lost
2) trigger alter hooks are lost this means
 - the summary fields triggers are frequently lost on upgrade
 - hooks that unset various tables to prevent them from being logged can fail, resulting in those log tables being created
 - hooks that specify the table should be innodb can fail to run, resulting in archive format.

I can't think WHY we do this? Presumably there was some problem that would have been better solved another
way but which was solved this way?

Fix "Load hooks during upgrade mode" (45312e1e64dd6af0281fe5fb7f96dbd8be39e524)

In my testing, the commit doesn't do what it says because the symbols are wrong.
CRM/Extension/Mapper.php
CRM/Utils/Hook.php