Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater Class Reference
+ Inheritance diagram for Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater:
+ Collaboration diagram for Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater:

Public Member Functions

 onLoadExtensionSchemaUpdates ( $updater)
 Schema update to set up the needed database tables. More...
 

Static Public Member Functions

static rebuildPropertyInfo (DatabaseUpdater $updater)
 Wrapper for invoking PropertyInfoTableBuilder from DatabaseUpdater during a database update. More...
 
static rebuildPropertyTerms (DatabaseUpdater $updater)
 
static rebuildItemTerms (DatabaseUpdater $updater)
 
static fillSubscriptionTable (DatabaseUpdater $dbUpdater, $table)
 Static wrapper for EntityUsageTableBuilder::fillUsageTable. More...
 

Private Member Functions

 updateChangesSubscriptionTable (DatabaseUpdater $dbUpdater)
 
 addChangesTable (DatabaseUpdater $updater, $type)
 
 updateItemsPerSiteTable (DatabaseUpdater $updater, IDatabase $db)
 
 updateChangesTable (DatabaseUpdater $updater, IDatabase $db)
 
 registerPropertyInfoTableUpdates (DatabaseUpdater $updater)
 
 getUpdateScriptPath ( $name, $type)
 
 getScriptPath ( $name, $type)
 

Static Private Member Functions

static newItemIdIterator (int $highestId)
 

Detailed Description

Author
Daniel Kinzler
Marius Hoch

Member Function Documentation

◆ addChangesTable()

Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::addChangesTable ( DatabaseUpdater  $updater,
  $type 
)
private
Parameters
DatabaseUpdater$updater
string$type

◆ fillSubscriptionTable()

static Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::fillSubscriptionTable ( DatabaseUpdater  $dbUpdater,
  $table 
)
static

Static wrapper for EntityUsageTableBuilder::fillUsageTable.

Parameters
DatabaseUpdater$dbUpdater
string$table

◆ getScriptPath()

Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::getScriptPath (   $name,
  $type 
)
private

◆ getUpdateScriptPath()

Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::getUpdateScriptPath (   $name,
  $type 
)
private

◆ newItemIdIterator()

static Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::newItemIdIterator ( int  $highestId)
staticprivate

◆ onLoadExtensionSchemaUpdates()

Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::onLoadExtensionSchemaUpdates (   $updater)

Schema update to set up the needed database tables.

See also
https://www.mediawiki.org/wiki/Manual:Hooks/LoadExtensionSchemaUpdates
Parameters
DatabaseUpdater$updater

◆ rebuildItemTerms()

static Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::rebuildItemTerms ( DatabaseUpdater  $updater)
static

◆ rebuildPropertyInfo()

static Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::rebuildPropertyInfo ( DatabaseUpdater  $updater)
static

Wrapper for invoking PropertyInfoTableBuilder from DatabaseUpdater during a database update.

Parameters
DatabaseUpdater$updater

◆ rebuildPropertyTerms()

static Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::rebuildPropertyTerms ( DatabaseUpdater  $updater)
static

◆ registerPropertyInfoTableUpdates()

Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::registerPropertyInfoTableUpdates ( DatabaseUpdater  $updater)
private

◆ updateChangesSubscriptionTable()

Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::updateChangesSubscriptionTable ( DatabaseUpdater  $dbUpdater)
private

◆ updateChangesTable()

Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::updateChangesTable ( DatabaseUpdater  $updater,
IDatabase  $db 
)
private

◆ updateItemsPerSiteTable()

Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::updateItemsPerSiteTable ( DatabaseUpdater  $updater,
IDatabase  $db 
)
private

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