Commit 73afcad3 authored by Evan Prodromou's avatar Evan Prodromou

add hooks for upgrades

parent 7c03a509
...@@ -1418,3 +1418,7 @@ StartShowInvitationSuccess: Right before showing invitations success msg ...@@ -1418,3 +1418,7 @@ StartShowInvitationSuccess: Right before showing invitations success msg
EndShowInvitationSuccess: After showing invitations success msg EndShowInvitationSuccess: After showing invitations success msg
- $action: invitation action - $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'; ...@@ -33,23 +33,27 @@ require_once INSTALLDIR.'/scripts/commandline.inc';
function main() function main()
{ {
updateSchemaCore(); if (Event::handle('StartUpgrade')) {
updateSchemaPlugins(); updateSchemaCore();
updateSchemaPlugins();
// These replace old "fixup_*" scripts // These replace old "fixup_*" scripts
fixupNoticeRendered(); fixupNoticeRendered();
fixupNoticeConversation(); fixupNoticeConversation();
initConversation(); initConversation();
initInbox(); initInbox();
fixupGroupURI(); fixupGroupURI();
initLocalGroup(); initLocalGroup();
initNoticeReshare(); initNoticeReshare();
initFaveURI(); initFaveURI();
initSubscriptionURI(); initSubscriptionURI();
initGroupMemberURI(); initGroupMemberURI();
Event::handle('EndUpgrade');
}
} }
function tableDefs() function tableDefs()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment