BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
MysqlUpdater Class Reference
Inheritance diagram for MysqlUpdater:
Collaboration diagram for MysqlUpdater:

Public Member Functions

 doWatchlistUpdate ()
 
 doSchemaRestructuring ()
 
- Public Member Functions inherited from DatabaseUpdater
 getDB ()
 
 output ($str)
 
 addExtensionUpdate (array $update)
 
 addExtensionTable ($tableName, $sqlPath)
 
 addExtensionIndex ($tableName, $indexName, $sqlPath)
 
 addExtensionField ($tableName, $columnName, $sqlPath)
 
 dropExtensionField ($tableName, $columnName, $sqlPath)
 
 dropExtensionIndex ($tableName, $indexName, $sqlPath)
 
 dropExtensionTable ($tableName, $sqlPath)
 
 renameExtensionIndex ($tableName, $oldIndexName, $newIndexName, $sqlPath, $skipBothIndexExistWarning=false)
 
 modifyExtensionField ($tableName, $fieldName, $sqlPath)
 
 tableExists ($tableName)
 
 addPostDatabaseUpdateMaintenance ($class)
 
 getPostDatabaseUpdateMaintenance ()
 
 doUpdates ($what=[ 'core', 'extensions', 'stats'])
 
 updateRowExists ($key)
 
 insertUpdateRow ($key, $val=null)
 
 copyFile ($filename)
 
 appendLine ($line)
 
 dropTable ($table, $patch=false, $fullpath=false)
 
 modifyField ($table, $field, $patch, $fullpath=false)
 
 setFileAccess ()
 
 purgeCache ()
 

Protected Member Functions

 getCoreUpdateList ()
 
 indexHasField ($table, $index, $field)
 
 doInterwikiUpdate ()
 
 doIndexUpdate ()
 
 doOldLinksUpdate ()
 
 doFixAncientImagelinks ()
 
 doNamespaceSize ()
 
 doPagelinksUpdate ()
 
 doUserUniqueUpdate ()
 
 doUserGroupsUpdate ()
 
 doWatchlistNull ()
 
 doPageRandomUpdate ()
 
 doTemplatelinksUpdate ()
 
 doBacklinkingIndicesUpdate ()
 
 doRestrictionsUpdate ()
 
 doCategorylinksIndicesUpdate ()
 
 doCategoryPopulation ()
 
 doPopulateParentId ()
 
 doMaybeProfilingMemoryUpdate ()
 
 doFilearchiveIndicesUpdate ()
 
 doUniquePlTlIl ()
 
 doUpdateMimeMinorField ()
 
 doClFieldsUpdate ()
 
 doLangLinksLengthUpdate ()
 
 doUserNewTalkTimestampNotNull ()
 
 doIwlinksIndexNonUnique ()
 
 doUserNewTalkUseridUnsigned ()
 
- Protected Member Functions inherited from DatabaseUpdater
 __construct (DatabaseBase &$db, $shared, Maintenance $maintenance=null)
 
 getExtensionUpdates ()
 
 setAppliedUpdates ($version, $updates=[])
 
 canUseNewUpdatelog ()
 
 doTable ($name)
 
 getOldGlobalUpdates ()
 
 getCoreUpdateList ()
 
 applyPatch ($path, $isFullPath=false, $msg=null)
 
 addTable ($name, $patch, $fullpath=false)
 
 addField ($table, $field, $patch, $fullpath=false)
 
 addIndex ($table, $index, $patch, $fullpath=false)
 
 dropField ($table, $field, $patch, $fullpath=false)
 
 dropIndex ($table, $index, $patch, $fullpath=false)
 
 renameIndex ($table, $oldIndex, $newIndex, $skipBothIndexExistWarning, $patch, $fullpath=false)
 
 checkStats ()
 
 doActiveUsersInit ()
 
 doLogUsertextPopulation ()
 
 doLogSearchPopulation ()
 
 doUpdateTranscacheField ()
 
 doCollationUpdate ()
 
 doMigrateUserOptions ()
 
 doEnableProfiling ()
 
 disableContentHandlerUseDB ()
 
 enableContentHandlerUseDB ()
 

Additional Inherited Members

- Static Public Member Functions inherited from DatabaseUpdater
static newForDB (&$db, $shared=false, $maintenance=null)
 
- Protected Attributes inherited from DatabaseUpdater
 $updates = []
 
 $updatesSkipped = []
 
 $extensionUpdates = []
 
 $db
 
 $shared = false
 
 $postDatabaseUpdateMaintenance
 
 $fileHandle = null
 
 $skipSchema = false
 
 $holdContentHandlerUseDB = true
 
- Static Protected Attributes inherited from DatabaseUpdater
static $updateCounter = 0
 

Detailed Description

Mysql update list and mysql-specific update functions.

Since
1.17

Member Function Documentation

MysqlUpdater::doIndexUpdate ( )
protected

Check that proper indexes are in place

MysqlUpdater::doInterwikiUpdate ( )
protected

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

MysqlUpdater::doPageRandomUpdate ( )
protected

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

See Also
bug 3946
MysqlUpdater::doRestrictionsUpdate ( )
protected

Adding page_restrictions table, obsoleting page.page_restrictions. Migrating old restrictions to new table – Andrew Garrett, January 2007.

MysqlUpdater::doWatchlistNull ( )
protected

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

MysqlUpdater::doWatchlistUpdate ( )

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

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

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