Index: trunk/phase3/includes/installer/DatabaseUpdater.php |
— | — | @@ -191,7 +191,7 @@ |
192 | 192 | public function addExtensionField( $tableName, $columnName, $sqlPath ) { |
193 | 193 | $this->extensionUpdates[] = array( 'addField', $tableName, $columnName, $sqlPath, true ); |
194 | 194 | } |
195 | | - |
| 195 | + |
196 | 196 | /** |
197 | 197 | * Add a maintenance script to be run after the database updates are complete |
198 | 198 | * @param $class string Name of a Maintenance subclass |
— | — | @@ -558,6 +558,9 @@ |
559 | 559 | |
560 | 560 | # Common updater functions |
561 | 561 | |
| 562 | + /** |
| 563 | + * Sets the number of active users in the site_stats table |
| 564 | + */ |
562 | 565 | protected function doActiveUsersInit() { |
563 | 566 | $activeUsers = $this->db->selectField( 'site_stats', 'ss_active_users', false, __METHOD__ ); |
564 | 567 | if ( $activeUsers == -1 ) { |
— | — | @@ -573,6 +576,9 @@ |
574 | 577 | $this->output( "...ss_active_users user count set...\n" ); |
575 | 578 | } |
576 | 579 | |
| 580 | + /** |
| 581 | + * Populates the log_user_text field in the logging table |
| 582 | + */ |
577 | 583 | protected function doLogUsertextPopulation() { |
578 | 584 | if ( !$this->updateRowExists( 'populate log_usertext' ) ) { |
579 | 585 | $this->output( |
— | — | @@ -582,10 +588,12 @@ |
583 | 589 | |
584 | 590 | $task = $this->maintenance->runChild( 'PopulateLogUsertext' ); |
585 | 591 | $task->execute(); |
586 | | - $this->insertUpdateRow( 'populate log_usertext' ); |
587 | 592 | } |
588 | 593 | } |
589 | 594 | |
| 595 | + /** |
| 596 | + * Migrate log params to new table and index for searching |
| 597 | + */ |
590 | 598 | protected function doLogSearchPopulation() { |
591 | 599 | if ( !$this->updateRowExists( 'populate log_search' ) ) { |
592 | 600 | $this->output( |
— | — | @@ -595,10 +603,12 @@ |
596 | 604 | |
597 | 605 | $task = $this->maintenance->runChild( 'PopulateLogSearch' ); |
598 | 606 | $task->execute(); |
599 | | - $this->insertUpdateRow( 'populate log_search' ); |
600 | 607 | } |
601 | 608 | } |
602 | 609 | |
| 610 | + /** |
| 611 | + * Updates the timestamps in the transcache table |
| 612 | + */ |
603 | 613 | protected function doUpdateTranscacheField() { |
604 | 614 | if ( $this->updateRowExists( 'convert transcache field' ) ) { |
605 | 615 | $this->output( "...transcache tc_time already converted.\n" ); |
— | — | @@ -610,6 +620,9 @@ |
611 | 621 | $this->output( "ok\n" ); |
612 | 622 | } |
613 | 623 | |
| 624 | + /** |
| 625 | + * Update CategoryLinks collation |
| 626 | + */ |
614 | 627 | protected function doCollationUpdate() { |
615 | 628 | global $wgCategoryCollation; |
616 | 629 | if ( $this->db->selectField( |
— | — | @@ -626,6 +639,9 @@ |
627 | 640 | $task->execute(); |
628 | 641 | } |
629 | 642 | |
| 643 | + /** |
| 644 | + * Migrates user options from the user table blob to user_properties |
| 645 | + */ |
630 | 646 | protected function doMigrateUserOptions() { |
631 | 647 | $cl = $this->maintenance->runChild( 'ConvertUserOptions', 'convertUserOptions.php' ); |
632 | 648 | $this->output( "Migrating remaining user_options... " ); |
— | — | @@ -633,6 +649,9 @@ |
634 | 650 | $this->output( "done.\n" ); |
635 | 651 | } |
636 | 652 | |
| 653 | + /** |
| 654 | + * Rebuilds the localisation cache |
| 655 | + */ |
637 | 656 | protected function doRebuildLocalisationCache() { |
638 | 657 | /** |
639 | 658 | * @var $cl RebuildLocalisationCache |
Index: trunk/phase3/includes/installer/MysqlUpdater.php |
— | — | @@ -758,7 +758,6 @@ |
759 | 759 | |
760 | 760 | $task = $this->maintenance->runChild( 'PopulateParentId' ); |
761 | 761 | $task->execute(); |
762 | | - $this->insertUpdateRow( 'populate rev_parent_id' ); |
763 | 762 | } |
764 | 763 | } |
765 | 764 | |