Index: trunk/phase3/includes/installer/MysqlUpdater.php |
— | — | @@ -617,13 +617,17 @@ |
618 | 618 | * @see bug 3946 |
619 | 619 | */ |
620 | 620 | protected function doPageRandomUpdate() { |
621 | | - $this->output( "Setting page_random to a random value on rows where it equals 0..." ); |
| 621 | + |
622 | 622 | |
623 | 623 | $page = $this->db->tableName( 'page' ); |
624 | 624 | $this->db->query( "UPDATE $page SET page_random = RAND() WHERE page_random = 0", __METHOD__ ); |
625 | 625 | $rows = $this->db->affectedRows(); |
626 | 626 | |
627 | | - $this->output( "changed $rows rows\n" ); |
| 627 | + if( $rows ) { |
| 628 | + $this->output( "Set page_random to a random value on $row rows where it was set to 0\n" ); |
| 629 | + } else { |
| 630 | + $this->output( "...no page_random rows needed to be set\n" ); |
| 631 | + } |
628 | 632 | } |
629 | 633 | |
630 | 634 | protected function doTemplatelinksUpdate() { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -470,6 +470,8 @@ |
471 | 471 | * (bug 10871) Javascript and CSS pages in MediaWiki namespace are no longer treated |
472 | 472 | as wikitext on preview. |
473 | 473 | * (bug 25512) Subcategory list should not include category prefix for members. |
| 474 | +* (bug 22753) Output from update.php is more clear when things changed, entries |
| 475 | + indicating nothing changed are now all prefixed by "..." |
474 | 476 | |
475 | 477 | === API changes in 1.17 === |
476 | 478 | * (bug 22738) Allow filtering by action type on query=logevent. |