|
static | onSchemaUpdate (DatabaseUpdater $updater) |
| Schema update to set up the needed database tables.
|
|
static | rebuildPropertyInfo (DatabaseUpdater $updater) |
| Wrapper for invoking PropertyInfoTableBuilder from DatabaseUpdater during a database update.
|
|
static | rebuildPropertyTerms (DatabaseUpdater $updater) |
|
static | rebuildItemTerms (DatabaseUpdater $updater) |
|
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
-
Marius Hoch
◆ __construct()
Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::__construct |
( |
Store |
$store | ) |
|
◆ addChangesTable()
Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::addChangesTable |
( |
DatabaseUpdater |
$updater, |
|
|
|
$type |
|
) |
| |
|
private |
- Parameters
-
DatabaseUpdater | $updater | |
string | $type | |
◆ doSchemaUpdate()
Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::doSchemaUpdate |
( |
DatabaseUpdater |
$updater | ) |
|
◆ getUpdateScriptDir()
Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::getUpdateScriptDir |
( |
|
$fileName | ) |
|
|
private |
Returns the script directory that contains a file with the given name.
- Parameters
-
string | $fileName | with extension |
- Exceptions
-
MWException | If the file was not found in any script directory |
- Returns
- string The directory that contains the file
◆ getUpdateScriptPath()
Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::getUpdateScriptPath |
( |
|
$name, |
|
|
|
$type |
|
) |
| |
|
private |
Returns the appropriate script file for use with the given database type.
Searches for files with type-specific extensions in the script directories, falling back to the plain ".sql" extension if no specific script is found.
- Parameters
-
string | $name | the script's name, without file extension |
string | $type | the database type, as returned by IDatabase::getType() |
- Returns
- string The path to the script file
- Exceptions
-
MWException | If the script was not found in any script directory |
◆ newFromGlobalState()
static Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::newFromGlobalState |
( |
| ) |
|
|
staticprivate |
◆ newItemIdIterator()
static Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::newItemIdIterator |
( |
int |
$highestId | ) |
|
|
staticprivate |
◆ onSchemaUpdate()
static Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::onSchemaUpdate |
( |
DatabaseUpdater |
$updater | ) |
|
|
static |
◆ 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
-
◆ rebuildPropertyTerms()
static Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::rebuildPropertyTerms |
( |
DatabaseUpdater |
$updater | ) |
|
|
static |
◆ registerPropertyInfoTableUpdates()
Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::registerPropertyInfoTableUpdates |
( |
DatabaseUpdater |
$updater | ) |
|
|
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 |
◆ updateTermsTable()
Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::updateTermsTable |
( |
DatabaseUpdater |
$updater, |
|
|
IDatabase |
$db |
|
) |
| |
|
private |
Applies updates to the wb_terms table.
- Parameters
-
DatabaseUpdater | $updater | |
IDatabase | $db | |
◆ $store
Wikibase\Repo\Store\Sql\DatabaseSchemaUpdater::$store |
|
private |
The documentation for this class was generated from the following file: