X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpopulatePPSortKey.php;h=7e3c2c3d25126a144dc55e33a885d6569c696bef;hb=ca7466e065ddef33e0dd594dc61d18ad95c98963;hp=519c6653a92b7f82ec447dd8a51996a678dd4d99;hpb=4427b84407e03275bdb62ca58a0fde14f3dc7be6;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/populatePPSortKey.php b/maintenance/populatePPSortKey.php index 519c6653a9..7e3c2c3d25 100644 --- a/maintenance/populatePPSortKey.php +++ b/maintenance/populatePPSortKey.php @@ -43,6 +43,7 @@ class PopulatePPSortKey extends LoggedUpdateMaintenance { $lastPageValue = 0; $editedRowCount = 0; + $this->output( "Populating page_props.pp_sortkey...\n" ); while ( true ) { $conditions = [ 'pp_sortkey IS NULL' ]; if ( $lastPageValue !== 0 ) { @@ -88,12 +89,12 @@ class PopulatePPSortKey extends LoggedUpdateMaintenance { $this->commitTransaction( $dbw, __METHOD__ ); // We need to get the last element's page ID - $lastPageValue = $row->pp_value; + $lastPageValue = $row->pp_page; // And the propname... $lastProp = $row->pp_propname; } - $this->output( "Done!\n" ); + $this->output( "Populating page_props.pp_sortkey complete.\n" ); } protected function getUpdateKey() {