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
Add option to populateChangeTagDef not to update the count
[lhc/web/wiklou.git]
/
maintenance
/
populateChangeTagDef.php
diff --git
a/maintenance/populateChangeTagDef.php
b/maintenance/populateChangeTagDef.php
index
707eb29
..
b06ac2b
100644
(file)
--- a/
maintenance/populateChangeTagDef.php
+++ b/
maintenance/populateChangeTagDef.php
@@
-38,6
+38,7
@@
class PopulateChangeTagDef extends Maintenance {
false,
true
);
false,
true
);
+ $this->addOption( 'populate-only', 'Do not update change_tag_def table' );
}
public function execute() {
}
public function execute() {
@@
-47,7
+48,9
@@
class PopulateChangeTagDef extends Maintenance {
$this->countDown( 5 );
if ( $wgChangeTagsSchemaMigrationStage < MIGRATION_NEW ) {
$this->countDown( 5 );
if ( $wgChangeTagsSchemaMigrationStage < MIGRATION_NEW ) {
- $this->updateCountTag();
+ if ( !$this->hasOption( 'populate-only' ) ) {
+ $this->updateCountTag();
+ }
$this->backpopulateChangeTagId();
} else {
$this->updateCountTagId();
$this->backpopulateChangeTagId();
} else {
$this->updateCountTagId();