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

Public Member Functions

 doUpdates ($what=[ 'core', 'extensions', 'purge', 'stats'])
 
 purgeCache ()
 
- 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 ()
 
 doNamespaceDefaults ()
 
 doFKRenameDeferr ()
 
 doFunctions17 ()
 
 doSchemaUpgrade17 ()
 
 doInsertPage0 ()
 
 doRemoveNotNullEmptyDefaults ()
 
 doRemoveNotNullEmptyDefaults2 ()
 
 doRecentchangesFK2Cascade ()
 
 doPageRestrictionsPKUKFix ()
 
 doRebuildDuplicateFunction ()
 
- 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 ()
 

Protected Attributes

 $db
 
- Protected Attributes inherited from DatabaseUpdater
 $updates = []
 
 $updatesSkipped = []
 
 $extensionUpdates = []
 
 $db
 
 $shared = false
 
 $postDatabaseUpdateMaintenance
 
 $fileHandle = null
 
 $skipSchema = false
 
 $holdContentHandlerUseDB = true
 

Additional Inherited Members

- Static Public Member Functions inherited from DatabaseUpdater
static newForDB (&$db, $shared=false, $maintenance=null)
 
- Static Protected Attributes inherited from DatabaseUpdater
static $updateCounter = 0
 

Detailed Description

Class for handling updates to Oracle databases.

Since
1.17

Member Function Documentation

OracleUpdater::doFKRenameDeferr ( )
protected

Uniform FK names + deferrable state

OracleUpdater::doFunctions17 ( )
protected

Recreate functions to 17 schema layout

OracleUpdater::doInsertPage0 ( )
protected

Insert page (page_id = 0) to prevent FK constraint violation

OracleUpdater::doNamespaceDefaults ( )
protected

MySQL uses datatype defaults for NULL inserted into NOT NULL fields In namespace case that results into insert of 0 which is default namespace Oracle inserts NULL, so namespace fields should have a default value

OracleUpdater::doPageRestrictionsPKUKFix ( )
protected

Fixed wrong PK, UK definition

OracleUpdater::doRebuildDuplicateFunction ( )
protected

rebuilding of the function that duplicates tables for tests

OracleUpdater::doRecentchangesFK2Cascade ( )
protected

Removed forcing of invalid state on recentchanges_fk2. cascading taken in account in the deleting function

OracleUpdater::doRemoveNotNullEmptyDefaults ( )
protected

Remove DEFAULT '' NOT NULL constraints from fields as '' is internally converted to NULL in Oracle

OracleUpdater::doSchemaUpgrade17 ( )
protected

Schema upgrade 16->17 there are no incremental patches prior to this

OracleUpdater::doUpdates (   $what = [ 'core',
'extensions'  ,
'purge'  ,
'stats']   
)

Overload: after this action field info table has to be rebuilt

Parameters
array$what
OracleUpdater::purgeCache ( )

Overload: because of the DDL_MODE tablename escaping is a bit dodgy


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