From: Amir Sarabadani Date: Mon, 13 Aug 2018 10:44:11 +0000 (+0200) Subject: Add option to populateChangeTagDef not to update the count X-Git-Tag: 1.34.0-rc.0~4426^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=3ea30167fbbcb684370eb436a017cd42cc092fad;ds=sidebyside Add option to populateChangeTagDef not to update the count I need this when I'm picking this up to continue populating Change-Id: I52c74d3c1c59ee966027d5d9cb1a2bd3cf6dfc7a --- diff --git a/maintenance/populateChangeTagDef.php b/maintenance/populateChangeTagDef.php index 707eb29f75..b06ac2b822 100644 --- a/maintenance/populateChangeTagDef.php +++ b/maintenance/populateChangeTagDef.php @@ -38,6 +38,7 @@ class PopulateChangeTagDef extends Maintenance { false, true ); + $this->addOption( 'populate-only', 'Do not update change_tag_def table' ); } public function execute() { @@ -47,7 +48,9 @@ class PopulateChangeTagDef extends Maintenance { $this->countDown( 5 ); if ( $wgChangeTagsSchemaMigrationStage < MIGRATION_NEW ) { - $this->updateCountTag(); + if ( !$this->hasOption( 'populate-only' ) ) { + $this->updateCountTag(); + } $this->backpopulateChangeTagId(); } else { $this->updateCountTagId();