mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-27 15:30:42 +00:00
f90dc2bcc9
with MaxSem about the desired course of action. Perhaps later these can be merged back, but this seemed to be the quickest way to get AbuseFilter working with SQLite working for now.
19 lines
883 B
SQL
19 lines
883 B
SQL
-- Fixes abuse_filter_log indices.
|
|
|
|
--# PRIMARY KEY (afl_id),
|
|
--# KEY (afl_filter,afl_timestamp),
|
|
--# KEY (afl_user,afl_user_text,afl_timestamp),
|
|
--# KEY (afl_timestamp),
|
|
--# KEY (afl_namespace, afl_title, afl_timestamp),
|
|
--# KEY (afl_ip, afl_timestamp)
|
|
|
|
CREATE INDEX afl_filter_timestamp ON /*$wgDBprefix*/abuse_filter_log (afl_filter,afl_timestamp);
|
|
CREATE INDEX afl_user_timestamp ON /*$wgDBprefix*/abuse_filter_log (afl_user,afl_user_text,afl_timestamp);
|
|
CREATE INDEX afl_page_timestamp ON /*$wgDBprefix*/abuse_filter_log (afl_namespace, afl_title, afl_timestamp);
|
|
CREATE INDEX afl_ip_timestamp ON /*$wgDBprefix*/abuse_filter_log (afl_ip, afl_timestamp);
|
|
|
|
ALTER TABLE /*_*/abuse_filter_log DROP KEY afl_filter;
|
|
ALTER TABLE /*_*/abuse_filter_log DROP KEY afl_user;
|
|
ALTER TABLE /*_*/abuse_filter_log DROP KEY afl_namespace;
|
|
ALTER TABLE /*_*/abuse_filter_log DROP KEY afl_ip;
|