MediaWiki  REL1_19
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 ()
 doFilearchiveIndicesUpdate ()
 doFixAncientImagelinks ()
 doIndexUpdate ()
 Check that proper indexes are in place.
 doInterwikiUpdate ()
 Check that interwiki table exists; if it doesn't source it.
 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.
 renameEuWikiId ()

Detailed Description

Mysql update list and mysql-specific update functions.

Since:
1.17

Definition at line 15 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:
$tableString: table name
$fieldString: field name to check
$patchFileString: path to the patch to correct the field

Definition at line 206 of file MysqlUpdater.php.

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

Here is the call graph for this function:

Definition at line 698 of file MysqlUpdater.php.

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

Here is the call graph for this function:

Definition at line 729 of file MysqlUpdater.php.

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

Here is the call graph for this function:

Definition at line 736 of file MysqlUpdater.php.

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

Here is the call graph for this function:

Definition at line 820 of file MysqlUpdater.php.

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

Here is the call graph for this function:

Definition at line 777 of file MysqlUpdater.php.

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

Here is the call graph for this function:

Definition at line 284 of file MysqlUpdater.php.

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

Here is the call graph for this function:

MysqlUpdater::doIndexUpdate ( ) [protected]

Check that proper indexes are in place.

Definition at line 264 of file MysqlUpdater.php.

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

Here is the call graph for this function:

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

Definition at line 245 of file MysqlUpdater.php.

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

Here is the call graph for this function:

Definition at line 831 of file MysqlUpdater.php.

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

Here is the call graph for this function:

Definition at line 765 of file MysqlUpdater.php.

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

Here is the call graph for this function:

Definition at line 484 of file MysqlUpdater.php.

References $result, and DatabaseUpdater\output().

Here is the call graph for this function:

Definition at line 279 of file MysqlUpdater.php.

Definition at line 510 of file MysqlUpdater.php.

References $wgContLang, DatabaseUpdater\applyPatch(), MWNamespace\getCanonicalNamespaces(), and DatabaseUpdater\output().

Here is the call graph for this function:

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

See also:
bug 3946

Definition at line 643 of file MysqlUpdater.php.

References $page, $rows, and DatabaseUpdater\output().

Here is the call graph for this function:

Definition at line 753 of file MysqlUpdater.php.

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

Here is the call graph for this function:

Adding page_restrictions table, obsoleting page.page_restrictions.

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

Definition at line 713 of file MysqlUpdater.php.

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

Here is the call graph for this function:

Definition at line 319 of file MysqlUpdater.php.

References $page, $rows, $t, $wgLegacySchemaConversion, DatabaseUpdater\output(), and wfTimestamp().

Here is the call graph for this function:

Definition at line 655 of file MysqlUpdater.php.

References $count, $res, DatabaseUpdater\applyPatch(), DatabaseUpdater\output(), wfGetLB(), and wfWaitForSlaves().

Here is the call graph for this function:

Definition at line 786 of file MysqlUpdater.php.

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

Here is the call graph for this function:

Definition at line 809 of file MysqlUpdater.php.

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

Here is the call graph for this function:

Definition at line 559 of file MysqlUpdater.php.

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

Here is the call graph for this function:

Definition at line 845 of file MysqlUpdater.php.

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

Here is the call graph for this function:

Definition at line 544 of file MysqlUpdater.php.

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

Here is the call graph for this function:

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

Definition at line 626 of file MysqlUpdater.php.

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

Here is the call graph for this function:

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

Definition at line 300 of file MysqlUpdater.php.

References DatabaseUpdater\output().

Here is the call graph for this function:

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 17 of file MysqlUpdater.php.

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

Check whether an index contain a field.

Parameters:
$tableString: table name
$indexString: index name to check
$fieldString: field that should be in the index
Returns:
Boolean

Definition at line 228 of file MysqlUpdater.php.

References DatabaseUpdater\output().

Referenced by doBacklinkingIndicesUpdate(), and doCategorylinksIndicesUpdate().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 798 of file MysqlUpdater.php.

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

Here is the call graph for this function:


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