Use LoggedUpdateMaintenance to create Template
Created by: osnard
Making modifications to wikipages in the LoadExtensionSchemaUpdates
hook
can be problematic, as other extensions may bind to hooks like
PageContentSaveComplete
. Those other extensions then might access the
database which is not up to date yet, causing an exception.
Using a LoggedUpdateMaintenance
script makes sure the modifications to
wikipages occur after the database has been fully updated.