From a0cc70944e8b8d0a4c37cdcdbef412506fe7ebaa Mon Sep 17 00:00:00 2001 From: Thomas Gries Date: Tue, 11 Oct 2011 17:52:38 +0000 Subject: [PATCH] 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 --- includes/installer/DatabaseUpdater.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.20.1