mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-12 00:38:23 +00:00
(bug 38371) Fixing SQL files for SQLite compatibility
Change-Id: Ie2ea51b854df6bc1c8d3219663a9e91ff8a91d2b
This commit is contained in:
parent
0df9424eab
commit
2fcb9e51df
|
@ -1,7 +1,7 @@
|
|||
-- SQL tables for AbuseFilter extension
|
||||
|
||||
CREATE TABLE /*$wgDBprefix*/abuse_filter (
|
||||
af_id BIGINT unsigned NOT NULL AUTO_INCREMENT,
|
||||
af_id BIGINT unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
af_pattern BLOB NOT NULL,
|
||||
af_user BIGINT unsigned NOT NULL,
|
||||
af_user_text varchar(255) binary NOT NULL,
|
||||
|
@ -28,7 +28,7 @@ CREATE TABLE /*$wgDBprefix*/abuse_filter_action (
|
|||
CREATE INDEX afa_consequence ON /*$wgDBprefix*/abuse_filter_action (afa_consequence);
|
||||
|
||||
CREATE TABLE /*$wgDBprefix*/abuse_filter_log (
|
||||
afl_id BIGINT unsigned NOT NULL AUTO_INCREMENT,
|
||||
afl_id BIGINT unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
afl_filter varchar(64) binary NOT NULL,
|
||||
afl_user BIGINT unsigned NOT NULL,
|
||||
afl_user_text varchar(255) binary NOT NULL,
|
||||
|
@ -51,7 +51,7 @@ CREATE INDEX afl_ip_timestamp ON /*$wgDBprefix*/abuse_filter_log (afl_ip, afl_ti
|
|||
CREATE INDEX afl_wiki_timestamp ON /*$wgDBprefix*/abuse_filter_log (afl_wiki, afl_timestamp);
|
||||
|
||||
CREATE TABLE /*$wgDBprefix*/abuse_filter_history (
|
||||
afh_id BIGINT unsigned NOT NULL AUTO_INCREMENT,
|
||||
afh_id BIGINT unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
afh_filter BIGINT unsigned NOT NULL,
|
||||
afh_user BIGINT unsigned NOT NULL,
|
||||
afh_user_text varchar(255) binary NOT NULL,
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
-- Store the ID of successful actions in the abuse_filter_log table.
|
||||
ALTER TABLE /*_*/abuse_filter_log
|
||||
ADD COLUMN afl_rev_id int unsigned;
|
||||
ALTER TABLE /*_*/abuse_filter_log
|
||||
ADD KEY (afl_rev_id);
|
||||
CREATE INDEX /*i*/afl_rev_id ON abuse_filter_log (afl_rev_id);
|
||||
|
||||
ALTER TABLE /*_*/abuse_filter_log
|
||||
ADD COLUMN afl_log_id int unsigned;
|
||||
ALTER TABLE /*_*/abuse_filter_log
|
||||
ADD KEY (afl_log_id);
|
||||
CREATE INDEX /*i*/afl_log_id ON abuse_filter_log (afl_log_id);
|
Loading…
Reference in a new issue