add hooks for upgrades
This commit is contained in:
parent
7c03a50947
commit
73afcad34c
@ -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
|
||||
|
||||
|
@ -33,23 +33,27 @@ require_once INSTALLDIR.'/scripts/commandline.inc';
|
||||
|
||||
function main()
|
||||
{
|
||||
updateSchemaCore();
|
||||
updateSchemaPlugins();
|
||||
if (Event::handle('StartUpgrade')) {
|
||||
updateSchemaCore();
|
||||
updateSchemaPlugins();
|
||||
|
||||
// These replace old "fixup_*" scripts
|
||||
// These replace old "fixup_*" scripts
|
||||
|
||||
fixupNoticeRendered();
|
||||
fixupNoticeConversation();
|
||||
initConversation();
|
||||
initInbox();
|
||||
fixupGroupURI();
|
||||
fixupNoticeRendered();
|
||||
fixupNoticeConversation();
|
||||
initConversation();
|
||||
initInbox();
|
||||
fixupGroupURI();
|
||||
|
||||
initLocalGroup();
|
||||
initNoticeReshare();
|
||||
initLocalGroup();
|
||||
initNoticeReshare();
|
||||
|
||||
initFaveURI();
|
||||
initSubscriptionURI();
|
||||
initGroupMemberURI();
|
||||
initFaveURI();
|
||||
initSubscriptionURI();
|
||||
initGroupMemberURI();
|
||||
|
||||
Event::handle('EndUpgrade');
|
||||
}
|
||||
}
|
||||
|
||||
function tableDefs()
|
||||
|
Loading…
Reference in New Issue
Block a user