MediaWiki
REL1_19
|
Class for handling updates to Oracle databases. More...
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 |
Class for handling updates to Oracle databases.
Definition at line 15 of file OracleUpdater.php.
OracleUpdater::doFKRenameDeferr | ( | ) | [protected] |
Uniform FK names + deferrable state.
Definition at line 80 of file OracleUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().
OracleUpdater::doFunctions17 | ( | ) | [protected] |
Recreate functions to 17 schema layout.
Definition at line 96 of file OracleUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().
OracleUpdater::doInsertPage0 | ( | ) | [protected] |
Insert page (page_id = 0) to prevent FK constraint violation.
Definition at line 120 of file OracleUpdater.php.
References DatabaseUpdater\output().
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.
Definition at line 65 of file OracleUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().
OracleUpdater::doPageRestrictionsPKUKFix | ( | ) | [protected] |
Fixed wrong PK, UK definition.
Definition at line 184 of file OracleUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().
OracleUpdater::doRebuildDuplicateFunction | ( | ) | [protected] |
rebuilding of the function that duplicates tables for tests
Definition at line 201 of file OracleUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().
OracleUpdater::doRecentchangesFK2Cascade | ( | ) | [protected] |
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().
OracleUpdater::doRemoveNotNullEmptyDefaults | ( | ) | [protected] |
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().
OracleUpdater::doRemoveNotNullEmptyDefaults2 | ( | ) | [protected] |
Definition at line 152 of file OracleUpdater.php.
References DatabaseUpdater\applyPatch(), and DatabaseUpdater\output().
OracleUpdater::doSchemaUpgrade17 | ( | ) | [protected] |
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().
OracleUpdater::doUpdates | ( | $ | what = array( 'core', 'extensions', 'purge', 'stats' ) | ) |
Overload: after this action field info table has to be rebuilt.
$what | array |
Reimplemented from DatabaseUpdater.
Definition at line 212 of file OracleUpdater.php.
OracleUpdater::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 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().
OracleUpdater::$db [protected] |
Reimplemented from DatabaseUpdater.
Definition at line 22 of file OracleUpdater.php.