Viewing File: /home/omtekel/www/wp-content/upgrade/backup/mysql.tar

patch-drop_afl_log_id.sql000066600000000073151334735210011475 0ustar00ALTER TABLE /*_*/abuse_filter_log
	DROP COLUMN afl_log_id;
patch-rename-wiki-timestamp-index.sql000066600000000244151334735210013710 0ustar00ALTER 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.sql000066600000001006151334735210010673 0ustar00-- 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.sql000066600000000313151334735210011771 0ustar00DROP 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.sql000066600000000607151334735210011635 0ustar00-- 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.sql000066600000001416151334735210011300 0ustar00-- 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.sql000066600000001036151334735210011046 0ustar00-- 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.sql000066600000000252151334735210014313 0ustar00ALTER 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.sql000066600000006410151334735210010504 0ustar00-- 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.sql000066600000000227151335056720017163 0ustar00ALTER 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.sql000066600000000150151335056720017107 0ustar00-- 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.sql000066600000000230151335056720016733 0ustar00-- 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.sql000066600000000305151335056720017351 0ustar00-- 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.sql000066600000000174151335056720017513 0ustar00-- 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.sql000066600000000200151335056720016076 0ustar00-- Drop unused field notification_bundle_display_hash
ALTER TABLE /*_*/echo_notification DROP notification_bundle_display_hash;
patch-echo_push_subscription-drop-index-eps_token.sql000066600000000175151335056720017215 0ustar00-- 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.sql000066600000000242151335056720016737 0ustar00-- 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.sql000066600000000471151335114400010570 0ustar00DROP 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 File Manager