Wikibase
MediaWiki Wikibase extension
|
Maintenance script for populating data in term_full_entity_id column in wb_terms table. More...
Public Member Functions | |
__construct () | |
doDBUpdates () | |
getUpdateKey () | |
Private Member Functions | |
populateFullEntityIdColumn (IDatabase $dbr, IDatabase $dbw) | |
termsTableHasTermsForCustomEntityTypes (IDatabase $db) | |
runColumnPopulationQueries (IDatabase $db) | |
getUpdateQuery (IDatabase $db, $entityType, $idPrefix) | |
Private Attributes | |
$tableName = 'wb_terms' | |
Maintenance script for populating data in term_full_entity_id column in wb_terms table.
To be used with MediaWiki's update.php script.
Note: This script does not work for custom entity types registered by extensions (e.g. mediainfo) Use rebuildTermSqlIndex maintenance script (with –no-deduplication option) for more sophisticated populating of term_full_entity_id column, including handling custom entity types, batching with continuation, etc.
Wikibase\Repo\Maintenance\PopulateTermFullEntityId::__construct | ( | ) |
Wikibase\Repo\Maintenance\PopulateTermFullEntityId::doDBUpdates | ( | ) |
Wikibase\Repo\Maintenance\PopulateTermFullEntityId::getUpdateKey | ( | ) |
|
private |
IDatabase | $db | |
string | $entityType | |
string | $idPrefix |
|
private |
IDatabase | $dbr | |
IDatabase | $dbw |
|
private |
IDatabase | $db |
|
private |
IDatabase | $db |
|
private |