chg protected to public function addIndex and dropIndex . This is i.a. needed for...
authorThomas Gries <wikinaut@users.mediawiki.org>
Tue, 11 Oct 2011 17:52:38 +0000 (17:52 +0000)
committerThomas Gries <wikinaut@users.mediawiki.org>
Tue, 11 Oct 2011 17:52:38 +0000 (17:52 +0000)
includes/installer/DatabaseUpdater.php

index b8700db..896ee6b 100644 (file)
@@ -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 );