X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulateRevisionLength.php;h=b73ac7f270da219b956756f6398a7a16f10ae023;hb=e7fd8db292736e7282162f4746c86423e4f15397;hp=636d63ee868a548d6c4e339839fddf294efc3696;hpb=5775d5e5c15098da4c1ebc121e678cee95ecaafa;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populateRevisionLength.php b/maintenance/populateRevisionLength.php index 636d63ee86..b73ac7f270 100644 --- a/maintenance/populateRevisionLength.php +++ b/maintenance/populateRevisionLength.php @@ -49,6 +49,7 @@ class PopulateRevisionLength extends LoggedUpdateMaintenance { $this->error( "archive table does not exist", true ); } elseif ( !$db->fieldExists( 'revision', 'rev_len', __METHOD__ ) ) { $this->output( "rev_len column does not exist\n\n", true ); + return false; } @@ -60,6 +61,7 @@ class PopulateRevisionLength extends LoggedUpdateMaintenance { $this->output( "rev_len and ar_len population complete " . "[$rev revision rows, $ar archive rows].\n" ); + return true; } @@ -76,6 +78,7 @@ class PopulateRevisionLength extends LoggedUpdateMaintenance { $end = $db->selectField( $table, "MAX($idCol)", false, __METHOD__ ); if ( !$start || !$end ) { $this->output( "...$table table seems to be empty.\n" ); + return 0; } @@ -133,6 +136,7 @@ class PopulateRevisionLength extends LoggedUpdateMaintenance { # This should not happen, but sometimes does (bug 20757) $id = $row->$idCol; $this->output( "Content of $table $id unavailable!\n" ); + return false; }