From: Thomas Gries Date: Tue, 11 Oct 2011 17:52:38 +0000 (+0000) Subject: chg protected to public function addIndex and dropIndex . This is i.a. needed for... X-Git-Tag: 1.31.0-rc.0~27144 X-Git-Url: http://git.heureux-cyclage.org/?a=commitdiff_plain;ds=sidebyside;h=a0cc70944e8b8d0a4c37cdcdbef412506fe7ebaa;p=lhc%2Fweb%2Fwiklou.git chg protected to public function addIndex and dropIndex . This is i.a. needed for schema updating in OpenID extension in conformity with contemporary updater routines, see comments on rev97447 --- diff --git a/includes/installer/DatabaseUpdater.php b/includes/installer/DatabaseUpdater.php index b8700dbf46..896ee6b503 100644 --- a/includes/installer/DatabaseUpdater.php +++ b/includes/installer/DatabaseUpdater.php @@ -432,7 +432,7 @@ abstract class DatabaseUpdater { * @param $patch String Path to the patch file * @param $fullpath Boolean Whether to treat $patch path as a relative or not */ - protected function addIndex( $table, $index, $patch, $fullpath = false ) { + public function addIndex( $table, $index, $patch, $fullpath = false ) { if ( $this->db->indexExists( $table, $index ) ) { $this->output( "...$index key already set on $table table.\n" ); } else { @@ -468,7 +468,7 @@ abstract class DatabaseUpdater { * @param $patch String: Path to the patch file * @param $fullpath Boolean: Whether to treat $patch path as a relative or not */ - protected function dropIndex( $table, $index, $patch, $fullpath = false ) { + public function dropIndex( $table, $index, $patch, $fullpath = false ) { if ( $this->db->indexExists( $table, $index ) ) { $this->output( "Dropping $index from table $table... " ); $this->applyPatch( $patch, $fullpath );