MediaWiki  REL1_24
MysqlUpdater Class Reference

Mysql update list and mysql-specific update functions. More...

Inheritance diagram for MysqlUpdater:
Collaboration diagram for MysqlUpdater:

List of all members.

Public Member Functions

 doSchemaRestructuring ()
 doWatchlistUpdate ()
 Check if we need to add talk page rows to the watchlist.

Protected Member Functions

 checkBin ($table, $field, $patchFile)
 1.4 betas were missing the 'binary' marker from logging.log_title, which causes a collation mismatch error on joins in MySQL 4.1.
 doBacklinkingIndicesUpdate ()
 doCategorylinksIndicesUpdate ()
 doCategoryPopulation ()
 doClFieldsUpdate ()
 doEnableProfiling ()
 doFilearchiveIndicesUpdate ()
 doFixAncientImagelinks ()
 doIndexUpdate ()
 Check that proper indexes are in place.
 doInterwikiUpdate ()
 Check that interwiki table exists; if it doesn't source it.
 doIwlinksIndexNonUnique ()
 doLangLinksLengthUpdate ()
 doMaybeProfilingMemoryUpdate ()
 doNamespaceSize ()
 doOldLinksUpdate ()
 doPagelinksUpdate ()
 doPageRandomUpdate ()
 Set page_random field to a random value where it is equals to 0.
 doPopulateParentId ()
 doRestrictionsUpdate ()
 Adding page_restrictions table, obsoleting page.page_restrictions.
 doTemplatelinksUpdate ()
 doUniquePlTlIl ()
 doUpdateMimeMinorField ()
 doUserGroupsUpdate ()
 doUserNewTalkTimestampNotNull ()
 doUserUniqueUpdate ()
 doWatchlistNull ()
 Make sure wl_notificationtimestamp can be NULL, and update old broken items.
 getCoreUpdateList ()
 Get an array of updates to perform on the database.
 indexHasField ($table, $index, $field)
 Check whether an index contain a field.

Detailed Description

Mysql update list and mysql-specific update functions.

Since:
1.17

Definition at line 30 of file MysqlUpdater.php.


Member Function Documentation

MysqlUpdater::checkBin ( table,
field,
patchFile 
) [protected]

1.4 betas were missing the 'binary' marker from logging.log_title, which causes a collation mismatch error on joins in MySQL 4.1.

Parameters:
string$tableTable name
string$fieldField name to check
string$patchFilePath to the patch to correct the field
Returns:
bool

Definition at line 281 of file MysqlUpdater.php.

References DatabaseUpdater\applyPatch(), DatabaseUpdater\doTable(), and DatabaseUpdater\output().

Definition at line 959 of file MysqlUpdater.php.

References DatabaseUpdater\applyPatch().

MysqlUpdater::doIndexUpdate ( ) [protected]

Check that proper indexes are in place.

Definition at line 350 of file MysqlUpdater.php.

References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().

Check that interwiki table exists; if it doesn't source it.

Definition at line 326 of file MysqlUpdater.php.

References $IP, DatabaseUpdater\applyPatch(), DatabaseUpdater\doTable(), global, and DatabaseUpdater\output().

Definition at line 622 of file MysqlUpdater.php.

References $result, $tables, array(), as, and DatabaseUpdater\output().

Definition at line 364 of file MysqlUpdater.php.

Set page_random field to a random value where it is equals to 0.

See also:
bug 3946

Definition at line 797 of file MysqlUpdater.php.

References DatabaseUpdater\output().

Adding page_restrictions table, obsoleting page.page_restrictions.

Migrating old restrictions to new table -- Andrew Garrett, January 2007.

Definition at line 867 of file MysqlUpdater.php.

References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().

Definition at line 968 of file MysqlUpdater.php.

References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().

Make sure wl_notificationtimestamp can be NULL, and update old broken items.

Definition at line 774 of file MysqlUpdater.php.

References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().

Check if we need to add talk page rows to the watchlist.

Definition at line 391 of file MysqlUpdater.php.

References array(), and DatabaseUpdater\output().

Get an array of updates to perform on the database.

Should return a multi-dimensional array. The main key is the MediaWiki version (1.12, 1.13...) with the values being arrays of updates, identical to how updaters.inc did it (for now)

Returns:
array

Reimplemented from DatabaseUpdater.

Definition at line 31 of file MysqlUpdater.php.

References array(), from, listed, and was.

MysqlUpdater::indexHasField ( table,
index,
field 
) [protected]

Check whether an index contain a field.

Parameters:
string$tableTable name
string$indexIndex name to check
string$fieldField that should be in the index
Returns:
bool

Definition at line 303 of file MysqlUpdater.php.

References as, DatabaseUpdater\doTable(), and DatabaseUpdater\output().

Referenced by doBacklinkingIndicesUpdate(), and doCategorylinksIndicesUpdate().


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