Without updating the change_tag table, tags will not correctly appear on
Special:RecentChanges after running the script.
Bug: T229461
Change-Id: Iff12588df1ad8d658091832e38d870dd8b75a32f
(cherry picked from commit
4c69162b95afc3dd3d7a1fa51cee207e6fe0171b)
+ $actorMigration->getInsertValues( $dbw, 'rc_user', $user ),
__METHOD__
);
+ $actorMigration->getInsertValues( $dbw, 'rc_user', $user ),
__METHOD__
);
+
+ $rcid = $dbw->insertId();
+ $dbw->update(
+ 'change_tag',
+ [ 'ct_rc_id' => $rcid ],
+ [ 'ct_rev_id' => $row->rev_id ],
+ __METHOD__
+ );
+
if ( ( ++$inserted % $this->getBatchSize() ) == 0 ) {
$lbFactory->waitForReplication();
}
if ( ( ++$inserted % $this->getBatchSize() ) == 0 ) {
$lbFactory->waitForReplication();
}
+ $rcid = $dbw->insertId();
+ $dbw->update(
+ 'change_tag',
+ [ 'ct_rc_id' => $rcid ],
+ [ 'ct_log_id' => $row->log_id ],
+ __METHOD__
+ );
+
if ( ( ++$inserted % $this->getBatchSize() ) == 0 ) {
$lbFactory->waitForReplication();
}
if ( ( ++$inserted % $this->getBatchSize() ) == 0 ) {
$lbFactory->waitForReplication();
}