Manual:Hooks/LoadExtensionSchemaUpdates

Usage
If your extension requires changes to the database when MediaWiki is updated from an older version, do it when this hook is fired.