mw1.43-wbs1

Created Diff never expires
78 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
505 lines
101 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
528 lines
-- Adminer 4.6.3 MySQL dump
-- Adminer 4.6.3 MySQL dump


CREATE TABLE `<<prefix>>_account_credentials` (
CREATE TABLE `<<prefix>>_account_credentials` (
`acd_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`acd_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`acd_user_id` int(10) unsigned NOT NULL,
`acd_user_id` int(10) unsigned NOT NULL,
`acd_real_name` varbinary(255) NOT NULL DEFAULT '',
`acd_real_name` varbinary(255) NOT NULL DEFAULT '',
`acd_email` tinyblob NOT NULL,
`acd_email` tinyblob NOT NULL,
`acd_email_authenticated` varbinary(14) DEFAULT NULL,
`acd_email_authenticated` varbinary(14) DEFAULT NULL,
`acd_bio` mediumblob NOT NULL,
`acd_bio` mediumblob NOT NULL,
`acd_notes` mediumblob NOT NULL,
`acd_notes` mediumblob NOT NULL,
`acd_urls` mediumblob NOT NULL,
`acd_urls` mediumblob NOT NULL,
`acd_ip` varbinary(255) DEFAULT '',
`acd_ip` varbinary(255) DEFAULT '',
`acd_xff` varbinary(255) DEFAULT '',
`acd_xff` varbinary(255) DEFAULT '',
`acd_agent` varbinary(255) DEFAULT '',
`acd_agent` varbinary(255) DEFAULT '',
`acd_filename` varbinary(255) DEFAULT NULL,
`acd_filename` varbinary(255) DEFAULT NULL,
`acd_storage_key` varbinary(64) DEFAULT NULL,
`acd_storage_key` varbinary(64) DEFAULT NULL,
`acd_areas` mediumblob NOT NULL,
`acd_areas` mediumblob NOT NULL,
`acd_registration` varbinary(14) NOT NULL,
`acd_registration` varbinary(14) NOT NULL,
`acd_accepted` varbinary(14) DEFAULT NULL,
`acd_accepted` varbinary(14) DEFAULT NULL,
`acd_user` int(10) unsigned NOT NULL DEFAULT 0,
`acd_user` int(10) unsigned NOT NULL DEFAULT 0,
`acd_comment` varbinary(255) NOT NULL DEFAULT '',
`acd_comment` varbinary(255) NOT NULL DEFAULT '',
PRIMARY KEY (`acd_id`),
PRIMARY KEY (`acd_id`),
UNIQUE KEY `acd_user_id` (`acd_user_id`,`acd_id`)
UNIQUE KEY `acd_user_id` (`acd_user_id`,`acd_id`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_account_requests` (
CREATE TABLE `<<prefix>>_account_requests` (
`acr_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`acr_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`acr_name` varbinary(255) NOT NULL DEFAULT '',
`acr_name` varbinary(255) NOT NULL DEFAULT '',
`acr_real_name` varbinary(255) NOT NULL DEFAULT '',
`acr_real_name` varbinary(255) NOT NULL DEFAULT '',
`acr_email` varbinary(255) NOT NULL,
`acr_email` varbinary(255) NOT NULL,
`acr_email_authenticated` varbinary(14) DEFAULT NULL,
`acr_email_authenticated` varbinary(14) DEFAULT NULL,
`acr_email_token` binary(32) DEFAULT NULL,
`acr_email_token` binary(32) DEFAULT NULL,
`acr_email_token_expires` varbinary(14) DEFAULT NULL,
`acr_email_token_expires` varbinary(14) DEFAULT NULL,
`acr_bio` mediumblob NOT NULL,
`acr_bio` mediumblob NOT NULL,
`acr_notes` mediumblob NOT NULL,
`acr_notes` mediumblob NOT NULL,
`acr_urls` mediumblob NOT NULL,
`acr_urls` mediumblob NOT NULL,
`acr_ip` varbinary(255) DEFAULT '',
`acr_ip` varbinary(255) DEFAULT '',
`acr_xff` varbinary(255) DEFAULT '',
`acr_xff` varbinary(255) DEFAULT '',
`acr_agent` varbinary(255) DEFAULT '',
`acr_agent` varbinary(255) DEFAULT '',
`acr_filename` varbinary(255) DEFAULT NULL,
`acr_filename` varbinary(255) DEFAULT NULL,
`acr_storage_key` varbinary(64) DEFAULT NULL,
`acr_storage_key` varbinary(64) DEFAULT NULL,
`acr_type` tinyint(255) unsigned NOT NULL DEFAULT 0,
`acr_type` tinyint(255) unsigned NOT NULL DEFAULT 0,
`acr_areas` mediumblob NOT NULL,
`acr_areas` mediumblob NOT NULL,
`acr_registration` varbinary(14) NOT NULL,
`acr_registration` varbinary(14) NOT NULL,
`acr_deleted` tinyint(1) NOT NULL,
`acr_deleted` tinyint(1) NOT NULL,
`acr_rejected` varbinary(14) DEFAULT NULL,
`acr_rejected` varbinary(14) DEFAULT NULL,
`acr_held` varbinary(14) DEFAULT NULL,
`acr_held` varbinary(14) DEFAULT NULL,
`acr_user` int(10) unsigned NOT NULL DEFAULT 0,
`acr_user` int(10) unsigned NOT NULL DEFAULT 0,
`acr_comment` varbinary(255) NOT NULL DEFAULT '',
`acr_comment` varbinary(255) NOT NULL DEFAULT '',
PRIMARY KEY (`acr_id`),
PRIMARY KEY (`acr_id`),
UNIQUE KEY `acr_name` (`acr_name`),
UNIQUE KEY `acr_name` (`acr_name`),
KEY `acr_email` (`acr_email`),
KEY `acr_email` (`acr_email`),
KEY `acr_email_token` (`acr_email_token`),
KEY `acr_email_token` (`acr_email_token`),
KEY `acr_type_del_reg` (`acr_type`,`acr_deleted`,`acr_registration`)
KEY `acr_type_del_reg` (`acr_type`,`acr_deleted`,`acr_registration`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_actor` (
CREATE TABLE `<<prefix>>_actor` (
`actor_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`actor_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`actor_user` int(10) unsigned DEFAULT NULL,
`actor_user` int(10) unsigned DEFAULT NULL,
`actor_name` varbinary(255) NOT NULL,
`actor_name` varbinary(255) NOT NULL,
PRIMARY KEY (`actor_id`),
PRIMARY KEY (`actor_id`),
UNIQUE KEY `actor_name` (`actor_name`),
UNIQUE KEY `actor_name` (`actor_name`),
UNIQUE KEY `actor_user` (`actor_user`)
UNIQUE KEY `actor_user` (`actor_user`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_archive` (
CREATE TABLE `<<prefix>>_archive` (
`ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ar_namespace` int(11) NOT NULL DEFAULT 0,
`ar_namespace` int(11) NOT NULL DEFAULT 0,
`ar_title` varbinary(255) NOT NULL DEFAULT '',
`ar_title` varbinary(255) NOT NULL DEFAULT '',
`ar_comment_id` bigint(20) unsigned NOT NULL,
`ar_comment_id` bigint(20) unsigned NOT NULL,
`ar_actor` bigint(20) unsigned NOT NULL,
`ar_actor` bigint(20) unsigned NOT NULL,
`ar_timestamp` binary(14) NOT NULL,
`ar_timestamp` binary(14) NOT NULL,
`ar_minor_edit` tinyint(4) NOT NULL DEFAULT 0,
`ar_minor_edit` tinyint(4) NOT NULL DEFAULT 0,
`ar_rev_id` int(10) unsigned NOT NULL,
`ar_rev_id` int(10) unsigned NOT NULL,
`ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT 0,
`ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT 0,
`ar_len` int(10) unsigned DEFAULT NULL,
`ar_len` int(10) unsigned DEFAULT NULL,
`ar_page_id` int(10) unsigned DEFAULT NULL,
`ar_page_id` int(10) unsigned DEFAULT NULL,
`ar_parent_id` int(10) unsigned DEFAULT NULL,
`ar_parent_id` int(10) unsigned DEFAULT NULL,
`ar_sha1` varbinary(32) NOT NULL DEFAULT '',
`ar_sha1` varbinary(32) NOT NULL DEFAULT '',
PRIMARY KEY (`ar_id`),
PRIMARY KEY (`ar_id`),
UNIQUE KEY `ar_revid_uniq` (`ar_rev_id`),
UNIQUE KEY `ar_revid_uniq` (`ar_rev_id`),
KEY `ar_name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`),
KEY `ar_name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`),
KEY `ar_actor_timestamp` (`ar_actor`,`ar_timestamp`)
KEY `ar_actor_timestamp` (`ar_actor`,`ar_timestamp`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_block` (
`bl_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`bl_target` int(10) unsigned NOT NULL,
`bl_by_actor` bigint(20) unsigned NOT NULL,
`bl_reason_id` bigint(20) unsigned NOT NULL,
`bl_timestamp` binary(14) NOT NULL,
`bl_anon_only` tinyint(1) NOT NULL DEFAULT 0,
`bl_create_account` tinyint(1) NOT NULL DEFAULT 1,
`bl_enable_autoblock` tinyint(1) NOT NULL DEFAULT 1,
`bl_expiry` varbinary(14) NOT NULL,
`bl_deleted` tinyint(1) NOT NULL DEFAULT 0,
`bl_block_email` tinyint(1) NOT NULL DEFAULT 0,
`bl_allow_usertalk` tinyint(1) NOT NULL DEFAULT 0,
`bl_parent_block_id` int(10) unsigned DEFAULT NULL,
`bl_sitewide` tinyint(1) NOT NULL DEFAULT 1,
PRIMARY KEY (`bl_id`),
KEY `bl_timestamp` (`bl_timestamp`),
KEY `bl_target` (`bl_target`),
KEY `bl_expiry` (`bl_expiry`),
KEY `bl_parent_block_id` (`bl_parent_block_id`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;

CREATE TABLE `<<prefix>>_block_target` (
`bt_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`bt_address` tinyblob DEFAULT NULL,
`bt_user` int(10) unsigned DEFAULT NULL,
`bt_user_text` varbinary(255) DEFAULT NULL,
`bt_auto` tinyint(1) NOT NULL DEFAULT 0,
`bt_range_start` tinyblob DEFAULT NULL,
`bt_range_end` tinyblob DEFAULT NULL,
`bt_ip_hex` tinyblob DEFAULT NULL,
`bt_count` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`bt_id`),
KEY `bt_address` (`bt_address`(42)),
KEY `bt_ip_user_text` (`bt_ip_hex`(35),`bt_user_text`),
KEY `bt_range` (`bt_range_start`(35),`bt_range_end`(35)),
KEY `bt_user` (`bt_user`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;

CREATE TABLE `<<prefix>>_bot_passwords` (
CREATE TABLE `<<prefix>>_bot_passwords` (
`bp_user` int(10) unsigned NOT NULL,
`bp_user` int(10) unsigned NOT NULL,
`bp_app_id` varbinary(32) NOT NULL,
`bp_app_id` varbinary(32) NOT NULL,
`bp_password` tinyblob NOT NULL,
`bp_password` tinyblob NOT NULL,
`bp_token` binary(32) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0',
`bp_token` binary(32) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0',
`bp_restrictions` blob NOT NULL,
`bp_restrictions` blob NOT NULL,
`bp_grants` blob NOT NULL,
`bp_grants` blob NOT NULL,
PRIMARY KEY (`bp_user`,`bp_app_id`)
PRIMARY KEY (`bp_user`,`bp_app_id`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_category` (
CREATE TABLE `<<prefix>>_category` (
`cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`cat_title` varbinary(255) NOT NULL,
`cat_title` varbinary(255) NOT NULL,
`cat_pages` int(11) NOT NULL DEFAULT 0,
`cat_pages` int(11) NOT NULL DEFAULT 0,
`cat_subcats` int(11) NOT NULL DEFAULT 0,
`cat_subcats` int(11) NOT NULL DEFAULT 0,
`cat_files` int(11) NOT NULL DEFAULT 0,
`cat_files` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`cat_id`),
PRIMARY KEY (`cat_id`),
UNIQUE KEY `cat_title` (`cat_title`),
UNIQUE KEY `cat_title` (`cat_title`),
KEY `cat_pages` (`cat_pages`)
KEY `cat_pages` (`cat_pages`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_categorylinks` (
CREATE TABLE `<<prefix>>_categorylinks` (
`cl_from` int(10) unsigned NOT NULL DEFAULT 0,
`cl_from` int(10) unsigned NOT NULL DEFAULT 0,
`cl_to` varbinary(255) NOT NULL DEFAULT '',
`cl_to` varbinary(255) NOT NULL DEFAULT '',
`cl_sortkey` varbinary(230) NOT NULL DEFAULT '',
`cl_sortkey` varbinary(230) NOT NULL DEFAULT '',
`cl_sortkey_prefix` varbinary(255) NOT NULL DEFAULT '',
`cl_sortkey_prefix` varbinary(255) NOT NULL DEFAULT '',
`cl_timestamp` timestamp NOT NULL,
`cl_timestamp` timestamp NOT NULL,
`cl_collation` varbinary(32) NOT NULL DEFAULT '',
`cl_collation` varbinary(32) NOT NULL DEFAULT '',
`cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page',
`cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page',
PRIMARY KEY (`cl_from`,`cl_to`),
PRIMARY KEY (`cl_from`,`cl_to`),
KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`),
KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`),
KEY `cl_timestamp` (`cl_to`,`cl_timestamp`),
KEY `cl_timestamp` (`cl_to`,`cl_timestamp`)
KEY `cl_collation_ext` (`cl_collation`,`cl_to`,`cl_type`,`cl_from`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_change_tag` (
CREATE TABLE `<<prefix>>_change_tag` (
`ct_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ct_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ct_rc_id` int(10) unsigned DEFAULT NULL,
`ct_rc_id` bigint(20) unsigned DEFAULT NULL,
`ct_log_id` int(10) unsigned DEFAULT NULL,
`ct_log_id` int(10) unsigned DEFAULT NULL,
`ct_rev_id` int(10) unsigned DEFAULT NULL,
`ct_rev_id` int(10) unsigned DEFAULT NULL,
`ct_params` blob DEFAULT NULL,
`ct_params` blob DEFAULT NULL,
`ct_tag_id` int(10) unsigned NOT NULL,
`ct_tag_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`ct_id`),
PRIMARY KEY (`ct_id`),
UNIQUE KEY `ct_rc_tag_id` (`ct_rc_id`,`ct_tag_id`),
UNIQUE KEY `ct_rc_tag_id` (`ct_rc_id`,`ct_tag_id`),
UNIQUE KEY `ct_log_tag_id` (`ct_log_id`,`ct_tag_id`),
UNIQUE KEY `ct_log_tag_id` (`ct_log_id`,`ct_tag_id`),
UNIQUE KEY `ct_rev_tag_id` (`ct_rev_id`,`ct_tag_id`),
UNIQUE KEY `ct_rev_tag_id` (`ct_rev_id`,`ct_tag_id`),
KEY `ct_tag_id_id` (`ct_tag_id`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`)
KEY `ct_tag_id_id` (`ct_tag_id`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_change_tag_def` (
CREATE TABLE `<<prefix>>_change_tag_def` (
`ctd_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ctd_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ctd_name` varbinary(255) NOT NULL,
`ctd_name` varbinary(255) NOT NULL,
`ctd_user_defined` tinyint(1) NOT NULL,
`ctd_user_defined` tinyint(1) NOT NULL,
`ctd_count` bigint(20) unsigned NOT NULL DEFAULT 0,
`ctd_count` bigint(20) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`ctd_id`),
PRIMARY KEY (`ctd_id`),
UNIQUE KEY `ctd_name` (`ctd_name`),
UNIQUE KEY `ctd_name` (`ctd_name`),
KEY `ctd_count` (`ctd_count`),
KEY `ctd_count` (`ctd_count`),
KEY `ctd_user_defined` (`ctd_user_defined`)
KEY `ctd_user_defined` (`ctd_user_defined`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_comment` (
CREATE TABLE `<<prefix>>_comment` (
`comment_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`comment_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`comment_hash` int(11) NOT NULL,
`comment_hash` int(11) NOT NULL,
`comment_text` blob NOT NULL,
`comment_text` blob NOT NULL,
`comment_data` blob DEFAULT NULL,
`comment_data` blob DEFAULT NULL,
PRIMARY KEY (`comment_id`),
PRIMARY KEY (`comment_id`),
KEY `comment_hash` (`comment_hash`)
KEY `comment_hash` (`comment_hash`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_content` (
CREATE TABLE `<<prefix>>_content` (
`content_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`content_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`content_size` int(10) unsigned NOT NULL,
`content_size` int(10) unsigned NOT NULL,
`content_sha1` varbinary(32) NOT NULL,
`content_sha1` varbinary(32) NOT NULL,
`content_model` smallint(5) unsigned NOT NULL,
`content_model` smallint(5) unsigned NOT NULL,
`content_address` varbinary(255) NOT NULL,
`content_address` varbinary(255) NOT NULL,
PRIMARY KEY (`content_id`)
PRIMARY KEY (`content_id`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_content_models` (
CREATE TABLE `<<prefix>>_content_models` (
`model_id` int(11) NOT NULL AUTO_INCREMENT,
`model_id` int(11) NOT NULL AUTO_INCREMENT,
`model_name` varbinary(64) NOT NULL,
`model_name` varbinary(64) NOT NULL,
PRIMARY KEY (`model_id`),
PRIMARY KEY (`model_id`),
UNIQUE KEY `model_name` (`model_name`)
UNIQUE KEY `model_name` (`model_name`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


INSERT INTO `<<prefix>>_content_models` (`model_id`, `model_name`) VALUES
INSERT INTO `<<prefix>>_content_models` (`model_id`, `model_name`) VALUES
(1, UNHEX('77696B6974657874'));
(1, UNHEX('77696B6974657874'));


CREATE TABLE `<<prefix>>_echo_email_batch` (
CREATE TABLE `<<prefix>>_echo_email_batch` (
`eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`eeb_user_id` int(10) unsigned NOT NULL,
`eeb_user_id` int(10) unsigned NOT NULL,
`eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT 10,
`eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT 10,
`eeb_event_id` int(10) unsigned NOT NULL,
`eeb_event_id` int(10) unsigned NOT NULL,
`eeb_event_hash` varbinary(32) NOT NULL,
`eeb_event_hash` varbinary(32) NOT NULL,
PRIMARY KEY (`eeb_id`),
PRIMARY KEY (`eeb_id`),
UNIQUE KEY `echo_email_batch_user_event` (`eeb_user_id`,`eeb_event_id`),
UNIQUE KEY `echo_email_batch_user_event` (`eeb_user_id`,`eeb_event_id`),
KEY `echo_email_batch_user_hash_priority` (`eeb_user_id`,`eeb_event_hash`,`eeb_event_priority`)
KEY `echo_email_batch_user_hash_priority` (`eeb_user_id`,`eeb_event_hash`,`eeb_event_priority`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_echo_event` (
CREATE TABLE `<<prefix>>_echo_event` (
`event_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`event_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`event_type` varbinary(64) NOT NULL,
`event_type` varbinary(64) NOT NULL,
`event_variant` varbinary(64) DEFAULT NULL,
`event_variant` varbinary(64) DEFAULT NULL,
`event_agent_id` int(10) unsigned DEFAULT NULL,
`event_agent_id` int(10) unsigned DEFAULT NULL,
`event_agent_ip` varbinary(39) DEFAULT NULL,
`event_agent_ip` varbinary(39) DEFAULT NULL,
`event_extra` blob DEFAULT NULL,
`event_extra` blob DEFAULT NULL,
`event_page_id` int(10) unsigned DEFAULT NULL,
`event_page_id` int(10) unsigned DEFAULT NULL,
`event_deleted` tinyint(3) unsigned NOT NULL DEFAULT 0,
`event_deleted` tinyint(3) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`event_id`),
PRIMARY KEY (`event_id`),
KEY `echo_event_type` (`event_type`),
KEY `echo_event_type` (`event_type`),
KEY `echo_event_page_id` (`event_page_id`)
KEY `echo_event_page_id` (`event_page_id`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_echo_notification` (
CREATE TABLE `<<prefix>>_echo_notification` (
`notification_event` int(10) unsigned NOT NULL,
`notification_event` int(10) unsigned NOT NULL,
`notification_user` int(10) unsigned NOT NULL,
`notification_user` int(10) unsigned NOT NULL,
`notification_timestamp` binary(14) NOT NULL,
`notification_timestamp` binary(14) NOT NULL,
`notification_read_timestamp` binary(14) DEFAULT NULL,
`notification_read_timestamp` binary(14) DEFAULT NULL,
`notification_bundle_hash` varbinary(32) NOT NULL,
`notification_bundle_hash` varbinary(32) NOT NULL,
PRIMARY KEY (`notification_user`,`notification_event`),
PRIMARY KEY (`notification_user`,`notification_event`),
KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`),
KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`),
KEY `echo_notification_event` (`notification_event`),
KEY `echo_notification_event` (`notification_event`),
KEY `echo_notification_user_read_timestamp` (`notification_user`,`notification_read_timestamp`)
KEY `echo_notification_user_read_timestamp` (`notification_user`,`notification_read_timestamp`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_echo_push_provider` (
CREATE TABLE `<<prefix>>_echo_push_provider` (
`epp_id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`epp_id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`epp_name` tinyblob NOT NULL,
`epp_name` tinyblob NOT NULL,
PRIMARY KEY (`epp_id`)
PRIMARY KEY (`epp_id`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_echo_push_subscription` (
CREATE TABLE `<<prefix>>_echo_push_subscription` (
`eps_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`eps_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`eps_user` int(10) unsigned NOT NULL,
`eps_user` int(10) unsigned NOT NULL,
`eps_token` blob NOT NULL,
`eps_token` blob NOT NULL,
`eps_token_sha256` binary(64) NOT NULL,
`eps_token_sha256` binary(64) NOT NULL,
`eps_provider` tinyint(3) unsigned NOT NULL,
`eps_provider` tinyint(3) unsigned NOT NULL,
`eps_updated` timestamp NOT NULL,
`eps_updated` timestamp NOT NULL,
`eps_data` blob DEFAULT NULL,
`eps_data` blob DEFAULT NULL,
`eps_topic` tinyint(3) unsigned DEFAULT NULL,
`eps_topic` tinyint(3) unsigned DEFAULT NULL,
PRIMARY KEY (`eps_id`),
PRIMARY KEY (`eps_id`),
UNIQUE KEY `eps_token_sha256` (`eps_token_sha256`),
UNIQUE KEY `eps_token_sha256` (`eps_token_sha256`),
KEY `eps_provider` (`eps_provider`),
KEY `eps_provider` (`eps_provider`),
KEY `eps_topic` (`eps_topic`),
KEY `eps_topic` (`eps_topic`),
KEY `eps_user` (`eps_user`),
KEY `eps_user` (`eps_user`),
KEY `eps_token` (`eps_token`(10))
KEY `eps_token` (`eps_token`(10))
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_echo_push_topic` (
CREATE TABLE `<<prefix>>_echo_push_topic` (
`ept_id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`ept_id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`ept_text` tinyblob NOT NULL,
`ept_text` tinyblob NOT NULL,
PRIMARY KEY (`ept_id`)
PRIMARY KEY (`ept_id`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_echo_target_page` (
CREATE TABLE `<<prefix>>_echo_target_page` (
`etp_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`etp_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`etp_page` int(10) unsigned NOT NULL DEFAULT 0,
`etp_page` int(10) unsigned NOT NULL DEFAULT 0,
`etp_event` int(10) unsigned NOT NULL DEFAULT 0,
`etp_event` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`etp_id`),
PRIMARY KEY (`etp_id`),
KEY `echo_target_page_event` (`etp_event`),
KEY `echo_target_page_event` (`etp_event`),
KEY `echo_target_page_page_event` (`etp_page`,`etp_event`)
KEY `echo_target_page_page_event` (`etp_page`,`etp_event`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_echo_unread_wikis` (
CREATE TABLE `<<prefix>>_echo_unread_wikis` (
`euw_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`euw_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`euw_user` int(10) unsigned NOT NULL,
`euw_user` int(10) unsigned NOT NULL,
`euw_wiki` varbinary(64) NOT NULL,
`euw_wiki` varbinary(64) NOT NULL,
`euw_alerts` int(10) unsigned NOT NULL,
`euw_alerts` int(10) unsigned NOT NULL,
`euw_alerts_ts` binary(14) NOT NULL,
`euw_alerts_ts` binary(14) NOT NULL,
`euw_messages` int(10) unsigned NOT NULL,
`euw_messages` int(10) unsigned NOT NULL,
`euw_messages_ts` binary(14) NOT NULL,
`euw_messages_ts` binary(14) NOT NULL,
PRIMARY KEY (`euw_id`),
PRIMARY KEY (`euw_id`),
UNIQUE KEY `echo_unread_wikis_user_wiki` (`euw_user`,`euw_wiki`)
UNIQUE KEY `echo_unread_wikis_user_wiki` (`euw_user`,`euw_wiki`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_entityschema_id_counter` (
CREATE TABLE `<<prefix>>_entityschema_id_counter` (
`id_value` int(10) unsigned NOT NULL
`id_value` int(10) unsigned NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_externallinks` (
CREATE TABLE `<<prefix>>_externallinks` (
`el_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`el_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`el_from` int(10) unsigned NOT NULL DEFAULT 0,
`el_from` int(10) unsigned NOT NULL DEFAULT 0,
`el_to` blob NOT NULL,
`el_to_domain_index` varbinary(255) NOT NULL DEFAULT '',
`el_index` blob NOT NULL,
`el_to_path` blob DEFAULT NULL,
`el_index_60` varbinary(60) NOT NULL,
PRIMARY KEY (`el_id`),
PRIMARY KEY (`el_id`),
KEY `el_from` (`el_from`,`el_to`(40)),
KEY `el_from` (`el_from`),
KEY `el_to` (`el_to`(60),`el_from`),
KEY `el_to_domain_index_to_path` (`el_to_domain_index`,`el_to_path`(60))
KEY `el_index` (`el_index`(60)),
KEY `el_index_60` (`el_index_60`,`el_id`),
KEY `el_from_index_60` (`el_from`,`el_index_60`,`el_id`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_filearchive` (
CREATE TABLE `<<prefix>>_filearchive` (
`fa_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`fa_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`fa_name` varbinary(255) NOT NULL DEFAULT '',
`fa_name` varbinary(255) NOT NULL DEFAULT '',
`fa_archive_name` varbinary(255) DEFAULT '',
`fa_archive_name` varbinary(255) DEFAULT '',
`fa_storage_group` varbinary(16) DEFAULT NULL,
`fa_storage_group` varbinary(16) DEFAULT NULL,
`fa_storage_key` varbinary(64) DEFAULT '',
`fa_storage_key` varbinary(64) DEFAULT '',
`fa_deleted_user` int(11) DEFAULT NULL,
`fa_deleted_user` int(11) DEFAULT NULL,
`fa_deleted_timestamp` binary(14),
`fa_deleted_timestamp` binary(14),
`fa_deleted_reason_id` bigint(20) unsigned NOT NULL,
`fa_deleted_reason_id` bigint(20) unsigned NOT NULL,
`fa_size` int(10) unsigned DEFAULT 0,
`fa_size` bigint(20) unsigned DEFAULT 0,
`fa_width` int(11) DEFAULT 0,
`fa_width` int(11) DEFAULT 0,
`fa_height` int(11) DEFAULT 0,
`fa_height` int(11) DEFAULT 0,
`fa_metadata` mediumblob DEFAULT NULL,
`fa_metadata` mediumblob DEFAULT NULL,
`fa_bits` int(11) DEFAULT 0,
`fa_bits` int(11) DEFAULT 0,
`fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE','3D') DEFAULT NULL,
`fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE','3D') DEFAULT NULL,
`fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT 'unknown',
`fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT 'unknown',
`fa_minor_mime` varbinary(100) DEFAULT 'unknown',
`fa_minor_mime` varbinary(100) DEFAULT 'unknown',
`fa_description_id` bigint(20) unsigned NOT NULL,
`fa_description_id` bigint(20) unsigned NOT NULL,
`fa_actor` bigint(20) unsigned NOT NULL,
`fa_actor` bigint(20) unsigned NOT NULL,
`fa_timestamp` binary(14),
`fa_timestamp` binary(14),
`fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT 0,
`fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT 0,
`fa_sha1` varbinary(32) NOT NULL DEFAULT '',
`fa_sha1` varbinary(32) NOT NULL DEFAULT '',
PRIMARY KEY (`fa_id`),
PRIMARY KEY (`fa_id`),
KEY `fa_name` (`fa_name`,`fa_timestamp`),
KEY `fa_name` (`fa_name`,`fa_timestamp`),
KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`),
KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`),
KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`),
KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`),
KEY `fa_actor_timestamp` (`fa_actor`,`fa_timestamp`),
KEY `fa_actor_timestamp` (`fa_actor`,`fa_timestamp`),
KEY `fa_sha1` (`fa_sha1`(10))
KEY `fa_sha1` (`fa_sha1`(10))
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_image` (
CREATE TABLE `<<prefix>>_image` (
`img_name` varbinary(255) NOT NULL DEFAULT '',
`img_name` varbinary(255) NOT NULL DEFAULT '',
`img_size` int(10) unsigned NOT NULL DEFAULT 0,
`img_size` bigint(20) unsigned NOT NULL DEFAULT 0,
`img_width` int(11) NOT NULL DEFAULT 0,
`img_width` int(11) NOT NULL DEFAULT 0,
`img_height` int(11) NOT NULL DEFAULT 0,
`img_height` int(11) NOT NULL DEFAULT 0,
`img_metadata` mediumblob NOT NULL,
`img_metadata` mediumblob NOT NULL,
`img_bits` int(11) NOT NULL DEFAULT 0,
`img_bits` int(11) NOT NULL DEFAULT 0,
`img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE','3D') DEFAULT NULL,
`img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE','3D') DEFAULT NULL,
`img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') NOT NULL DEFAULT 'unknown',
`img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') NOT NULL DEFAULT 'unknown',
`img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown',
`img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown',
`img_description_id` bigint(20) unsigned NOT NULL,
`img_description_id` bigint(20) unsigned NOT NULL,
`img_actor` bigint(20) unsigned NOT NULL,
`img_actor` bigint(20) unsigned NOT NULL,
`img_timestamp` binary(14) NOT NULL,
`img_timestamp` binary(14) NOT NULL,
`img_sha1` varbinary(32) NOT NULL DEFAULT '',
`img_sha1` varbinary(32) NOT NULL DEFAULT '',
PRIMARY KEY (`img_name`),
PRIMARY KEY (`img_name`),
KEY `img_actor_timestamp` (`img_actor`,`img_timestamp`),
KEY `img_actor_timestamp` (`img_actor`,`img_timestamp`),
KEY `img_size` (`img_size`),
KEY `img_size` (`img_size`),
KEY `img_timestamp` (`img_timestamp`),
KEY `img_timestamp` (`img_timestamp`),
KEY `img_sha1` (`img_sha1`(10)),
KEY `img_sha1` (`img_sha1`(10)),
KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`)
KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_imagelinks` (
CREATE TABLE `<<prefix>>_imagelinks` (
`il_from` int(10) unsigned NOT NULL DEFAULT 0,
`il_from` int(10) unsigned NOT NULL DEFAULT 0,
`il_to` varbinary(255) NOT NULL DEFAULT '',
`il_to` varbinary(255) NOT NULL DEFAULT '',
`il_from_namespace` int(11) NOT NULL DEFAULT 0,
`il_from_namespace` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`il_from`,`il_to`),
PRIMARY KEY (`il_from`,`il_to`),
KEY `il_to` (`il_to`,`il_from`),
KEY `il_to` (`il_to`,`il_from`),
KEY `il_backlinks_namespace` (`il_from_namespace`,`il_to`,`il_from`)
KEY `il_backlinks_namespace` (`il_from_namespace`,`il_to`,`il_from`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_interwiki` (
CREATE TABLE `<<prefix>>_interwiki` (
`iw_prefix` varbinary(32) NOT NULL,
`iw_prefix` varbinary(32) NOT NULL,
`iw_url` blob NOT NULL,
`iw_url` blob NOT NULL,
`iw_api` blob NOT NULL,
`iw_api` blob NOT NULL,
`iw_wikiid` varbinary(64) NOT NULL,
`iw_wikiid` varbinary(64) NOT NULL,
`iw_local` tinyint(1) NOT NULL,
`iw_local` tinyint(1) NOT NULL,
`iw_trans` tinyint(4) NOT NULL DEFAULT 0,
`iw_trans` tinyint(4) NOT NULL DEFAULT 0,
PRIMARY KEY (`iw_prefix`)
PRIMARY KEY (`iw_prefix`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


INSERT INTO `<<prefix>>_interwiki` (`iw_prefix`, `iw_url`, `iw_api`, `iw_wikiid`, `iw_local`, `iw_trans`) VALUES
INSERT INTO `<<prefix>>_interwiki` (`iw_prefix`, `iw_url`, `iw_api`, `iw_wikiid`, `iw_local`, `iw_trans`) VALUES
(UNHEX('6163726F6E796D'), 'https://www.acronymfinder.com/~/search/af.aspx?string=exact&Acronym=$1', '', UNHEX(''), 0, 0),
(UNHEX('6163726F6E796D'), 'https://www.acronymfinder.com/~/search/af.aspx?string=exact&Acronym=$1', '', UNHEX(''), 0, 0),
(UNHEX('6164766F6761746F'), 'http://www.advogato.org/$1', '', UNHEX(''), 0, 0),
(UNHEX('6172786976'), 'https://www.arxiv.org/abs/$1', '', UNHEX(''), 0, 0),
(UNHEX('6172786976'), 'https://www.arxiv.org/abs/$1', '', UNHEX(''), 0, 0),
(UNHEX('633266696E64'), 'http://c2.com/cgi/wiki?FindPage&value=$1', '', UNHEX(''), 0, 0),
(UNHEX('6332'), 'https://wiki.c2.com/?$1', '', UNHEX(''), 0, 0),
(UNHEX('6361636865'), 'https://www.google.com/search?q=cache:$1', '', UNHEX(''), 0, 0),
(UNHEX('6361636865'), 'https://www.google.com/search?q=cache:$1', '', UNHEX(''), 0, 0),
(UNHEX('636F6D6D6F6E73'), 'https://commons.wikimedia.org/wiki/$1', 'https://commons.wikimedia.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('636F6D6D6F6E73'), 'https://commons.wikimedia.org/wiki/$1', 'https://commons.wikimedia.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('64696374696F6E617279'), 'http://www.dict.org/bin/Dict?Database=*&Form=Dict1&Strategy=*&Query=$1', '', UNHEX(''), 0, 0),
(UNHEX('64696374696F6E617279'), 'https://www.dict.org/bin/Dict?Database=*&Form=Dict1&Strategy=*&Query=$1', '', UNHEX(''), 0, 0),
(UNHEX('646F69'), 'https://dx.doi.org/$1', '', UNHEX(''), 0, 0),
(UNHEX('646F69'), 'https://dx.doi.org/$1', '', UNHEX(''), 0, 0),
(UNHEX('6472756D636F72707377696B69'), 'http://www.drumcorpswiki.com/$1', 'http://drumcorpswiki.com/api.php', UNHEX(''), 0, 0),
(UNHEX('64776A77696B69'), 'http://www.suberic.net/cgi-bin/dwj/wiki.cgi?$1', '', UNHEX(''), 0, 0),
(UNHEX('656C69627265'), 'http://enciclopedia.us.es/index.php/$1', 'http://enciclopedia.us.es/api.php', UNHEX(''), 0, 0),
(UNHEX('656C69627265'), 'http://enciclopedia.us.es/index.php/$1', 'http://enciclopedia.us.es/api.php', UNHEX(''), 0, 0),
(UNHEX('656D61637377696B69'), 'https://www.emacswiki.org/emacs/$1', '', UNHEX(''), 0, 0),
(UNHEX('656D61637377696B69'), 'https://www.emacswiki.org/emacs/$1', '', UNHEX(''), 0, 0),
(UNHEX('66616E646F6D'), 'https://community.fandom.com/wiki/w:c:$1', '', UNHEX(''), 0, 0),
(UNHEX('666F6C646F63'), 'https://foldoc.org/?$1', '', UNHEX(''), 0, 0),
(UNHEX('666F6C646F63'), 'https://foldoc.org/?$1', '', UNHEX(''), 0, 0),
(UNHEX('666F7877696B69'), 'https://fox.wikis.com/wc.dll?Wiki~$1', '', UNHEX(''), 0, 0),
(UNHEX('667265656273646D616E'), 'https://www.FreeBSD.org/cgi/man.cgi?apropos=1&query=$1', '', UNHEX(''), 0, 0),
(UNHEX('667265656273646D616E'), 'https://www.FreeBSD.org/cgi/man.cgi?apropos=1&query=$1', '', UNHEX(''), 0, 0),
(UNHEX('67656E746F6F2D77696B69'), 'http://gentoo-wiki.com/$1', '', UNHEX(''), 0, 0),
(UNHEX('676F6F676C65'), 'https://www.google.com/search?q=$1', '', UNHEX(''), 0, 0),
(UNHEX('676F6F676C65'), 'https://www.google.com/search?q=$1', '', UNHEX(''), 0, 0),
(UNHEX('676F6F676C6567726F757073'), 'https://groups.google.com/groups?q=$1', '', UNHEX(''), 0, 0),
(UNHEX('676F6F676C6567726F757073'), 'https://groups.google.com/groups?q=$1', '', UNHEX(''), 0, 0),
(UNHEX('68616D6D6F6E6477696B69'), 'http://www.dairiki.org/HammondWiki/$1', '', UNHEX(''), 0, 0),
(UNHEX('68616D6D6F6E6477696B69'), 'https://www.dairiki.org/HammondWiki/$1', '', UNHEX(''), 0, 0),
(UNHEX('687277696B69'), 'http://www.hrwiki.org/wiki/$1', 'http://www.hrwiki.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('687277696B69'), 'http://www.hrwiki.org/wiki/$1', 'http://www.hrwiki.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('696D6462'), 'http://www.imdb.com/find?q=$1&tt=on', '', UNHEX(''), 0, 0),
(UNHEX('696D6462'), 'https://www.imdb.com/find?q=$1&tt=on', '', UNHEX(''), 0, 0),
(UNHEX('6B6D77696B69'), 'https://kmwiki.wikispaces.com/$1', '', UNHEX(''), 0, 0),
(UNHEX('6C696E757877696B69'), 'http://linuxwiki.de/$1', '', UNHEX(''), 0, 0),
(UNHEX('6C6F6A62616E'), 'https://mw.lojban.org/papri/$1', '', UNHEX(''), 0, 0),
(UNHEX('6C6F6A62616E'), 'https://mw.lojban.org/papri/$1', '', UNHEX(''), 0, 0),
(UNHEX('6C7177696B69'), 'http://wiki.linuxquestions.org/wiki/$1', '', UNHEX(''), 0, 0),
(UNHEX('6D65617462616C6C'), 'http://meatballwiki.org/wiki/$1', '', UNHEX(''), 0, 0),
(UNHEX('6D65617462616C6C'), 'http://meatballwiki.org/wiki/$1', '', UNHEX(''), 0, 0),
(UNHEX('6D6564696177696B6977696B69'), 'https://www.mediawiki.org/wiki/$1', 'https://www.mediawiki.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('6D6564696177696B6977696B69'), 'https://www.mediawiki.org/wiki/$1', 'https://www.mediawiki.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('6D656D6F7279616C706861'), 'http://en.memory-alpha.org/wiki/$1', 'http://en.memory-alpha.org/api.php', UNHEX(''), 0, 0),
(UNHEX('6D656D6F7279616C706861'), 'https://memory-alpha.fandom.com/wiki/$1', 'https://memory-alpha.fandom.com/api.php', UNHEX(''), 0, 0),
(UNHEX('6D65746177696B69'), 'http://sunir.org/apps/meta.pl?$1', '', UNHEX(''), 0, 0),
(UNHEX('6D65746177696B696D65646961'), 'https://meta.wikimedia.org/wiki/$1', 'https://meta.wikimedia.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('6D65746177696B696D65646961'), 'https://meta.wikimedia.org/wiki/$1', 'https://meta.wikimedia.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('6D6F7A696C6C6177696B69'), 'https://wiki.mozilla.org/$1', 'https://wiki.mozilla.org/api.php', UNHEX(''), 0, 0),
(UNHEX('6D6F7A696C6C6177696B69'), 'https://wiki.mozilla.org/$1', 'https://wiki.mozilla.org/api.php', UNHEX(''), 0, 0),
(UNHEX('6D77'), 'https://www.mediawiki.org/wiki/$1', 'https://www.mediawiki.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('6D77'), 'https://www.mediawiki.org/wiki/$1', 'https://www.mediawiki.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('6F656973'), 'https://oeis.org/$1', '', UNHEX(''), 0, 0),
(UNHEX('6F656973'), 'https://oeis.org/$1', '', UNHEX(''), 0, 0),
(UNHEX('6F70656E77696B69'), 'http://openwiki.com/ow.asp?$1', '', UNHEX(''), 0, 0),
(UNHEX('706D6964'), 'https://www.ncbi.nlm.nih.gov/pubmed/$1?dopt=Abstract', '', UNHEX(''), 0, 0),
(UNHEX('706D6964'), 'https://www.ncbi.nlm.nih.gov/pubmed/$1?dopt=Abstract', '', UNHEX(''), 0, 0),
(UNHEX('707974686F6E696E666F'), 'https://wiki.python.org/moin/$1', '', UNHEX(''), 0, 0),
(UNHEX('707974686F6E696E666F'), 'https://wiki.python.org/moin/$1', '', UNHEX(''), 0, 0),
(UNHEX('726663'), 'https://tools.ietf.org/html/rfc$1', '', UNHEX(''), 0, 0),
(UNHEX('726663'), 'https://tools.ietf.org/html/rfc$1', '', UNHEX(''), 0, 0),
(UNHEX('73323377696B69'), 'http://s23.org/wiki/$1', 'http://s23.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('73656174746C65776972656C657373'), 'http://seattlewireless.net/$1', '', UNHEX(''), 0, 0),
(UNHEX('73656E736569736C696272617279'), 'https://senseis.xmp.net/?$1', '', UNHEX(''), 0, 0),
(UNHEX('73656E736569736C696272617279'), 'https://senseis.xmp.net/?$1', '', UNHEX(''), 0, 0),
(UNHEX('73686F757477696B69'), 'http://www.shoutwiki.com/wiki/$1', 'http://www.shoutwiki.com/w/api.php', UNHEX(''), 0, 0),
(UNHEX('73686F757477696B69'), 'https://www.shoutwiki.com/wiki/$1', 'https://www.shoutwiki.com/w/api.php', UNHEX(''), 0, 0),
(UNHEX('73717565616B'), 'http://wiki.squeak.org/squeak/$1', '', UNHEX(''), 0, 0),
(UNHEX('7468656F7065646961'), 'https://www.theopedia.com/$1', '', UNHEX(''), 0, 0),
(UNHEX('7468656F7065646961'), 'https://www.theopedia.com/$1', '', UNHEX(''), 0, 0),
(UNHEX('746D6277'), 'http://www.tmbw.net/wiki/$1', 'http://tmbw.net/wiki/api.php', UNHEX(''), 0, 0),
(UNHEX('746D6277'), 'https://www.tmbw.net/wiki/$1', 'https://tmbw.net/wiki/api.php', UNHEX(''), 0, 0),
(UNHEX('746D6E6574'), 'http://www.technomanifestos.net/?$1', '', UNHEX(''), 0, 0),
(UNHEX('7477696B69'), 'https://twiki.org/cgi-bin/view/$1', '', UNHEX(''), 0, 0),
(UNHEX('7477696B69'), 'http://twiki.org/cgi-bin/view/$1', '', UNHEX(''), 0, 0),
(UNHEX('756E6379636C6F7065646961'), 'https://en.uncyclopedia.co/wiki/$1', 'https://en.uncyclopedia.co/w/api.php', UNHEX(''), 0, 0),
(UNHEX('756E6379636C6F7065646961'), 'https://en.uncyclopedia.co/wiki/$1', 'https://en.uncyclopedia.co/w/api.php', UNHEX(''), 0, 0),
(UNHEX('756E7265616C'), 'https://wiki.beyondunreal.com/$1', 'https://wiki.beyondunreal.com/w/api.php', UNHEX(''), 0, 0),
(UNHEX('7573656D6F64'), 'https://www.usemod.org/cgi-bin/wiki.pl?$1', '', UNHEX(''), 0, 0),
(UNHEX('7573656D6F64'), 'http://www.usemod.com/cgi-bin/wiki.pl?$1', '', UNHEX(''), 0, 0),
(UNHEX('77696B6961'), 'https://community.fandom.com/wiki/w:c:$1', '', UNHEX(''), 0, 0),
(UNHEX('77696B69'), 'http://c2.com/cgi/wiki?$1', '', UNHEX(''), 0, 0),
(UNHEX('77696B6961'), 'http://www.wikia.com/wiki/$1', '', UNHEX(''), 0, 0),
(UNHEX('77696B69626F6F6B73'), 'https://en.wikibooks.org/wiki/$1', 'https://en.wikibooks.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B69626F6F6B73'), 'https://en.wikibooks.org/wiki/$1', 'https://en.wikibooks.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B6964617461'), 'https://www.wikidata.org/wiki/$1', 'https://www.wikidata.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B6964617461'), 'https://www.wikidata.org/wiki/$1', 'https://www.wikidata.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B696631'), 'http://www.wikif1.org/$1', '', UNHEX(''), 0, 0),
(UNHEX('77696B69686F77'), 'https://www.wikihow.com/$1', 'https://www.wikihow.com/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B69686F77'), 'https://www.wikihow.com/$1', 'https://www.wikihow.com/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B696D65646961'), 'https://foundation.wikimedia.org/wiki/$1', 'https://foundation.wikimedia.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B696D65646961'), 'https://foundation.wikimedia.org/wiki/$1', 'https://foundation.wikimedia.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B696E657773'), 'https://en.wikinews.org/wiki/$1', 'https://en.wikinews.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B696E657773'), 'https://en.wikinews.org/wiki/$1', 'https://en.wikinews.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B696E666F'), 'http://wikinfo.co/English/index.php/$1', '', UNHEX(''), 0, 0),
(UNHEX('77696B697065646961'), 'https://en.wikipedia.org/wiki/$1', 'https://en.wikipedia.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B697065646961'), 'https://en.wikipedia.org/wiki/$1', 'https://en.wikipedia.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B6971756F7465'), 'https://en.wikiquote.org/wiki/$1', 'https://en.wikiquote.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B6971756F7465'), 'https://en.wikiquote.org/wiki/$1', 'https://en.wikiquote.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B69736F75726365'), 'https://wikisource.org/wiki/$1', 'https://wikisource.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B69736F75726365'), 'https://wikisource.org/wiki/$1', 'https://wikisource.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B6973706563696573'), 'https://species.wikimedia.org/wiki/$1', 'https://species.wikimedia.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B6973706563696573'), 'https://species.wikimedia.org/wiki/$1', 'https://species.wikimedia.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B6976657273697479'), 'https://en.wikiversity.org/wiki/$1', 'https://en.wikiversity.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B6976657273697479'), 'https://en.wikiversity.org/wiki/$1', 'https://en.wikiversity.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B69766F79616765'), 'https://en.wikivoyage.org/wiki/$1', 'https://en.wikivoyage.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B69766F79616765'), 'https://en.wikivoyage.org/wiki/$1', 'https://en.wikivoyage.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B6977696B69776562'), 'http://wiki.c2.com/?$1', '', UNHEX(''), 0, 0),
(UNHEX('77696B74'), 'https://en.wiktionary.org/wiki/$1', 'https://en.wiktionary.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B74'), 'https://en.wiktionary.org/wiki/$1', 'https://en.wiktionary.org/w/api.php', UNHEX(''), 0, 0),
(UNHEX('77696B74696F6E617279'), 'https://en.wiktionary.org/wiki/$1', 'https://en.wiktionary.org/w/api.php', UNHEX(''), 0, 0);
(UNHEX('77696B74696F6E617279'), 'https://en.wiktionary.org/wiki/$1', 'https://en.wiktionary.org/w/api.php', UNHEX(''), 0, 0);


CREATE TABLE `<<prefix>>_invitesignup` (
CREATE TABLE `<<prefix>>_invitesignup` (
`is_hash` varbinary(40) NOT NULL,
`is_inviter` int(10) unsigned NOT NULL,
`is_inviter` int(10) unsigned NOT NULL,
`is_invitee` int(10) unsigned DEFAULT NULL,
`is_invitee` int(10) unsigned NOT NULL,
`is_email` varbinary(255) NOT NULL,
`is_email` varbinary(255) NOT NULL,
`is_when` varbinary(14) NOT NULL,
`is_when` binary(14) NOT NULL,
`is_used` varbinary(14) DEFAULT NULL,
`is_used` binary(14) NOT NULL,
`is_hash` varbinary(40) NOT NULL,
`is_groups` longblob NOT NULL,
`is_groups` mediumblob DEFAULT NULL,
PRIMARY KEY (`is_hash`)
PRIMARY KEY (`is_hash`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_ipblocks` (
`ipb_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ipb_address` tinyblob NOT NULL,
`ipb_user` int(10) unsigned NOT NULL DEFAULT 0,
`ipb_by_actor` bigint(20) unsigned NOT NULL,
`ipb_reason_id` bigint(20) unsigned NOT NULL,
`ipb_timestamp` binary(14) NOT NULL,
`ipb_auto` tinyint(1) NOT NULL DEFAULT 0,
`ipb_anon_only` tinyint(1) NOT NULL DEFAULT 0,
`ipb_create_account` tinyint(1) NOT NULL DEFAULT 1,
`ipb_enable_autoblock` tinyint(1) NOT NULL DEFAULT 1,
`ipb_expiry` varbinary(14) NOT NULL,
`ipb_range_start` tinyblob NOT NULL,
`ipb_range_end` tinyblob NOT NULL,
`ipb_deleted` tinyint(1) NOT NULL DEFAULT 0,
`ipb_block_email` tinyint(1) NOT NULL DEFAULT 0,
`ipb_allow_usertalk` tinyint(1) NOT NULL DEFAULT 0,
`ipb_parent_block_id` int(10) unsigned DEFAULT NULL,
`ipb_sitewide` tinyint(1) NOT NULL DEFAULT 1,
PRIMARY KEY (`ipb_id`),
UNIQUE KEY `ipb_address_unique` (`ipb_address`(255),`ipb_user`,`ipb_auto`),
KEY `ipb_user` (`ipb_user`),
KEY `ipb_range` (`ipb_range_start`(8),`ipb_range_end`(8)),
KEY `ipb_timestamp` (`ipb_timestamp`),
KEY `ipb_expiry` (`ipb_expiry`),
KEY `ipb_parent_block_id` (`ipb_parent_block_id`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;

CREATE TABLE `<<prefix>>_ipblocks_restrictions` (
CREATE TABLE `<<prefix>>_ipblocks_restrictions` (
`ir_ipb_id` int(10) unsigned NOT NULL,
`ir_ipb_id` int(10) unsigned NOT NULL,
`ir_type` tinyint(4) NOT NULL,
`ir_type` tinyint(4) NOT NULL,
`ir_value` int(10) unsigned NOT NULL,
`ir_value` int(10) unsigned NOT NULL,
PRIMARY KEY (`ir_ipb_id`,`ir_type`,`ir_value`),
PRIMARY KEY (`ir_ipb_id`,`ir_type`,`ir_value`),
KEY `ir_type_value` (`ir_type`,`ir_value`)
KEY `ir_type_value` (`ir_type`,`ir_value`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_ip_changes` (
CREATE TABLE `<<prefix>>_ip_changes` (
`ipc_rev_id` int(10) unsigned NOT NULL DEFAULT 0,
`ipc_rev_id` int(10) unsigned NOT NULL DEFAULT 0,
`ipc_rev_timestamp` binary(14) NOT NULL,
`ipc_rev_timestamp` binary(14) NOT NULL,
`ipc_hex` varbinary(35) NOT NULL DEFAULT '',
`ipc_hex` varbinary(35) NOT NULL DEFAULT '',
PRIMARY KEY (`ipc_rev_id`),
PRIMARY KEY (`ipc_rev_id`),
KEY `ipc_rev_timestamp` (`ipc_rev_timestamp`),
KEY `ipc_rev_timestamp` (`ipc_rev_timestamp`),
KEY `ipc_hex_time` (`ipc_hex`,`ipc_rev_timestamp`)
KEY `ipc_hex_time` (`ipc_hex`,`ipc_rev_timestamp`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_iwlinks` (
CREATE TABLE `<<prefix>>_iwlinks` (
`iwl_from` int(10) unsigned NOT NULL DEFAULT 0,
`iwl_from` int(10) unsigned NOT NULL DEFAULT 0,
`iwl_prefix` varbinary(32) NOT NULL DEFAULT '',
`iwl_prefix` varbinary(32) NOT NULL DEFAULT '',
`iwl_title` varbinary(255) NOT NULL DEFAULT '',
`iwl_title` varbinary(255) NOT NULL DEFAULT '',
PRIMARY KEY (`iwl_from`,`iwl_prefix`,`iwl_title`),
PRIMARY KEY (`iwl_from`,`iwl_prefix`,`iwl_title`),
KEY `iwl_prefix_title_from` (`iwl_prefix`,`iwl_title`,`iwl_from`),
KEY `iwl_prefix_title_from` (`iwl_prefix`,`iwl_title`,`iwl_from`)
KEY `iwl_prefix_from_title` (`iwl_prefix`,`iwl_from`,`iwl_title`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_job` (
CREATE TABLE `<<prefix>>_job` (
`job_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`job_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`job_cmd` varbinary(60) NOT NULL DEFAULT '',
`job_cmd` varbinary(60) NOT NULL DEFAULT '',
`job_namespace` int(11) NOT NULL,
`job_namespace` int(11) NOT NULL,
`job_title` varbinary(255) NOT NULL,
`job_title` varbinary(255) NOT NULL,
`job_timestamp` binary(14) DEFAULT NULL,
`job_timestamp` binary(14) DEFAULT NULL,
`job_params` mediumblob NOT NULL,
`job_params` mediumblob NOT NULL,
`job_random` int(10) unsigned NOT NULL DEFAULT 0,
`job_random` int(10) unsigned NOT NULL DEFAULT 0,
`job_attempts` int(10) unsigned NOT NULL DEFAULT 0,
`job_attempts` int(10) unsigned NOT NULL DEFAULT 0,
`job_token` varbinary(32) NOT NULL DEFAULT '',
`job_token` varbinary(32) NOT NULL DEFAULT '',
`job_token_timestamp` binary(14) DEFAULT NULL,
`job_token_timestamp` binary(14) DEFAULT NULL,
`job_sha1` varbinary(32) NOT NULL DEFAULT '',
`job_sha1` varbinary(32) NOT NULL DEFAULT '',
PRIMARY KEY (`job_id`),
PRIMARY KEY (`job_id`),
KEY `job_sha1` (`job_sha1`),
KEY `job_sha1` (`job_sha1`),
KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`),
KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`),
KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`),
KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`),
KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)),
KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)),
KEY `job_timestamp` (`job_timestamp`)
KEY `job_timestamp` (`job_timestamp`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;
) ENGINE=InnoDB DEFAULT CHARSET=binary;


CREATE TABLE `<<prefix>>_l10n_cache` (
CREATE TABLE `<<prefix>>_l10n_cache` (
`lc_lang` varbinary(35) NOT NULL,
`lc_lang` varbinary(35) NOT NULL,
`lc_key` varbinar
`lc_key` varbinary(255) NOT NULL,
`lc_value` mediumblob NOT NULL,
PRIMARY KEY (`lc_lang`,`lc_key`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;

CREATE TABLE `<<prefix>>_langlinks` (
`ll_from` int(10) unsigned NOT NULL DEFAULT 0,
`ll_lang` varbinary(35) NOT NULL DEFAULT '',
`ll_title` varbinary(255) NOT NULL DEFAULT '',
PRIMARY KEY (`ll_from`,`ll_lang`),
KEY `ll_lang` (`ll_lang`,`ll_title`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;

CREATE TABLE `<<prefix>>_linktarget` (
`lt_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`lt_namespace` int(11) NOT NULL,
`lt_title` varbinary(255) NOT NULL,
PRIMARY KEY (`lt_id`),
UNIQUE KEY `lt_namespace_title` (`lt_namespace`,`lt_title`)
) ENGINE=InnoDB DEFAULT CHARSET=binary;

CREATE TABLE `<<prefix>>_logging` (
`log_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`log_type` varbinary(32) NOT NULL DEFAULT '',
`log_action` varbinary(32) NOT NULL DEFAULT '',
`log_timestamp` binary(14) NOT NULL DEFAULT '19700101000000',
`log_actor` bigint(20) unsigned NOT NULL,
`log_namespace` int(11) NOT NULL DEFAULT 0,
`log_title` varbinary(255) NOT NULL DEFAULT '',
`log_page` int(10) unsigned DEFAULT NULL,
`log_comment_id` bigint(20) unsigned NOT NULL,
`log_params` blob NOT NULL,
`log_deleted` tinyint(3) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`log_id`),
KEY `log_type_time` (`log_typ