Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Maintenance\PopulateTermFullEntityId Class Reference

Maintenance script for populating data in term_full_entity_id column in wb_terms table. More...

+ Inheritance diagram for Wikibase\Repo\Maintenance\PopulateTermFullEntityId:
+ Collaboration diagram for Wikibase\Repo\Maintenance\PopulateTermFullEntityId:

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'
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Maintenance\PopulateTermFullEntityId::__construct ( )

Member Function Documentation

◆ doDBUpdates()

Wikibase\Repo\Maintenance\PopulateTermFullEntityId::doDBUpdates ( )
See also
LoggedUpdateMaintenance::doDBUpdates
Returns
bool

◆ getUpdateKey()

Wikibase\Repo\Maintenance\PopulateTermFullEntityId::getUpdateKey ( )
See also
LoggedUpdateMaintenance::getUpdateKey
Returns
string

◆ getUpdateQuery()

Wikibase\Repo\Maintenance\PopulateTermFullEntityId::getUpdateQuery ( IDatabase  $db,
  $entityType,
  $idPrefix 
)
private
Parameters
IDatabase$db
string$entityType
string$idPrefix
Returns
string

◆ populateFullEntityIdColumn()

Wikibase\Repo\Maintenance\PopulateTermFullEntityId::populateFullEntityIdColumn ( IDatabase  $dbr,
IDatabase  $dbw 
)
private
Parameters
IDatabase$dbr
IDatabase$dbw
Returns
bool

◆ runColumnPopulationQueries()

Wikibase\Repo\Maintenance\PopulateTermFullEntityId::runColumnPopulationQueries ( IDatabase  $db)
private
Parameters
IDatabase$db
Returns
bool

◆ termsTableHasTermsForCustomEntityTypes()

Wikibase\Repo\Maintenance\PopulateTermFullEntityId::termsTableHasTermsForCustomEntityTypes ( IDatabase  $db)
private
Parameters
IDatabase$db
Returns
bool

Member Data Documentation

◆ $tableName

Wikibase\Repo\Maintenance\PopulateTermFullEntityId::$tableName = 'wb_terms'
private

The documentation for this class was generated from the following file: