dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
resources: Collapse all jQuery UI modules into one deprecated mega-module
[lhc/web/wiklou.git]
/
maintenance
/
populatePPSortKey.php
diff --git
a/maintenance/populatePPSortKey.php
b/maintenance/populatePPSortKey.php
index
fd7974d
..
591fbd4
100644
(file)
--- a/
maintenance/populatePPSortKey.php
+++ b/
maintenance/populatePPSortKey.php
@@
-23,8
+23,6
@@
require_once __DIR__ . '/Maintenance.php';
require_once __DIR__ . '/Maintenance.php';
-use Wikimedia\Rdbms\IDatabase;
-
/**
* Usage:
* populatePPSortKey.php
/**
* Usage:
* populatePPSortKey.php
@@
-43,6
+41,7
@@
class PopulatePPSortKey extends LoggedUpdateMaintenance {
$lastPageValue = 0;
$editedRowCount = 0;
$lastPageValue = 0;
$editedRowCount = 0;
+ $this->output( "Populating page_props.pp_sortkey...\n" );
while ( true ) {
$conditions = [ 'pp_sortkey IS NULL' ];
if ( $lastPageValue !== 0 ) {
while ( true ) {
$conditions = [ 'pp_sortkey IS NULL' ];
if ( $lastPageValue !== 0 ) {
@@
-58,7
+57,7
@@
class PopulatePPSortKey extends LoggedUpdateMaintenance {
__METHOD__,
[
'ORDER BY' => 'pp_page, pp_propname',
__METHOD__,
[
'ORDER BY' => 'pp_page, pp_propname',
- 'LIMIT' => $this->
mBatchSize
+ 'LIMIT' => $this->
getBatchSize()
]
);
]
);
@@
-93,7
+92,8
@@
class PopulatePPSortKey extends LoggedUpdateMaintenance {
$lastProp = $row->pp_propname;
}
$lastProp = $row->pp_propname;
}
- $this->output( "Done!\n" );
+ $this->output( "Populating page_props.pp_sortkey complete.\n" );
+ return true;
}
protected function getUpdateKey() {
}
protected function getUpdateKey() {
@@
-101,5
+101,5
@@
class PopulatePPSortKey extends LoggedUpdateMaintenance {
}
}
}
}
-$maintClass =
'PopulatePPSortKey'
;
+$maintClass =
PopulatePPSortKey::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;