From 3ea30167fbbcb684370eb436a017cd42cc092fad Mon Sep 17 00:00:00 2001 From: Amir Sarabadani Date: Mon, 13 Aug 2018 12:44:11 +0200 Subject: [PATCH] Add option to populateChangeTagDef not to update the count I need this when I'm picking this up to continue populating Change-Id: I52c74d3c1c59ee966027d5d9cb1a2bd3cf6dfc7a --- maintenance/populateChangeTagDef.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); -- 2.20.1