"smw_hash" field population task

From semantic-mediawiki.org
UpgradeInformationErrorMessage.png

In some cases, mainly for large wikis with more than 200,000 object IDs the maintenance script "update.php" (MediaWiki.org) or alternatively Semantic MediaWiki's maintenance script "setupStore.php"Allows to set up the data backend/store will not complete populating the "smw_hash" database table field in "smw_objects_ids" database table.1 This is to allow early completion of the general script execution in due time. However maintenance script "populateHashField.php"Allows to do mass populating of database field "smw_hash" when initially upgrading to Semantic MediaWiki 3.0.1 and later must be run in a second step to complete the upgrade of the database.

In case the database table field was not completely populated a message will be shown to the user (see also the screenshot) at the top of every page on the wiki:

The installation (or upgrade) of Semantic MediaWiki has not been finalized and an administrator should run the following tasks to prevent data inconsistencies before users continue to create or alter content.
  • The "smw_hash" field population was skipped during the setup, the populateHashField.php script is required to be executed.

Once maintenance script "populateHashField.php"Allows to do mass populating of database field "smw_hash" when initially upgrading to Semantic MediaWiki 3.0.1 and later for populating the hash fields was run, the respective status infomation ".smw.json" setup information file will be updated to "true" and no longer causes the warning to be shown.

The "smw_hash" field population was skipped during the setup, the populateHashField.php script is required to be executed.|

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:3611