Deduplicate archive.ar_rev_id
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 27 Apr 2018 17:10:36 +0000 (13:10 -0400)
committerGergő Tisza <tgr.huwiki@gmail.com>
Wed, 16 May 2018 12:34:11 +0000 (14:34 +0200)
commit1c7bf1baf01d77d83a6d064a29a690c2dd9ec49d
tree3021b40a40c6097b5f76c89a31e3dffc0c542ef1
parentbbe9917203f9df83994785943d724fa28f5133bd
Deduplicate archive.ar_rev_id

Old bugs and such may have left the archive table with multiple rows
using the same ar_rev_id, or rows that also exist in the revision table.
These need to be cleaned up for MCR.

The maintenance script added here will delete rows that appear to be
duplicates of the same change, and will assign new IDs to rows that do
not appear to be duplicates.

Bug: T193180
Change-Id: I39b0825c9469e074ded3df33a4f06a1ef0edb494
autoload.php
includes/installer/DatabaseUpdater.php
includes/installer/MssqlUpdater.php
includes/installer/MysqlUpdater.php
includes/installer/OracleUpdater.php
includes/installer/PostgresUpdater.php
includes/installer/SqliteUpdater.php
maintenance/deduplicateArchiveRevId.php [new file with mode: 0644]
maintenance/populateArchiveRevId.php