Merge "Fix SQLite syntax errors"

This commit is contained in:
jenkins-bot 2018-06-27 00:33:18 +00:00 committed by Gerrit Code Review
commit 02ca0be215

View file

@ -14,8 +14,8 @@ CREATE TABLE /*$wgDBprefix*/abuse_filter (
af_throttled tinyint(1) NOT NULL default 0,
af_deleted tinyint(1) NOT NULL DEFAULT 0,
af_actions varbinary(255) NOT NULL DEFAULT '',
af_global tinyint(1) NOT NULL DEFAULT 0
af_group varbinary(64) binary NOT NULL DEFAULT 'default'
af_global tinyint(1) NOT NULL DEFAULT 0,
af_group varbinary(64) NOT NULL DEFAULT 'default'
) /*$wgDBTableOptions*/;
CREATE INDEX af_user ON /*$wgDBprefix*/abuse_filter (af_user);
CREATE INDEX af_group_enabled ON /*$wgDBprefix*/abuse_filter (af_group,af_enabled,af_id);
@ -44,7 +44,7 @@ CREATE TABLE /*$wgDBprefix*/abuse_filter_log (
afl_wiki varbinary(64) NULL,
afl_deleted tinyint(1) NOT NULL DEFAULT 0,
afl_patrolled_by int unsigned NULL,
afl_rev_id int unsigned,
afl_rev_id int unsigned,
afl_log_id int unsigned
) /*$wgDBTableOptions*/;
CREATE INDEX afl_filter_timestamp ON /*$wgDBprefix*/abuse_filter_log (afl_filter,afl_timestamp);
@ -53,8 +53,8 @@ CREATE INDEX afl_timestamp ON /*$wgDBprefix*/abuse_filter_log (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);
CREATE INDEX afl_wiki_timestamp ON /*$wgDBprefix*/abuse_filter_log (afl_wiki, afl_timestamp);
CREATE INDEX afl_rev_id ON /*$wgDBprefix*/abuse_filter_log KEY (afl_rev_id);
CREATE INDEX afl_log_id ON /*$wgDBprefix*/abuse_filter_log KEY (afl_log_id);
CREATE INDEX afl_rev_id ON /*$wgDBprefix*/abuse_filter_log (afl_rev_id);
CREATE INDEX afl_log_id ON /*$wgDBprefix*/abuse_filter_log (afl_log_id);
CREATE TABLE /*$wgDBprefix*/abuse_filter_history (
afh_id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
@ -68,8 +68,8 @@ CREATE TABLE /*$wgDBprefix*/abuse_filter_history (
afh_public_comments TINYBLOB,
afh_actions BLOB,
afh_deleted tinyint(1) NOT NULL DEFAULT 0,
afh_changed_fields varbinary(255) NOT NULL DEFAULT ''
afh_group varchar(64) binary NULL
afh_changed_fields varbinary(255) NOT NULL DEFAULT '',
afh_group varbinary(64) NULL
) /*$wgDBTableOptions*/;
CREATE INDEX afh_filter ON /*$wgDBprefix*/abuse_filter_history (afh_filter);
CREATE INDEX afh_user ON /*$wgDBprefix*/abuse_filter_history (afh_user);