You have to look up the correct use of the. See the update.php manual for more information.Įxtension registration was introduced in MW 1.25, and so the Hooks section of extension.json should be used instead of $wgHooks. You want to take a look at the deprecated hook in the MediaWiki Core code repository + also its replacement. From the command line run the php maintenance/update.php script to update your wiki’s database with your extension’s LoadExtensionSchemaUpdates hook.See the ArticleFeedbackv5 SQL, and the corresponding hooks file, for some examples. Deprecated: Use of userCan hook (used in FandomWikiConfigWikiConfigHooks::canEditInterfaceWhitelist) was deprecated in MediaWiki 1.37.Called from MediaWiki. Make sure the hook has access to any necessary SQL files, which are usually located in an sql/ directory.Make sure you are using the methods with Extension in the name to register the updates, rather than execute them directly. Issue Starting in 1. If you have more than one schema update, you can put them in the same function. The example shows how to setup the hook function. Easily sync your projects with Travis CI and youll be testing your code in minutes. Instead, the extension should create new tables with foreign key to the relevant MW table. Travis CI enables your team to test and ship your apps with confidence. Click the MediaWiki button below to connect your Wikimedia unified account. Your extension should not modify any MW core database. This version of the C SDK doesnt have the crypto hooks for SSL > over LDAP. They must only register updates, using methods like DatabaseUpdater::addExtensionTable(), DatabaseUpdater::modifyExtensionField(), etc. Handlers for this hook must not directly modify the database using methods like DatabaseUpdater::addTable(), DatabaseUpdater::dropField(), etc. If your extension is used on any production WMF-hosted wiki please follow the Schema change guide. If your extension requires changes to the database when MediaWiki is updated, use this hook to add them to the updater using methods like DatabaseUpdater::addExtensionTable(), DatabaseUpdater::modifyExtensionField(), etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |