Help:Installation/Upgrade from SMW 1.9+ for MW 1.19 - 1.21

From semantic-mediawiki.org
Jump to: navigation, search
InstallationHelp:Installation/Upgrade from SMW 1.9+ for MW 1.19 - 1.21
Installation
Upgrading from SMW 1.9.x or 2.0 (MW 1.19+ / non-native Composer support).
Further Information
Installation type: upgrade
Installation method: Composer
Table of Contents

Contents

  1. Backup your database and installation.
  2. Change the following line depending on which version you used before in the "require" section of the "composer.json" file in the …/extensions/ExtensionInstaller/ directory (MW  1.19.x - MW 1.21.x)[1] or from the base directory (MW 1.22+)[2].
    "mediawiki/semantic-media-wiki": "~1.9"
    
    or
    "mediawiki/semantic-media-wiki": "~2.0"
    
    to
    "mediawiki/semantic-media-wiki": "~2.1"
    
  3. Run the update script from the base directory[2] of your MediaWiki installation:[3]
    php composer.phar update
    
  4. See the page "Special:Version" on your wiki to verify that the extension was successfully updated.
  5. Run the setup script from the base directory[2] of your MediaWiki installation:
    php maintenance/update.php
    
  6. Run the refresh database script from the base directory[2] of your MediaWiki installation:[4]
    php extensions/SemanticMediaWiki/maintenance/SMW_refreshData.php -d 50 -v
    
  7. Done!

References

  1. See also the example "composer.json" file, which already contains the line to be added here.
  2. 2.0 2.1 2.2 2.3 Cite error: Invalid <ref> tag; no text was provided for refs named base
  3. Cite error: Invalid <ref> tag; no text was provided for refs named comglob
  4. Cite error: Invalid <ref> tag; no text was provided for refs named refresh