[ 'addField', 'categorylinks', 'cl_collation', 'patch-categorylinks-better-collation.sql' ],
[ 'addTable', 'module_deps', 'patch-module_deps.sql' ],
[ 'dropIndex', 'archive', 'ar_page_revid', 'patch-archive_kill_ar_page_revid.sql' ],
- [ 'addIndex', 'archive', 'ar_revid', 'patch-archive_ar_revid.sql' ],
+ [ 'addIndexIfNoneExist',
+ 'archive', [ 'ar_revid', 'ar_revid_uniq' ], 'patch-archive_ar_revid.sql' ],
// 1.18
[ 'addIndex', 'user', 'user_email', 'patch-user_email_index.sql' ],
[ 'addTable', 'user_former_groups', 'patch-user_former_groups.sql' ],
// 1.19
- [ 'addIndex', 'logging', 'type_action', 'patch-logging-type-action-index.sql' ],
[ 'doMigrateUserOptions' ],
[ 'dropField', 'user', 'user_options', 'patch-drop-user_options.sql' ],
[ 'addField', 'revision', 'rev_sha1', 'patch-rev_sha1.sql' ],
'patch-externallinks-el_index_60-drop-default.sql' ],
[ 'runMaintenance', DeduplicateArchiveRevId::class, 'maintenance/deduplicateArchiveRevId.php' ],
[ 'addField', 'change_tag', 'ct_tag_id', 'patch-change_tag-tag_id.sql' ],
+ [ 'addIndex', 'archive', 'ar_revid_uniq', 'patch-archive-ar_rev_id-unique.sql' ],
+ [ 'populateContentTables' ],
+ [ 'addIndex', 'logging', 'log_type_action', 'patch-logging-log-type-action-index.sql' ],
+ [ 'dropIndex', 'logging', 'type_action', 'patch-logging-drop-type-action-index.sql' ],
+ [ 'renameIndex', 'interwiki', 'iw_prefix', 'PRIMARY', false, 'patch-interwiki-fix-pk.sql' ],
+ [ 'renameIndex', 'page_props', 'pp_page_propname', 'PRIMARY', false,
+ 'patch-page_props-fix-pk.sql' ],
+ [ 'renameIndex', 'protected_titles', 'pt_namespace_title', 'PRIMARY', false,
+ 'patch-protected_titles-fix-pk.sql' ],
+ [ 'renameIndex', 'site_identifiers', 'site_ids_type', 'PRIMARY', false,
+ 'patch-site_identifiers-fix-pk.sql' ],
+ [ 'addIndex', 'recentchanges', 'rc_this_oldid', 'patch-recentchanges-rc_this_oldid-index.sql' ],
];
}