MediaWiki
REL1_21
|
Mysql update list and mysql-specific update functions. More...
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. | |
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 () |
Mysql update list and mysql-specific update functions.
Definition at line 30 of file MysqlUpdater.php.
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.
string | $table | table name |
string | $field | field name to check |
string | $patchFile | path to the patch to correct the field |
Definition at line 248 of file MysqlUpdater.php.
References $flags, $res, DatabaseUpdater\applyPatch(), DatabaseUpdater\doTable(), and DatabaseUpdater\output().
MysqlUpdater::doBacklinkingIndicesUpdate | ( | ) | [protected] |
Definition at line 742 of file MysqlUpdater.php.
References DatabaseUpdater\applyPatch(), and indexHasField().
MysqlUpdater::doCategorylinksIndicesUpdate | ( | ) | [protected] |
Definition at line 771 of file MysqlUpdater.php.
References DatabaseUpdater\applyPatch(), and indexHasField().
MysqlUpdater::doCategoryPopulation | ( | ) | [protected] |
Definition at line 777 of file MysqlUpdater.php.
References DatabaseUpdater\output(), and DatabaseUpdater\updateRowExists().
MysqlUpdater::doClFieldsUpdate | ( | ) | [protected] |
Definition at line 872 of file MysqlUpdater.php.
References DatabaseUpdater\applyPatch(), DatabaseUpdater\output(), and DatabaseUpdater\updateRowExists().
MysqlUpdater::doEnableProfiling | ( | ) | [protected] |
Definition at line 806 of file MysqlUpdater.php.
References DatabaseUpdater\applyPatch(), DatabaseUpdater\doTable(), and global.
MysqlUpdater::doFilearchiveIndicesUpdate | ( | ) | [protected] |
Definition at line 832 of file MysqlUpdater.php.
References DatabaseUpdater\applyPatch().
MysqlUpdater::doFixAncientImagelinks | ( | ) | [protected] |
Definition at line 330 of file MysqlUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().
MysqlUpdater::doIndexUpdate | ( | ) | [protected] |
Check that proper indexes are in place.
Definition at line 312 of file MysqlUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().
MysqlUpdater::doInterwikiUpdate | ( | ) | [protected] |
Check that interwiki table exists; if it doesn't source it.
Definition at line 293 of file MysqlUpdater.php.
References $IP, DatabaseUpdater\applyPatch(), DatabaseUpdater\doTable(), global, and DatabaseUpdater\output().
MysqlUpdater::doLangLinksLengthUpdate | ( | ) | [protected] |
Definition at line 881 of file MysqlUpdater.php.
References $res, DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().
MysqlUpdater::doMaybeProfilingMemoryUpdate | ( | ) | [protected] |
Definition at line 818 of file MysqlUpdater.php.
References DatabaseUpdater\applyPatch(), DatabaseUpdater\doTable(), and DatabaseUpdater\output().
MysqlUpdater::doNamespaceSize | ( | ) | [protected] |
Definition at line 529 of file MysqlUpdater.php.
References $result, array(), as, and DatabaseUpdater\output().
MysqlUpdater::doOldLinksUpdate | ( | ) | [protected] |
Definition at line 325 of file MysqlUpdater.php.
MysqlUpdater::doPagelinksUpdate | ( | ) | [protected] |
Definition at line 555 of file MysqlUpdater.php.
References $name, $wgContLang, DatabaseUpdater\applyPatch(), as, MWNamespace\getCanonicalNamespaces(), global, and DatabaseUpdater\output().
MysqlUpdater::doPageRandomUpdate | ( | ) | [protected] |
Set page_random field to a random value where it is equals to 0.
Definition at line 687 of file MysqlUpdater.php.
References $page, and DatabaseUpdater\output().
MysqlUpdater::doPopulateParentId | ( | ) | [protected] |
Definition at line 794 of file MysqlUpdater.php.
References DatabaseUpdater\output(), and DatabaseUpdater\updateRowExists().
MysqlUpdater::doRestrictionsUpdate | ( | ) | [protected] |
Adding page_restrictions table, obsoleting page.page_restrictions.
Migrating old restrictions to new table -- Andrew Garrett, January 2007.
Definition at line 756 of file MysqlUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().
Definition at line 364 of file MysqlUpdater.php.
References $page, $t, $titles, array(), as, global, list, DatabaseUpdater\output(), and wfTimestamp().
MysqlUpdater::doTemplatelinksUpdate | ( | ) | [protected] |
Definition at line 699 of file MysqlUpdater.php.
References $count, $res, DatabaseUpdater\applyPatch(), array(), as, DatabaseUpdater\output(), wfGetLB(), and wfWaitForSlaves().
MysqlUpdater::doUniquePlTlIl | ( | ) | [protected] |
Definition at line 840 of file MysqlUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().
MysqlUpdater::doUpdateMimeMinorField | ( | ) | [protected] |
Definition at line 863 of file MysqlUpdater.php.
References DatabaseUpdater\applyPatch(), DatabaseUpdater\output(), and DatabaseUpdater\updateRowExists().
MysqlUpdater::doUserGroupsUpdate | ( | ) | [protected] |
Definition at line 604 of file MysqlUpdater.php.
References $result, DatabaseUpdater\applyPatch(), array(), as, DatabaseUpdater\doTable(), and DatabaseUpdater\output().
MysqlUpdater::doUserNewTalkTimestampNotNull | ( | ) | [protected] |
Definition at line 893 of file MysqlUpdater.php.
References DatabaseUpdater\applyPatch(), DatabaseUpdater\doTable(), and DatabaseUpdater\output().
MysqlUpdater::doUserUniqueUpdate | ( | ) | [protected] |
Definition at line 587 of file MysqlUpdater.php.
References DatabaseUpdater\applyPatch(), array(), DatabaseUpdater\doTable(), and DatabaseUpdater\output().
MysqlUpdater::doWatchlistNull | ( | ) | [protected] |
Make sure wl_notificationtimestamp can be NULL, and update old broken items.
Definition at line 669 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 345 of file MysqlUpdater.php.
References array(), and DatabaseUpdater\output().
MysqlUpdater::getCoreUpdateList | ( | ) | [protected] |
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)
Reimplemented from DatabaseUpdater.
Definition at line 32 of file MysqlUpdater.php.
MysqlUpdater::indexHasField | ( | $ | table, |
$ | index, | ||
$ | field | ||
) | [protected] |
Check whether an index contain a field.
string | $table | table name |
string | $index | index name to check |
string | $field | field that should be in the index |
Definition at line 272 of file MysqlUpdater.php.
References as, DatabaseUpdater\doTable(), and DatabaseUpdater\output().
Referenced by doBacklinkingIndicesUpdate(), and doCategorylinksIndicesUpdate().
MysqlUpdater::renameEuWikiId | ( | ) | [protected] |
Definition at line 854 of file MysqlUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().