patch-drop_afl_log_id.sql 0000666 00000000073 15133473521 0011475 0 ustar 00 ALTER TABLE /*_*/abuse_filter_log
DROP COLUMN afl_log_id;
patch-rename-wiki-timestamp-index.sql 0000666 00000000244 15133473521 0013710 0 ustar 00 ALTER TABLE /*_*/abuse_filter_log DROP INDEX /*i*/wiki_timestamp;
CREATE INDEX /*i*/afl_wiki_timestamp ON /*$wgDBprefix*/abuse_filter_log (afl_wiki, afl_timestamp); patch-add-af_actor.sql 0000666 00000001006 15133473521 0010673 0 ustar 00 -- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
-- Source: db_patches/abstractSchemaChanges/patch-add-af_actor.json
-- Do not modify this file directly.
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
ALTER TABLE /*_*/abuse_filter
ADD af_actor BIGINT UNSIGNED DEFAULT 0 NOT NULL,
CHANGE af_user af_user BIGINT UNSIGNED DEFAULT 0 NOT NULL,
CHANGE af_user_text af_user_text VARBINARY(255) DEFAULT '' NOT NULL;
CREATE INDEX af_actor ON /*_*/abuse_filter (af_actor); patch-remove-afl_filter.sql 0000666 00000000313 15133473521 0011771 0 ustar 00 DROP INDEX /*i*/afl_filter_timestamp ON /*_*/abuse_filter_log;
ALTER TABLE /*_*/abuse_filter_log
DROP COLUMN afl_filter,
ALTER COLUMN afl_filter_id DROP DEFAULT,
ALTER COLUMN afl_global DROP DEFAULT;
patch-split-afl_filter.sql 0000666 00000000607 15133473521 0011635 0 ustar 00 -- Split afl_filter into afl_filter_id and afl_global
ALTER TABLE /*_*/abuse_filter_log
ADD COLUMN afl_global tinyint(1) NOT NULL DEFAULT 0 AFTER afl_filter,
ADD COLUMN afl_filter_id BIGINT unsigned NOT NULL DEFAULT 0 AFTER afl_global,
ALTER COLUMN afl_filter SET DEFAULT '';
CREATE INDEX /*i*/afl_filter_timestamp_full ON /*_*/abuse_filter_log (afl_global,afl_filter_id,afl_timestamp);
patch-rename-indexes.sql 0000666 00000001416 15133473521 0011300 0 ustar 00 -- Rename indexes with explicit names (T251613)
ALTER TABLE /*_*/abuse_filter
DROP INDEX /*i*/af_group,
ADD INDEX /*i*/af_group_enabled(af_group,af_enabled,af_id);
ALTER TABLE /*_*/abuse_filter_log
DROP INDEX /*i*/filter_timestamp_full,
DROP INDEX /*i*/user_timestamp,
DROP INDEX /*i*/page_timestamp,
DROP INDEX /*i*/ip_timestamp;
CREATE INDEX /*i*/afl_filter_timestamp_full ON /*$wgDBprefix*/abuse_filter_log (afl_global,afl_filter_id,afl_timestamp);
CREATE INDEX /*i*/afl_user_timestamp ON /*$wgDBprefix*/abuse_filter_log (afl_user,afl_user_text,afl_timestamp);
CREATE INDEX /*i*/afl_page_timestamp ON /*$wgDBprefix*/abuse_filter_log (afl_namespace, afl_title, afl_timestamp);
CREATE INDEX /*i*/afl_ip_timestamp ON /*$wgDBprefix*/abuse_filter_log (afl_ip, afl_timestamp);
patch-add-afh_actor.sql 0000666 00000001036 15133473521 0011046 0 ustar 00 -- This file is automatically generated using maintenance/generateSchemaChangeSql.php.
-- Source: db_patches/abstractSchemaChanges/patch-add-afh_actor.json
-- Do not modify this file directly.
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
ALTER TABLE /*_*/abuse_filter_history
ADD afh_actor BIGINT UNSIGNED DEFAULT 0 NOT NULL,
CHANGE afh_user afh_user BIGINT UNSIGNED DEFAULT 0 NOT NULL,
CHANGE afh_user_text afh_user_text VARBINARY(255) DEFAULT '' NOT NULL;
CREATE INDEX afh_actor ON /*_*/abuse_filter_history (afh_actor); patch-rename-filter_timestamp-index.sql 0000666 00000000252 15133473521 0014313 0 ustar 00 ALTER TABLE /*_*/abuse_filter_log DROP INDEX /*i*/filter_timestamp;
CREATE INDEX /*i*/afl_filter_timestamp ON /*$wgDBprefix*/abuse_filter_log (afl_filter,afl_timestamp);
tables-generated.sql 0000666 00000006410 15133473521 0010504 0 ustar 00 -- This file is automatically generated using maintenance/generateSchemaSql.php.
-- Source: db_patches/tables.json
-- Do not modify this file directly.
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
CREATE TABLE /*_*/abuse_filter (
af_id BIGINT UNSIGNED AUTO_INCREMENT NOT NULL,
af_pattern BLOB NOT NULL,
af_user BIGINT UNSIGNED DEFAULT 0 NOT NULL,
af_user_text VARBINARY(255) DEFAULT '' NOT NULL,
af_actor BIGINT UNSIGNED DEFAULT 0 NOT NULL,
af_timestamp BINARY(14) NOT NULL,
af_enabled TINYINT(1) DEFAULT 1 NOT NULL,
af_comments BLOB DEFAULT NULL,
af_public_comments TINYBLOB DEFAULT NULL,
af_hidden TINYINT(1) DEFAULT 0 NOT NULL,
af_hit_count BIGINT DEFAULT 0 NOT NULL,
af_throttled TINYINT(1) DEFAULT 0 NOT NULL,
af_deleted TINYINT(1) DEFAULT 0 NOT NULL,
af_actions VARCHAR(255) DEFAULT '' NOT NULL,
af_global TINYINT(1) DEFAULT 0 NOT NULL,
af_group VARBINARY(64) DEFAULT 'default' NOT NULL,
INDEX af_user (af_user),
INDEX af_actor (af_actor),
INDEX af_group_enabled (af_group, af_enabled, af_id),
PRIMARY KEY(af_id)
) /*$wgDBTableOptions*/;
CREATE TABLE /*_*/abuse_filter_action (
afa_filter BIGINT UNSIGNED NOT NULL,
afa_consequence VARCHAR(255) NOT NULL,
afa_parameters TINYBLOB NOT NULL,
INDEX afa_consequence (afa_consequence),
PRIMARY KEY(afa_filter, afa_consequence)
) /*$wgDBTableOptions*/;
CREATE TABLE /*_*/abuse_filter_log (
afl_id BIGINT UNSIGNED AUTO_INCREMENT NOT NULL,
afl_global TINYINT(1) NOT NULL,
afl_filter_id BIGINT UNSIGNED NOT NULL,
afl_user BIGINT UNSIGNED NOT NULL,
afl_user_text VARBINARY(255) NOT NULL,
afl_ip VARCHAR(255) NOT NULL,
afl_action VARBINARY(255) NOT NULL,
afl_actions VARBINARY(255) NOT NULL,
afl_var_dump BLOB NOT NULL,
afl_timestamp BINARY(14) NOT NULL,
afl_namespace INT NOT NULL,
afl_title VARBINARY(255) NOT NULL,
afl_wiki VARBINARY(64) DEFAULT NULL,
afl_deleted TINYINT(1) DEFAULT 0 NOT NULL,
afl_patrolled_by INT UNSIGNED DEFAULT 0 NOT NULL,
afl_rev_id INT UNSIGNED DEFAULT NULL,
INDEX afl_filter_timestamp_full (
afl_global, afl_filter_id, afl_timestamp
),
INDEX afl_user_timestamp (
afl_user, afl_user_text, afl_timestamp
),
INDEX afl_timestamp (afl_timestamp),
INDEX afl_page_timestamp (
afl_namespace, afl_title, afl_timestamp
),
INDEX afl_ip_timestamp (afl_ip, afl_timestamp),
INDEX afl_rev_id (afl_rev_id),
INDEX afl_wiki_timestamp (afl_wiki, afl_timestamp),
PRIMARY KEY(afl_id)
) /*$wgDBTableOptions*/;
CREATE TABLE /*_*/abuse_filter_history (
afh_id BIGINT UNSIGNED AUTO_INCREMENT NOT NULL,
afh_filter BIGINT UNSIGNED NOT NULL,
afh_user BIGINT UNSIGNED DEFAULT 0 NOT NULL,
afh_user_text VARBINARY(255) DEFAULT '' NOT NULL,
afh_actor BIGINT UNSIGNED DEFAULT 0 NOT NULL,
afh_timestamp BINARY(14) NOT NULL,
afh_pattern BLOB NOT NULL,
afh_comments BLOB NOT NULL,
afh_flags TINYBLOB NOT NULL,
afh_public_comments TINYBLOB DEFAULT NULL,
afh_actions BLOB DEFAULT NULL,
afh_deleted TINYINT(1) DEFAULT 0 NOT NULL,
afh_changed_fields VARCHAR(255) DEFAULT '' NOT NULL,
afh_group VARBINARY(64) DEFAULT NULL,
INDEX afh_filter (afh_filter),
INDEX afh_user (afh_user),
INDEX afh_user_text (afh_user_text),
INDEX afh_actor (afh_actor),
INDEX afh_timestamp (afh_timestamp),
PRIMARY KEY(afh_id)
) /*$wgDBTableOptions*/;
patch-echo_push_subscription-add-column-eps_topic.sql 0000666 00000000227 15133505672 0017163 0 ustar 00 ALTER TABLE /*_*/echo_push_subscription
ADD COLUMN eps_topic TINYINT UNSIGNED;
CREATE INDEX /*i*/eps_topic ON /*_*/echo_push_subscription (eps_topic);
patch-increase-varchar-echo_unread_wikis-euw_wiki.sql 0000666 00000000150 15133505672 0017107 0 ustar 00 -- Increase varchar size to 64
ALTER TABLE /*_*/echo_unread_wikis MODIFY euw_wiki VARCHAR(64) NOT NULL;
patch-echo_push_subscription-drop-foreign-keys_1.sql 0000666 00000000230 15133505672 0016733 0 ustar 00 -- Drop foreign keys from echo_push_subscription - T306473
ALTER TABLE /*_*/echo_push_subscription DROP FOREIGN KEY /*_*/echo_push_subscription_ibfk_1;
patch-echo_push_subscription-rename-index-eps_user.sql 0000666 00000000305 15133505672 0017351 0 ustar 00 -- Rename index to match table prefix - T306473
DROP INDEX /*i*/echo_push_subscription_user_id ON /*_*/echo_push_subscription;
CREATE INDEX /*i*/eps_user ON /*_*/echo_push_subscription (eps_user);
patch-echo_push_subscription-create-index-eps_token.sql 0000666 00000000174 15133505672 0017513 0 ustar 00 -- Rename index to match table prefix - T306473
CREATE INDEX /*i*/eps_token ON /*_*/echo_push_subscription (eps_token(10));
patch-drop-notification_bundle_display_hash.sql 0000666 00000000200 15133505672 0016076 0 ustar 00 -- Drop unused field notification_bundle_display_hash
ALTER TABLE /*_*/echo_notification DROP notification_bundle_display_hash;
patch-echo_push_subscription-drop-index-eps_token.sql 0000666 00000000175 15133505672 0017215 0 ustar 00 -- Rename index to match table prefix - T306473
DROP INDEX /*i*/echo_push_subscription_token ON /*_*/echo_push_subscription;
patch-echo_push_subscription-drop-foreign-keys_2.sql 0000666 00000000242 15133505672 0016737 0 ustar 00 -- Drop foreign keys from echo_push_subscription - T306473 / T322143
ALTER TABLE /*_*/echo_push_subscription DROP FOREIGN KEY /*_*/echo_push_subscription_ibfk_2;
patch-drop-ct_tag.sql 0000666 00000000471 15133511440 0010570 0 ustar 00 DROP INDEX change_tag_rc_tag_nonuniq ON /*_*/change_tag;
DROP INDEX change_tag_log_tag_nonuniq ON /*_*/change_tag;
DROP INDEX change_tag_rev_tag_nonuniq ON /*_*/change_tag;
DROP INDEX change_tag_tag_id ON /*_*/change_tag;
ALTER TABLE /*_*/change_tag DROP ct_tag, CHANGE ct_tag_id ct_tag_id INT UNSIGNED NOT NULL;
Back to Directory