aboutsummaryrefslogtreecommitdiffstats
path: root/includes/installer/OracleUpdater.php
diff options
context:
space:
mode:
authorJure Kajzer <freakolowsky@users.mediawiki.org>2011-11-04 11:35:10 +0000
committerJure Kajzer <freakolowsky@users.mediawiki.org>2011-11-04 11:35:10 +0000
commitd9b00fc155c86eaca595871b5b2beca69dd418bd (patch)
tree2172e7a012adfbab845a373763b2ba2ae3efd4de /includes/installer/OracleUpdater.php
parent13c8aee478cabdf2c0d6b8d9e3f5abd739400e0d (diff)
downloadmediawikicore-d9b00fc155c86eaca595871b5b2beca69dd418bd.tar.gz
mediawikicore-d9b00fc155c86eaca595871b5b2beca69dd418bd.zip
* fixed ipblocks.ipb_by_text field, removed default blank not null (fixed install&update)
* fixed Block->insert; ipblocks.ipb_id is autoincrement field (should use sequences for compatibility)
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/101976
Diffstat (limited to 'includes/installer/OracleUpdater.php')
-rw-r--r--includes/installer/OracleUpdater.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/includes/installer/OracleUpdater.php b/includes/installer/OracleUpdater.php
index 82031ad2cb1e..64188cb8440f 100644
--- a/includes/installer/OracleUpdater.php
+++ b/includes/installer/OracleUpdater.php
@@ -46,6 +46,7 @@ class OracleUpdater extends DatabaseUpdater {
array( 'addTable', 'globalinterwiki', 'patch-globalinterwiki.sql' ),
array( 'addField', 'revision', 'rev_sha1', 'patch-rev_sha1_field.sql' ),
array( 'addField', 'archive', 'ar_sha1', 'patch-ar_sha1_field.sql' ),
+ array( 'doRemoveNotNullEmptyDefaults2' ),
// till 2.0 i guess
array( 'doRebuildDuplicateFunction' ),
@@ -145,6 +146,16 @@ class OracleUpdater extends DatabaseUpdater {
$this->applyPatch( 'patch_remove_not_null_empty_defs.sql', false );
$this->output( "ok\n" );
}
+ protected function doRemoveNotNullEmptyDefaults2() {
+ $this->output( "Removing not null empty constraints ... " );
+ $meta = $this->db->fieldInfo( 'ipblocks' , 'ipb_by_text' );
+ if ( $meta->isNullable() ) {
+ $this->output( "constraints seem to be removed\n" );
+ return;
+ }
+ $this->applyPatch( 'patch_remove_not_null_empty_defs2.sql', false );
+ $this->output( "ok\n" );
+ }
/**
* rebuilding of the function that duplicates tables for tests