From 816b490939362ae30e989ca968fe96612a5cc3cc Mon Sep 17 00:00:00 2001 From: Daimona Eaytoy Date: Wed, 23 Sep 2020 10:39:19 +0000 Subject: [PATCH] Revert "Drop duplicate index wiki_timestamp" This reverts commit 6a268e733996e0d58c1974d475fb55978079f174. Reason for revert: Ic1252efe9f96743d9402fa31a7b2dca1f57ff6ae ended up not renaming the index, so this patch removed an index that was still in use. Change-Id: Ide4a600a57bcfa4da0c7354b972cc89709ccd660 --- db_patches/patch-drop-wiki_timestamp-index.sql | 3 --- includes/AbuseFilterHooks.php | 4 ---- 2 files changed, 7 deletions(-) delete mode 100644 db_patches/patch-drop-wiki_timestamp-index.sql diff --git a/db_patches/patch-drop-wiki_timestamp-index.sql b/db_patches/patch-drop-wiki_timestamp-index.sql deleted file mode 100644 index a6cffe5db..000000000 --- a/db_patches/patch-drop-wiki_timestamp-index.sql +++ /dev/null @@ -1,3 +0,0 @@ --- Drop wiki_timestamp index; it was previously created on MySQL only, it's now named afl_wiki_timestamp for uniformity - -DROP INDEX /*i*/wiki_timestamp ON /*_*/abuse_filter_log; diff --git a/includes/AbuseFilterHooks.php b/includes/AbuseFilterHooks.php index eb9db483d..eb62f2aed 100644 --- a/includes/AbuseFilterHooks.php +++ b/includes/AbuseFilterHooks.php @@ -503,10 +503,6 @@ class AbuseFilterHooks { $updater->addExtensionUpdate( [ 'addField', 'abuse_filter', 'af_group', "$dir/db_patches/patch-af_group.sql", true ] ); - $updater->dropExtensionIndex( - 'abuse_filter_log', 'wiki_timestamp', - "$dir/db_patches/patch-drop-wiki_timestamp-index.sql" - ); $updater->addExtensionIndex( 'abuse_filter_log', 'afl_wiki_timestamp', "$dir/db_patches/patch-global_logging_wiki-index.sql"