http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99510

Revision: 99510
Author:   wikinaut
Date:     2011-10-11 17:52:38 +0000 (Tue, 11 Oct 2011)
Log Message:
-----------
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

Modified Paths:
--------------
    trunk/phase3/includes/installer/DatabaseUpdater.php

Modified: trunk/phase3/includes/installer/DatabaseUpdater.php
===================================================================
--- trunk/phase3/includes/installer/DatabaseUpdater.php 2011-10-11 17:49:23 UTC 
(rev 99509)
+++ trunk/phase3/includes/installer/DatabaseUpdater.php 2011-10-11 17:52:38 UTC 
(rev 99510)
@@ -432,7 +432,7 @@
         * @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 @@
         * @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 );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to