MediaWiki  REL1_19
OracleUpdater Class Reference

Class for handling updates to Oracle databases. More...

Inheritance diagram for OracleUpdater:
Collaboration diagram for OracleUpdater:

List of all members.

Public Member Functions

 doUpdates ($what=array( 'core', 'extensions', 'purge', 'stats'))
 Overload: after this action field info table has to be rebuilt.

Protected Member Functions

 doFKRenameDeferr ()
 Uniform FK names + deferrable state.
 doFunctions17 ()
 Recreate functions to 17 schema layout.
 doInsertPage0 ()
 Insert page (page_id = 0) to prevent FK constraint violation.
 doNamespaceDefaults ()
 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.
 doPageRestrictionsPKUKFix ()
 Fixed wrong PK, UK definition.
 doRebuildDuplicateFunction ()
 rebuilding of the function that duplicates tables for tests
 doRecentchangesFK2Cascade ()
 Removed forcing of invalid state on recentchanges_fk2.
 doRemoveNotNullEmptyDefaults ()
 Remove DEFAULT '' NOT NULL constraints from fields as '' is internally converted to NULL in Oracle.
 doRemoveNotNullEmptyDefaults2 ()
 doSchemaUpgrade17 ()
 Schema upgrade 16->17 there are no incremental patches prior to this.
 getCoreUpdateList ()
 Get an array of updates to perform on the database.
 purgeCache ()
 Overload: because of the DDL_MODE tablename escaping is a bit dodgy.

Protected Attributes

 $db

Detailed Description

Class for handling updates to Oracle databases.

Since:
1.17

Definition at line 15 of file OracleUpdater.php.


Member Function Documentation

Uniform FK names + deferrable state.

Definition at line 80 of file OracleUpdater.php.

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

Here is the call graph for this function:

Recreate functions to 17 schema layout.

Definition at line 96 of file OracleUpdater.php.

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

Here is the call graph for this function:

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

Definition at line 120 of file OracleUpdater.php.

References DatabaseUpdater\output().

Here is the call graph for this function:

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.

Definition at line 65 of file OracleUpdater.php.

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

Here is the call graph for this function:

Fixed wrong PK, UK definition.

Definition at line 184 of file OracleUpdater.php.

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

Here is the call graph for this function:

rebuilding of the function that duplicates tables for tests

Definition at line 201 of file OracleUpdater.php.

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

Here is the call graph for this function:

Removed forcing of invalid state on recentchanges_fk2.

cascading taken in account in the deleting function

Definition at line 167 of file OracleUpdater.php.

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

Here is the call graph for this function:

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

Definition at line 142 of file OracleUpdater.php.

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

Here is the call graph for this function:

Definition at line 152 of file OracleUpdater.php.

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

Here is the call graph for this function:

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

Definition at line 106 of file OracleUpdater.php.

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

Here is the call graph for this function:

OracleUpdater::doUpdates ( what = array( 'core', 'extensions', 'purge', 'stats' ))

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

Parameters:
$whatarray

Reimplemented from DatabaseUpdater.

Definition at line 212 of file OracleUpdater.php.

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 24 of file OracleUpdater.php.

OracleUpdater::purgeCache ( ) [protected]

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

Reimplemented from DatabaseUpdater.

Definition at line 221 of file OracleUpdater.php.

References DatabaseUpdater\output().

Here is the call graph for this function:


Member Data Documentation

OracleUpdater::$db [protected]

Reimplemented from DatabaseUpdater.

Definition at line 22 of file OracleUpdater.php.


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