add hooks for upgrades

This commit is contained in:
Evan Prodromou 2011-09-15 17:05:32 -04:00
parent 7c03a50947
commit 73afcad34c
2 changed files with 21 additions and 13 deletions

View File

@ -1418,3 +1418,7 @@ StartShowInvitationSuccess: Right before showing invitations success msg
EndShowInvitationSuccess: After showing invitations success msg
- $action: invitation action
StartUpgrade: when starting a site upgrade
EndUpgrade: when ending a site upgrade; good place to do your own upgrades

View File

@ -33,6 +33,7 @@ require_once INSTALLDIR.'/scripts/commandline.inc';
function main()
{
if (Event::handle('StartUpgrade')) {
updateSchemaCore();
updateSchemaPlugins();
@ -50,6 +51,9 @@ function main()
initFaveURI();
initSubscriptionURI();
initGroupMemberURI();
Event::handle('EndUpgrade');
}
}
function tableDefs()