Index: trunk/phase3/includes/installer/DatabaseUpdater.php |
— | — | @@ -118,7 +118,7 @@ |
119 | 119 | * Note that callback functions will recieve this object as |
120 | 120 | * first parameter. |
121 | 121 | */ |
122 | | - public function addExtensionUpdate( $update ) { |
| 122 | + public function addExtensionUpdate( Array $update ) { |
123 | 123 | $this->extensionUpdates[] = $update; |
124 | 124 | } |
125 | 125 | |
— | — | @@ -331,7 +331,7 @@ |
332 | 332 | * @param $patch String Path to the patch file |
333 | 333 | * @param $fullpath Boolean Whether to treat $patch path as a relative or not |
334 | 334 | */ |
335 | | - function addIndex( $table, $index, $patch, $fullpath = false ) { |
| 335 | + protected function addIndex( $table, $index, $patch, $fullpath = false ) { |
336 | 336 | if ( $this->db->indexExists( $table, $index ) ) { |
337 | 337 | $this->output( "...$index key already set on $table table.\n" ); |
338 | 338 | } else { |
— | — | @@ -349,7 +349,7 @@ |
350 | 350 | * @param $patch String Path to the patch file |
351 | 351 | * @param $fullpath Boolean Whether to treat $patch path as a relative or not |
352 | 352 | */ |
353 | | - function dropField( $table, $field, $patch, $fullpath = false ) { |
| 353 | + protected function dropField( $table, $field, $patch, $fullpath = false ) { |
354 | 354 | if ( $this->db->fieldExists( $table, $field ) ) { |
355 | 355 | $this->output( "Table $table contains $field field. Dropping... " ); |
356 | 356 | $this->applyPatch( $patch, $fullpath ); |
— | — | @@ -367,7 +367,7 @@ |
368 | 368 | * @param $patch String: Path to the patch file |
369 | 369 | * @param $fullpath Boolean: Whether to treat $patch path as a relative or not |
370 | 370 | */ |
371 | | - function dropIndex( $table, $index, $patch, $fullpath = false ) { |
| 371 | + protected function dropIndex( $table, $index, $patch, $fullpath = false ) { |
372 | 372 | if ( $this->db->indexExists( $table, $index ) ) { |
373 | 373 | $this->output( "Dropping $index from table $table... " ); |
374 | 374 | $this->applyPatch( $patch, $fullpath ); |
— | — | @@ -457,7 +457,7 @@ |
458 | 458 | $this->output( "Done populating log_search table.\n" ); |
459 | 459 | } |
460 | 460 | |
461 | | - function doUpdateTranscacheField() { |
| 461 | + protected function doUpdateTranscacheField() { |
462 | 462 | if ( $this->updateRowExists( 'convert transcache field' ) ) { |
463 | 463 | $this->output( "...transcache tc_time already converted.\n" ); |
464 | 464 | return; |