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
Localisation updates from https://translatewiki.net.
[lhc/web/wiklou.git]
/
maintenance
/
populateBacklinkNamespace.php
diff --git
a/maintenance/populateBacklinkNamespace.php
b/maintenance/populateBacklinkNamespace.php
index
271a3f6
..
054f792
100644
(file)
--- a/
maintenance/populateBacklinkNamespace.php
+++ b/
maintenance/populateBacklinkNamespace.php
@@
-32,6
+32,7
@@
class PopulateBacklinkNamespace extends LoggedUpdateMaintenance {
public function __construct() {
parent::__construct();
$this->mDescription = "Populate the *_from_namespace fields";
public function __construct() {
parent::__construct();
$this->mDescription = "Populate the *_from_namespace fields";
+ $this->addOption( 'lastUpdatedId', "Highest page_id with updated links", false, true );
}
protected function getUpdateKey() {
}
protected function getUpdateKey() {
@@
-49,7
+50,10
@@
class PopulateBacklinkNamespace extends LoggedUpdateMaintenance {
$this->output( "Updating *_from_namespace fields in links tables.\n" );
$this->output( "Updating *_from_namespace fields in links tables.\n" );
- $start = $db->selectField( 'page', 'MIN(page_id)', false, __METHOD__ );
+ $start = $this->getOption( 'lastUpdatedId' );
+ if ( !$start ) {
+ $start = $db->selectField( 'page', 'MIN(page_id)', false, __METHOD__ );
+ }
if ( !$start ) {
$this->output( "Nothing to do." );
return false;
if ( !$start ) {
$this->output( "Nothing to do." );
return false;