diff --git a/DeveloperDump/cawikitolearn.struct.sql b/DeveloperDump/cawikitolearn.struct.sql index cd9504d..daa02f6 100644 --- a/DeveloperDump/cawikitolearn.struct.sql +++ b/DeveloperDump/cawikitolearn.struct.sql @@ -1,1178 +1,1380 @@ - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; -/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; -/*!40103 SET TIME_ZONE='+00:00' */; -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `archive` ( - `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `ar_namespace` int(11) NOT NULL DEFAULT '0', - `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ar_text` mediumblob NOT NULL, - `ar_comment` varbinary(767) NOT NULL, - `ar_user` int(10) unsigned NOT NULL DEFAULT '0', - `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', - `ar_flags` tinyblob NOT NULL, - `ar_rev_id` int(10) unsigned DEFAULT NULL, - `ar_text_id` int(10) unsigned DEFAULT NULL, - `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `ar_len` int(10) unsigned DEFAULT NULL, - `ar_page_id` int(10) unsigned DEFAULT NULL, - `ar_parent_id` int(10) unsigned DEFAULT NULL, - `ar_sha1` varbinary(32) NOT NULL DEFAULT '', - `ar_content_model` varbinary(32) DEFAULT NULL, - `ar_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`ar_id`), - KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), - KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), - KEY `ar_revid` (`ar_rev_id`), - KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `category` ( - `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `cat_pages` int(11) NOT NULL DEFAULT '0', - `cat_subcats` int(11) NOT NULL DEFAULT '0', - `cat_files` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`cat_id`), - UNIQUE KEY `cat_title` (`cat_title`), - KEY `cat_pages` (`cat_pages`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `categorylinks` ( - `cl_from` int(10) unsigned NOT NULL DEFAULT '0', - `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', - `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `cl_collation` varbinary(32) NOT NULL DEFAULT '', - `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', - UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), - KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), - KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), - KEY `cl_collation` (`cl_collation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `change_tag` ( - `ct_rc_id` int(11) DEFAULT NULL, - `ct_log_id` int(11) DEFAULT NULL, - `ct_rev_id` int(11) DEFAULT NULL, - `ct_tag` varchar(255) NOT NULL, - `ct_params` blob, - UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), - UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), - UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), - KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_email_batch` ( - `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `eeb_user_id` int(10) unsigned NOT NULL, - `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', - `eeb_event_id` int(10) unsigned NOT NULL, - `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - PRIMARY KEY (`eeb_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`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_event` ( - `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_agent_id` int(10) unsigned DEFAULT NULL, - `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_page_namespace` int(10) unsigned DEFAULT NULL, - `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_extra` blob, - `event_page_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`event_id`), - KEY `echo_event_type` (`event_type`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_notification` ( - `notification_event` int(10) unsigned NOT NULL, - `notification_user` int(10) unsigned NOT NULL, - `notification_timestamp` binary(14) NOT NULL, - `notification_read_timestamp` binary(14) DEFAULT NULL, - `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', - `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `user_event` (`notification_user`,`notification_event`), - KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), - KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), - KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), - KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), - KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_target_page` ( - `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`etp_id`), - KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), - KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `externallinks` ( - `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `el_from` int(10) unsigned NOT NULL DEFAULT '0', - `el_to` blob NOT NULL, - `el_index` blob NOT NULL, - PRIMARY KEY (`el_id`), - KEY `el_from` (`el_from`,`el_to`(40)), - KEY `el_to` (`el_to`(60),`el_from`), - KEY `el_index` (`el_index`(60)) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `filearchive` ( - `fa_id` int(11) NOT NULL AUTO_INCREMENT, - `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', - `fa_storage_group` varbinary(16) DEFAULT NULL, - `fa_storage_key` varbinary(64) DEFAULT '', - `fa_deleted_user` int(11) DEFAULT NULL, - `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted_reason` varbinary(767) DEFAULT '', - `fa_size` int(10) unsigned DEFAULT '0', - `fa_width` int(11) DEFAULT '0', - `fa_height` int(11) DEFAULT '0', - `fa_metadata` mediumblob, - `fa_bits` int(11) DEFAULT '0', - `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `fa_minor_mime` varbinary(100) DEFAULT 'unknown', - `fa_description` varbinary(767) DEFAULT NULL, - `fa_user` int(10) unsigned DEFAULT '0', - `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `fa_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fa_id`), - KEY `fa_name` (`fa_name`,`fa_timestamp`), - KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), - KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), - KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), - KEY `fa_sha1` (`fa_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedimages` ( - `fi_rev_id` int(10) unsigned NOT NULL, - `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fi_img_timestamp` varbinary(14) DEFAULT NULL, - `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fi_rev_id`,`fi_name`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( - `fpc_page_id` int(10) unsigned NOT NULL, - `fpc_select` int(11) NOT NULL, - `fpc_override` tinyint(1) NOT NULL, - `fpc_level` varbinary(60) DEFAULT NULL, - `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', - PRIMARY KEY (`fpc_page_id`), - KEY `fpc_expiry` (`fpc_expiry`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( - `fpp_page_id` int(10) unsigned NOT NULL, - `fpp_quality` tinyint(1) NOT NULL, - `fpp_rev_id` int(10) unsigned NOT NULL, - `fpp_pending_since` varbinary(14) NOT NULL, - PRIMARY KEY (`fpp_page_id`,`fpp_quality`), - KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpages` ( - `fp_page_id` int(10) unsigned NOT NULL, - `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', - `fp_pending_since` varbinary(14) DEFAULT NULL, - `fp_stable` int(10) unsigned NOT NULL, - `fp_quality` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`fp_page_id`), - KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), - KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), - KEY `fp_pending_since` (`fp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs` ( - `fr_rev_id` int(10) unsigned NOT NULL, - `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', - `fr_page_id` int(10) unsigned NOT NULL, - `fr_user` int(10) unsigned NOT NULL, - `fr_timestamp` varbinary(14) NOT NULL, - `fr_quality` tinyint(1) NOT NULL DEFAULT '0', - `fr_tags` mediumblob NOT NULL, - `fr_flags` tinyblob NOT NULL, - `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fr_img_timestamp` varbinary(14) DEFAULT NULL, - `fr_img_sha1` varbinary(32) DEFAULT NULL, - PRIMARY KEY (`fr_rev_id`), - KEY `page_rev` (`fr_page_id`,`fr_rev_id`), - KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), - KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), - KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), - KEY `fr_img_sha1` (`fr_img_sha1`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( - `frp_user_id` int(10) unsigned NOT NULL, - `frp_user_params` mediumblob NOT NULL, - PRIMARY KEY (`frp_user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( - `frs_timestamp` varbinary(14) NOT NULL, - `frs_stat_key` varchar(255) NOT NULL, - `frs_stat_val` bigint(20) NOT NULL, - PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), - KEY `frs_timestamp` (`frs_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( - `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', - `ftr_namespace` int(11) NOT NULL DEFAULT '0', - `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), - KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( - `ft_rev_id` int(10) unsigned NOT NULL, - `ft_namespace` int(11) NOT NULL DEFAULT '0', - `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_revision` ( - `rev_id` binary(11) NOT NULL, - `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', - `rev_user_id` bigint(20) unsigned NOT NULL, - `rev_user_ip` varbinary(39) DEFAULT NULL, - `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_parent_id` binary(11) DEFAULT NULL, - `rev_flags` tinyblob NOT NULL, - `rev_content` mediumblob NOT NULL, - `rev_change_type` varbinary(255) DEFAULT NULL, - `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_mod_user_ip` varbinary(39) DEFAULT NULL, - `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_last_edit_id` binary(11) DEFAULT NULL, - `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_edit_user_ip` varbinary(39) DEFAULT NULL, - `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_content_length` int(11) NOT NULL DEFAULT '0', - `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`rev_id`), - UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), - KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), - KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_subscription` ( - `subscription_workflow_id` int(10) unsigned NOT NULL, - `subscription_user_id` bigint(20) unsigned NOT NULL, - `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), - KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_topic_list` ( - `topic_list_id` binary(11) NOT NULL, - `topic_id` binary(11) DEFAULT NULL, - UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), - KEY `flow_topic_list_topic_id` (`topic_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_node` ( - `tree_ancestor_id` binary(11) NOT NULL, - `tree_descendant_id` binary(11) NOT NULL, - `tree_depth` smallint(6) NOT NULL, - UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), - UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( - `tree_rev_descendant_id` binary(11) NOT NULL, - `tree_rev_id` binary(11) NOT NULL, - `tree_orig_user_id` bigint(20) unsigned NOT NULL, - `tree_orig_user_ip` varbinary(39) DEFAULT NULL, - `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tree_parent_id` binary(11) DEFAULT NULL, - PRIMARY KEY (`tree_rev_id`), - KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target_namespace` int(11) NOT NULL, - `ref_target_title` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_workflow` ( - `workflow_id` binary(11) NOT NULL, - `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_namespace` int(11) NOT NULL, - `workflow_page_id` int(10) unsigned NOT NULL, - `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_last_update_timestamp` binary(14) NOT NULL, - `workflow_lock_state` int(10) unsigned NOT NULL, - `workflow_type` varbinary(16) NOT NULL, - PRIMARY KEY (`workflow_id`), - KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), - KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `historical_thread` ( - `hthread_id` int(8) unsigned NOT NULL, - `hthread_revision` int(8) unsigned NOT NULL, - `hthread_contents` blob NOT NULL, - `hthread_change_type` int(4) unsigned NOT NULL, - `hthread_change_object` int(8) unsigned DEFAULT NULL, - PRIMARY KEY (`hthread_id`,`hthread_revision`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `image` ( - `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `img_size` int(10) unsigned NOT NULL DEFAULT '0', - `img_width` int(11) NOT NULL DEFAULT '0', - `img_height` int(11) NOT NULL DEFAULT '0', - `img_metadata` mediumblob NOT NULL, - `img_bits` int(11) NOT NULL DEFAULT '0', - `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `img_description` varbinary(767) NOT NULL, - `img_user` int(10) unsigned NOT NULL DEFAULT '0', - `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `img_timestamp` varbinary(14) NOT NULL DEFAULT '', - `img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`img_name`), - KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), - KEY `img_size` (`img_size`), - KEY `img_timestamp` (`img_timestamp`), - KEY `img_sha1` (`img_sha1`(10)), - KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `imagelinks` ( - `il_from` int(10) unsigned NOT NULL DEFAULT '0', - `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `il_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `il_from` (`il_from`,`il_to`), - UNIQUE KEY `il_to` (`il_to`,`il_from`), - KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `interwiki` ( - `iw_prefix` varchar(32) NOT NULL, - `iw_url` blob NOT NULL, - `iw_local` tinyint(1) NOT NULL, - `iw_trans` tinyint(4) NOT NULL DEFAULT '0', - `iw_api` blob NOT NULL, - `iw_wikiid` varchar(64) NOT NULL, - UNIQUE KEY `iw_prefix` (`iw_prefix`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ipblocks` ( - `ipb_id` int(11) NOT NULL AUTO_INCREMENT, - `ipb_address` tinyblob NOT NULL, - `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ipb_reason` varbinary(767) NOT NULL, - `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `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 DEFAULT '', - `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(11) DEFAULT NULL, - PRIMARY KEY (`ipb_id`), - UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `iwlinks` ( - `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', - `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', - `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `job` ( - `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `job_cmd` varbinary(60) NOT NULL DEFAULT '', - `job_namespace` int(11) NOT NULL, - `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `job_params` blob NOT NULL, - `job_timestamp` varbinary(14) DEFAULT NULL, - `job_random` int(10) unsigned NOT NULL DEFAULT '0', - `job_token` varbinary(32) NOT NULL DEFAULT '', - `job_token_timestamp` varbinary(14) DEFAULT NULL, - `job_sha1` varbinary(32) NOT NULL DEFAULT '', - `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', - PRIMARY KEY (`job_id`), - KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), - KEY `job_timestamp` (`job_timestamp`), - KEY `job_sha1` (`job_sha1`), - KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), - KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `l10n_cache` ( - `lc_lang` varbinary(32) NOT NULL, - `lc_key` varchar(255) NOT NULL, - `lc_value` mediumblob NOT NULL, - KEY `lc_lang_key` (`lc_lang`,`lc_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `langlinks` ( - `ll_from` int(10) unsigned NOT NULL DEFAULT '0', - `ll_lang` varbinary(20) NOT NULL DEFAULT '', - `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), - KEY `ll_lang` (`ll_lang`,`ll_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `log_search` ( - `ls_field` varbinary(32) NOT NULL, - `ls_value` varchar(255) NOT NULL, - `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', - UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), - KEY `ls_log_id` (`ls_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `logging` ( - `log_type` varbinary(32) NOT NULL, - `log_action` varbinary(32) NOT NULL, - `log_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - `log_user` int(10) unsigned NOT NULL DEFAULT '0', - `log_namespace` int(11) NOT NULL DEFAULT '0', - `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_comment` varbinary(767) NOT NULL DEFAULT '', - `log_params` blob NOT NULL, - `log_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_page` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`log_id`), - KEY `type_time` (`log_type`,`log_timestamp`), - KEY `user_time` (`log_user`,`log_timestamp`), - KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), - KEY `times` (`log_timestamp`), - KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), - KEY `log_page_id_time` (`log_page`,`log_timestamp`), - KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), - KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), - KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `math` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_outputhash` varbinary(16) NOT NULL, - `math_html_conservativeness` tinyint(4) NOT NULL, - `math_html` text, - `math_mathml` text, - UNIQUE KEY `math_inputhash` (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mathoid` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_input` text NOT NULL, - `math_tex` text, - `math_mathml` text, - `math_svg` text, - `math_style` tinyint(4) DEFAULT NULL, - `math_input_type` tinyint(4) DEFAULT NULL, - PRIMARY KEY (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `module_deps` ( - `md_module` varbinary(255) NOT NULL, - `md_skin` varbinary(32) NOT NULL, - `md_deps` mediumblob NOT NULL, - UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource` ( - `mr_resource` varbinary(255) NOT NULL, - `mr_lang` varbinary(32) NOT NULL, - `mr_blob` mediumblob NOT NULL, - `mr_timestamp` binary(14) NOT NULL, - UNIQUE KEY `mr_resource_lang` (`mr_resource`,`mr_lang`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource_links` ( - `mrl_resource` varbinary(255) NOT NULL, - `mrl_message` varbinary(255) NOT NULL, - UNIQUE KEY `mrl_message_resource` (`mrl_message`,`mrl_resource`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `objectcache` ( - `keyname` varbinary(255) NOT NULL DEFAULT '', - `value` mediumblob, - `exptime` datetime DEFAULT NULL, - UNIQUE KEY `keyname` (`keyname`), - KEY `exptime` (`exptime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `oldimage` ( - `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_size` int(10) unsigned NOT NULL DEFAULT '0', - `oi_width` int(11) NOT NULL DEFAULT '0', - `oi_height` int(11) NOT NULL DEFAULT '0', - `oi_bits` int(11) NOT NULL DEFAULT '0', - `oi_description` varbinary(767) NOT NULL, - `oi_user` int(10) unsigned NOT NULL DEFAULT '0', - `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `oi_metadata` mediumblob NOT NULL, - `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `oi_sha1` varbinary(32) NOT NULL DEFAULT '', - KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), - KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), - KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), - KEY `oi_sha1` (`oi_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page` ( - `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `page_namespace` int(11) NOT NULL, - `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `page_restrictions` tinyblob NOT NULL, - `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_random` double unsigned NOT NULL, - `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `page_latest` int(10) unsigned NOT NULL, - `page_len` int(10) unsigned NOT NULL, - `page_content_model` varbinary(32) DEFAULT NULL, - `page_links_updated` varbinary(14) DEFAULT NULL, - `page_lang` varbinary(35) DEFAULT NULL, - PRIMARY KEY (`page_id`), - UNIQUE KEY `name_title` (`page_namespace`,`page_title`), - KEY `page_random` (`page_random`), - KEY `page_len` (`page_len`), - KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_props` ( - `pp_page` int(11) NOT NULL, - `pp_propname` varbinary(60) NOT NULL, - `pp_value` blob NOT NULL, - `pp_sortkey` float DEFAULT NULL, - PRIMARY KEY (`pp_page`,`pp_propname`), - UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), - UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_restrictions` ( - `pr_page` int(11) NOT NULL, - `pr_type` varbinary(60) NOT NULL, - `pr_level` varbinary(60) NOT NULL, - `pr_cascade` tinyint(4) NOT NULL, - `pr_user` int(11) DEFAULT NULL, - `pr_expiry` varbinary(14) DEFAULT NULL, - `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`pr_page`,`pr_type`), - UNIQUE KEY `pr_id` (`pr_id`), - KEY `pr_typelevel` (`pr_type`,`pr_level`), - KEY `pr_level` (`pr_level`), - KEY `pr_cascade` (`pr_cascade`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pagelinks` ( - `pl_from` int(10) unsigned NOT NULL DEFAULT '0', - `pl_namespace` int(11) NOT NULL DEFAULT '0', - `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `pl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), - UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), - KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `protected_titles` ( - `pt_namespace` int(11) NOT NULL, - `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `pt_user` int(10) unsigned NOT NULL, - `pt_reason` varbinary(767) DEFAULT NULL, - `pt_timestamp` binary(14) NOT NULL, - `pt_expiry` varbinary(14) NOT NULL DEFAULT '', - `pt_create_perm` varbinary(60) NOT NULL, - PRIMARY KEY (`pt_namespace`,`pt_title`), - KEY `pt_timestamp` (`pt_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache` ( - `qc_type` varbinary(32) NOT NULL, - `qc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qc_namespace` int(11) NOT NULL DEFAULT '0', - `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qc_type` (`qc_type`,`qc_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache_info` ( - `qci_type` varbinary(32) NOT NULL DEFAULT '', - `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - UNIQUE KEY `qci_type` (`qci_type`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycachetwo` ( - `qcc_type` varbinary(32) NOT NULL, - `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qcc_namespace` int(11) NOT NULL DEFAULT '0', - `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', - `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qcc_type` (`qcc_type`,`qcc_value`), - KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), - KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `recentchanges` ( - `rc_id` int(11) NOT NULL AUTO_INCREMENT, - `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', - `rc_user` int(10) unsigned NOT NULL DEFAULT '0', - `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rc_namespace` int(11) NOT NULL, - `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rc_comment` varbinary(767) NOT NULL DEFAULT '', - `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', - `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_ip` varbinary(40) NOT NULL DEFAULT '', - `rc_old_len` int(11) DEFAULT NULL, - `rc_new_len` int(11) DEFAULT NULL, - `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_log_type` varbinary(255) DEFAULT NULL, - `rc_log_action` varbinary(255) DEFAULT NULL, - `rc_params` blob, - `rc_source` varbinary(16) NOT NULL DEFAULT '', - PRIMARY KEY (`rc_id`), - KEY `rc_timestamp` (`rc_timestamp`), - KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), - KEY `rc_cur_id` (`rc_cur_id`), - KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), - KEY `rc_ip` (`rc_ip`), - KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), - KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `redirect` ( - `rd_from` int(10) unsigned NOT NULL DEFAULT '0', - `rd_namespace` int(11) NOT NULL DEFAULT '0', - `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rd_interwiki` varchar(32) DEFAULT NULL, - `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - PRIMARY KEY (`rd_from`), - KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `revision` ( - `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `rev_page` int(10) unsigned NOT NULL, - `rev_text_id` int(10) unsigned NOT NULL, - `rev_comment` varbinary(767) NOT NULL, - `rev_user` int(10) unsigned NOT NULL DEFAULT '0', - `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_len` int(10) unsigned DEFAULT NULL, - `rev_parent_id` int(10) unsigned DEFAULT NULL, - `rev_sha1` varbinary(32) NOT NULL DEFAULT '', - `rev_content_model` varbinary(32) DEFAULT NULL, - `rev_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`rev_id`), - UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), - KEY `rev_timestamp` (`rev_timestamp`), - KEY `page_timestamp` (`rev_page`,`rev_timestamp`), - KEY `user_timestamp` (`rev_user`,`rev_timestamp`), - KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), - KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `searchindex` ( - `si_page` int(10) unsigned NOT NULL, - `si_title` varchar(255) NOT NULL DEFAULT '', - `si_text` mediumtext NOT NULL, - FULLTEXT KEY `si_title` (`si_title`), - FULLTEXT KEY `si_text` (`si_text`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_identifiers` ( - `si_site` int(10) unsigned NOT NULL, - `si_type` varbinary(32) NOT NULL, - `si_key` varbinary(32) NOT NULL, - UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), - KEY `site_ids_site` (`si_site`), - KEY `site_ids_key` (`si_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_stats` ( - `ss_row_id` int(10) unsigned NOT NULL, - `ss_total_edits` bigint(20) unsigned DEFAULT '0', - `ss_good_articles` bigint(20) unsigned DEFAULT '0', - `ss_total_pages` bigint(20) DEFAULT '-1', - `ss_users` bigint(20) DEFAULT '-1', - `ss_active_users` bigint(20) DEFAULT '-1', - `ss_images` int(11) DEFAULT '0', - UNIQUE KEY `ss_row_id` (`ss_row_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `sites` ( - `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `site_global_key` varbinary(32) NOT NULL, - `site_type` varbinary(32) NOT NULL, - `site_group` varbinary(32) NOT NULL, - `site_source` varbinary(32) NOT NULL, - `site_language` varbinary(32) NOT NULL, - `site_protocol` varbinary(32) NOT NULL, - `site_domain` varchar(255) NOT NULL, - `site_data` blob NOT NULL, - `site_forward` tinyint(1) NOT NULL, - `site_config` blob NOT NULL, - PRIMARY KEY (`site_id`), - UNIQUE KEY `sites_global_key` (`site_global_key`), - KEY `sites_type` (`site_type`), - KEY `sites_group` (`site_group`), - KEY `sites_source` (`site_source`), - KEY `sites_language` (`site_language`), - KEY `sites_protocol` (`site_protocol`), - KEY `sites_domain` (`site_domain`), - KEY `sites_forward` (`site_forward`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `tag_summary` ( - `ts_rc_id` int(11) DEFAULT NULL, - `ts_log_id` int(11) DEFAULT NULL, - `ts_rev_id` int(11) DEFAULT NULL, - `ts_tags` blob NOT NULL, - UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), - UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), - UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `templatelinks` ( - `tl_from` int(10) unsigned NOT NULL DEFAULT '0', - `tl_namespace` int(11) NOT NULL DEFAULT '0', - `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `tl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), - UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), - KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `text` ( - `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `old_text` mediumblob NOT NULL, - `old_flags` tinyblob NOT NULL, - PRIMARY KEY (`old_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread` ( - `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, - `thread_root` int(8) unsigned NOT NULL, - `thread_ancestor` int(8) unsigned NOT NULL, - `thread_parent` int(8) unsigned DEFAULT NULL, - `thread_summary_page` int(8) unsigned DEFAULT NULL, - `thread_subject` varchar(255) DEFAULT NULL, - `thread_author_id` int(10) unsigned DEFAULT NULL, - `thread_author_name` varchar(255) DEFAULT NULL, - `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_editedness` int(1) NOT NULL DEFAULT '0', - `thread_article_namespace` int(11) NOT NULL, - `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `thread_article_id` int(8) unsigned NOT NULL, - `thread_type` int(4) unsigned NOT NULL DEFAULT '0', - `thread_sortkey` varchar(255) NOT NULL DEFAULT '', - `thread_replies` int(8) DEFAULT '-1', - `thread_signature` tinyblob, - PRIMARY KEY (`thread_id`), - UNIQUE KEY `thread_root` (`thread_root`), - UNIQUE KEY `thread_root_2` (`thread_root`), - KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), - KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), - KEY `thread_article` (`thread_article_id`,`thread_sortkey`), - KEY `thread_modified` (`thread_modified`), - KEY `thread_created` (`thread_created`), - KEY `thread_summary_page` (`thread_summary_page`), - KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), - KEY `thread_sortkey` (`thread_sortkey`), - KEY `thread_parent` (`thread_parent`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_history` ( - `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `th_thread` int(10) unsigned NOT NULL, - `th_timestamp` varbinary(14) NOT NULL, - `th_user` int(10) unsigned NOT NULL, - `th_user_text` varchar(255) NOT NULL, - `th_change_type` int(10) unsigned NOT NULL, - `th_change_object` int(10) unsigned NOT NULL, - `th_change_comment` tinytext NOT NULL, - `th_content` longblob NOT NULL, - PRIMARY KEY (`th_id`), - KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), - KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), - KEY `th_user_text` (`th_user`,`th_user_text`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( - `tpr_thread` int(10) unsigned NOT NULL, - `tpr_relationship` varbinary(64) NOT NULL, - `tpr_title` varbinary(255) NOT NULL, - `tpr_type` varbinary(32) NOT NULL, - PRIMARY KEY (`tpr_thread`,`tpr_relationship`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_reaction` ( - `tr_thread` int(10) unsigned NOT NULL, - `tr_user` int(10) unsigned NOT NULL, - `tr_user_text` varbinary(255) NOT NULL, - `tr_type` varbinary(64) NOT NULL, - `tr_value` int(11) NOT NULL, - PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), - KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `transcache` ( - `tc_url` varbinary(255) NOT NULL, - `tc_contents` text, - `tc_time` binary(14) DEFAULT NULL, - UNIQUE KEY `tc_url_idx` (`tc_url`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `updatelog` ( - `ul_key` varchar(255) NOT NULL, - `ul_value` blob, - PRIMARY KEY (`ul_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uploadstash` ( - `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `us_user` int(10) unsigned NOT NULL, - `us_key` varchar(255) NOT NULL, - `us_orig_path` varchar(255) NOT NULL, - `us_path` varchar(255) NOT NULL, - `us_source_type` varchar(50) DEFAULT NULL, - `us_timestamp` varbinary(14) NOT NULL, - `us_status` varchar(50) NOT NULL, - `us_chunk_inx` int(10) unsigned DEFAULT NULL, - `us_props` blob, - `us_size` int(10) unsigned NOT NULL, - `us_sha1` varchar(31) NOT NULL, - `us_mime` varchar(255) DEFAULT NULL, - `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `us_image_width` int(10) unsigned DEFAULT NULL, - `us_image_height` int(10) unsigned DEFAULT NULL, - `us_image_bits` smallint(5) unsigned DEFAULT NULL, - PRIMARY KEY (`us_id`), - UNIQUE KEY `us_key` (`us_key`), - KEY `us_user` (`us_user`), - KEY `us_timestamp` (`us_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user` ( - `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_password` tinyblob NOT NULL, - `user_newpassword` tinyblob NOT NULL, - `user_newpass_time` binary(14) DEFAULT NULL, - `user_email` tinytext NOT NULL, - `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `user_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', - `user_email_authenticated` binary(14) DEFAULT NULL, - `user_email_token` binary(32) DEFAULT NULL, - `user_email_token_expires` binary(14) DEFAULT NULL, - `user_registration` binary(14) DEFAULT NULL, - `user_editcount` int(11) DEFAULT NULL, - PRIMARY KEY (`user_id`), - UNIQUE KEY `user_name` (`user_name`), - KEY `user_email_token` (`user_email_token`), - KEY `user_email` (`user_email`(50)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_former_groups` ( - `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', - `ufg_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_groups` ( - `ug_user` int(10) unsigned NOT NULL DEFAULT '0', - `ug_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), - KEY `ug_group` (`ug_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_message_state` ( - `ums_user` int(10) unsigned NOT NULL, - `ums_thread` int(8) unsigned NOT NULL, - `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', - `ums_read_timestamp` varbinary(14) DEFAULT NULL, - PRIMARY KEY (`ums_user`,`ums_thread`), - KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_newtalk` ( - `user_id` int(10) unsigned NOT NULL DEFAULT '0', - `user_ip` varbinary(40) NOT NULL DEFAULT '', - `user_last_timestamp` varbinary(14) DEFAULT NULL, - KEY `un_user_id` (`user_id`), - KEY `un_user_ip` (`user_ip`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_properties` ( - `up_user` int(11) NOT NULL, - `up_property` varbinary(255) NOT NULL, - `up_value` blob, - UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), - KEY `user_properties_property` (`up_property`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `valid_tag` ( - `vt_tag` varchar(255) NOT NULL, - PRIMARY KEY (`vt_tag`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `watchlist` ( - `wl_user` int(10) unsigned NOT NULL, - `wl_namespace` int(11) NOT NULL DEFAULT '0', - `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, - UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), - KEY `namespace_title` (`wl_namespace`,`wl_title`), - KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - -DROP INDEX flow_ext_ref_idx_v2 ON flow_ext_ref; DROP INDEX flow_ext_ref_revision_v2 ON flow_ext_ref; ALTER TABLE flow_ext_ref CHANGE ref_target ref_target BLOB NOT NULL; CREATE INDEX flow_ext_ref_idx_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_type, ref_target(255), ref_src_object_type, ref_src_object_id); CREATE INDEX flow_ext_ref_revision_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_src_object_type, ref_src_object_id, ref_type, ref_target(255)); + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `archive` ( + `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `ar_namespace` int(11) NOT NULL DEFAULT '0', + `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ar_text` mediumblob NOT NULL, + `ar_comment` varbinary(767) NOT NULL, + `ar_user` int(10) unsigned NOT NULL DEFAULT '0', + `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', + `ar_flags` tinyblob NOT NULL, + `ar_rev_id` int(10) unsigned DEFAULT NULL, + `ar_text_id` int(10) unsigned DEFAULT NULL, + `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `ar_len` int(10) unsigned DEFAULT NULL, + `ar_page_id` int(10) unsigned DEFAULT NULL, + `ar_parent_id` int(10) unsigned DEFAULT NULL, + `ar_sha1` varbinary(32) NOT NULL DEFAULT '', + `ar_content_format` varbinary(64) DEFAULT NULL, + `ar_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`ar_id`), + KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), + KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), + KEY `ar_revid` (`ar_rev_id`), + KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_commentmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `comment_id` (`comment_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_comments` ( + `comment_ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_post_ID` bigint(20) unsigned NOT NULL DEFAULT '0', + `comment_author` tinytext NOT NULL, + `comment_author_email` varchar(100) NOT NULL DEFAULT '', + `comment_author_url` varchar(200) NOT NULL DEFAULT '', + `comment_author_IP` varchar(100) NOT NULL DEFAULT '', + `comment_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_content` text NOT NULL, + `comment_karma` int(11) NOT NULL DEFAULT '0', + `comment_approved` varchar(20) NOT NULL DEFAULT '1', + `comment_agent` varchar(255) NOT NULL DEFAULT '', + `comment_type` varchar(20) NOT NULL DEFAULT '', + `comment_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`comment_ID`), + KEY `comment_post_ID` (`comment_post_ID`), + KEY `comment_approved_date_gmt` (`comment_approved`,`comment_date_gmt`), + KEY `comment_date_gmt` (`comment_date_gmt`), + KEY `comment_parent` (`comment_parent`), + KEY `comment_author_email` (`comment_author_email`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_links` ( + `link_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `link_url` varchar(255) NOT NULL DEFAULT '', + `link_name` varchar(255) NOT NULL DEFAULT '', + `link_image` varchar(255) NOT NULL DEFAULT '', + `link_target` varchar(25) NOT NULL DEFAULT '', + `link_description` varchar(255) NOT NULL DEFAULT '', + `link_visible` varchar(20) NOT NULL DEFAULT 'Y', + `link_owner` bigint(20) unsigned NOT NULL DEFAULT '1', + `link_rating` int(11) NOT NULL DEFAULT '0', + `link_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `link_rel` varchar(255) NOT NULL DEFAULT '', + `link_notes` mediumtext NOT NULL, + `link_rss` varchar(255) NOT NULL DEFAULT '', + PRIMARY KEY (`link_id`), + KEY `link_visible` (`link_visible`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_options` ( + `option_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `option_name` varchar(64) NOT NULL DEFAULT '', + `option_value` longtext NOT NULL, + `autoload` varchar(20) NOT NULL DEFAULT 'yes', + PRIMARY KEY (`option_id`), + UNIQUE KEY `option_name` (`option_name`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_postmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `post_id` (`post_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_posts` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_author` bigint(20) unsigned NOT NULL DEFAULT '0', + `post_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content` longtext NOT NULL, + `post_title` text NOT NULL, + `post_excerpt` text NOT NULL, + `post_status` varchar(20) NOT NULL DEFAULT 'publish', + `comment_status` varchar(20) NOT NULL DEFAULT 'open', + `ping_status` varchar(20) NOT NULL DEFAULT 'open', + `post_password` varchar(20) NOT NULL DEFAULT '', + `post_name` varchar(200) NOT NULL DEFAULT '', + `to_ping` text NOT NULL, + `pinged` text NOT NULL, + `post_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_modified_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content_filtered` longtext NOT NULL, + `post_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `guid` varchar(255) NOT NULL DEFAULT '', + `menu_order` int(11) NOT NULL DEFAULT '0', + `post_type` varchar(20) NOT NULL DEFAULT 'post', + `post_mime_type` varchar(100) NOT NULL DEFAULT '', + `comment_count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`), + KEY `post_name` (`post_name`), + KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`ID`), + KEY `post_parent` (`post_parent`), + KEY `post_author` (`post_author`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_relationships` ( + `object_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_taxonomy_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`object_id`,`term_taxonomy_id`), + KEY `term_taxonomy_id` (`term_taxonomy_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_taxonomy` ( + `term_taxonomy_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `term_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `taxonomy` varchar(32) NOT NULL DEFAULT '', + `description` longtext NOT NULL, + `parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_taxonomy_id`), + UNIQUE KEY `term_id_taxonomy` (`term_id`,`taxonomy`), + KEY `taxonomy` (`taxonomy`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_terms` ( + `term_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(200) NOT NULL DEFAULT '', + `slug` varchar(200) NOT NULL DEFAULT '', + `term_group` bigint(10) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_id`), + KEY `name` (`name`), + KEY `slug` (`slug`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_usermeta` ( + `umeta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`umeta_id`), + KEY `user_id` (`user_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_users` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_login` varchar(60) NOT NULL DEFAULT '', + `user_pass` varchar(64) NOT NULL DEFAULT '', + `user_nicename` varchar(50) NOT NULL DEFAULT '', + `user_email` varchar(100) NOT NULL DEFAULT '', + `user_url` varchar(100) NOT NULL DEFAULT '', + `user_registered` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `user_activation_key` varchar(60) NOT NULL DEFAULT '', + `user_status` int(11) NOT NULL DEFAULT '0', + `display_name` varchar(250) NOT NULL DEFAULT '', + PRIMARY KEY (`ID`), + KEY `user_login_key` (`user_login`), + KEY `user_nicename` (`user_nicename`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `bot_passwords` ( + `bp_user` int(11) NOT NULL, + `bp_app_id` varbinary(32) 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_restrictions` blob NOT NULL, + `bp_grants` blob NOT NULL, + PRIMARY KEY (`bp_user`,`bp_app_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `category` ( + `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `cat_pages` int(11) NOT NULL DEFAULT '0', + `cat_subcats` int(11) NOT NULL DEFAULT '0', + `cat_files` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`cat_id`), + UNIQUE KEY `cat_title` (`cat_title`), + KEY `cat_pages` (`cat_pages`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `categorylinks` ( + `cl_from` int(10) unsigned NOT NULL DEFAULT '0', + `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', + `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `cl_collation` varbinary(32) NOT NULL DEFAULT '', + `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', + UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), + KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), + KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), + KEY `cl_collation_ext` (`cl_collation`,`cl_to`,`cl_type`,`cl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `change_tag` ( + `ct_rc_id` int(11) DEFAULT NULL, + `ct_log_id` int(11) DEFAULT NULL, + `ct_rev_id` int(11) DEFAULT NULL, + `ct_tag` varchar(255) NOT NULL, + `ct_params` blob, + UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), + UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), + UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), + KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_email_batch` ( + `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `eeb_user_id` int(10) unsigned NOT NULL, + `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', + `eeb_event_id` int(10) unsigned NOT NULL, + `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eeb_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`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_event` ( + `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_agent_id` int(10) unsigned DEFAULT NULL, + `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_page_namespace` int(10) unsigned DEFAULT NULL, + `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_extra` blob, + `event_page_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`event_id`), + KEY `echo_event_type` (`event_type`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_notification` ( + `notification_event` int(10) unsigned NOT NULL, + `notification_user` int(10) unsigned NOT NULL, + `notification_timestamp` binary(14) NOT NULL, + `notification_read_timestamp` binary(14) DEFAULT NULL, + `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', + `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `user_event` (`notification_user`,`notification_event`), + KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), + KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), + KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), + KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), + KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_target_page` ( + `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`etp_id`), + KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), + KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `external_user` ( + `eu_local_id` int(10) unsigned NOT NULL, + `eu_external_id` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eu_local_id`), + UNIQUE KEY `eu_external_id` (`eu_external_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `externallinks` ( + `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `el_from` int(10) unsigned NOT NULL DEFAULT '0', + `el_to` blob NOT NULL, + `el_index` blob NOT NULL, + PRIMARY KEY (`el_id`), + KEY `el_from` (`el_from`,`el_to`(40)), + KEY `el_to` (`el_to`(60),`el_from`), + KEY `el_index` (`el_index`(60)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `filearchive` ( + `fa_id` int(11) NOT NULL AUTO_INCREMENT, + `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', + `fa_storage_group` varbinary(16) DEFAULT NULL, + `fa_storage_key` varbinary(64) DEFAULT '', + `fa_deleted_user` int(11) DEFAULT NULL, + `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted_reason` varbinary(767) DEFAULT '', + `fa_size` int(10) unsigned DEFAULT '0', + `fa_width` int(11) DEFAULT '0', + `fa_height` int(11) DEFAULT '0', + `fa_metadata` mediumblob, + `fa_bits` int(11) DEFAULT '0', + `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `fa_minor_mime` varbinary(100) DEFAULT 'unknown', + `fa_description` varbinary(767) DEFAULT NULL, + `fa_user` int(10) unsigned DEFAULT '0', + `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `fa_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fa_id`), + KEY `fa_name` (`fa_name`,`fa_timestamp`), + KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), + KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), + KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), + KEY `fa_sha1` (`fa_sha1`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedimages` ( + `fi_rev_id` int(10) unsigned NOT NULL, + `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fi_img_timestamp` varbinary(14) DEFAULT NULL, + `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fi_rev_id`,`fi_name`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( + `fpc_page_id` int(10) unsigned NOT NULL, + `fpc_select` int(11) NOT NULL, + `fpc_override` tinyint(1) NOT NULL, + `fpc_level` varbinary(60) DEFAULT NULL, + `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', + PRIMARY KEY (`fpc_page_id`), + KEY `fpc_expiry` (`fpc_expiry`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( + `fpp_page_id` int(10) unsigned NOT NULL, + `fpp_quality` tinyint(1) NOT NULL, + `fpp_rev_id` int(10) unsigned NOT NULL, + `fpp_pending_since` varbinary(14) NOT NULL, + PRIMARY KEY (`fpp_page_id`,`fpp_quality`), + KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpages` ( + `fp_page_id` int(10) unsigned NOT NULL, + `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', + `fp_pending_since` varbinary(14) DEFAULT NULL, + `fp_stable` int(10) unsigned NOT NULL, + `fp_quality` tinyint(1) DEFAULT NULL, + PRIMARY KEY (`fp_page_id`), + KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), + KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), + KEY `fp_pending_since` (`fp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs` ( + `fr_rev_id` int(10) unsigned NOT NULL, + `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', + `fr_page_id` int(10) unsigned NOT NULL, + `fr_user` int(10) unsigned NOT NULL, + `fr_timestamp` varbinary(14) NOT NULL, + `fr_quality` tinyint(1) NOT NULL DEFAULT '0', + `fr_tags` mediumblob NOT NULL, + `fr_flags` tinyblob NOT NULL, + `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fr_img_timestamp` varbinary(14) DEFAULT NULL, + `fr_img_sha1` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`fr_rev_id`), + KEY `page_rev` (`fr_page_id`,`fr_rev_id`), + KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), + KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), + KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), + KEY `fr_img_sha1` (`fr_img_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( + `frp_user_id` int(10) unsigned NOT NULL, + `frp_user_params` mediumblob NOT NULL, + PRIMARY KEY (`frp_user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( + `frs_timestamp` varbinary(14) NOT NULL, + `frs_stat_key` varchar(255) NOT NULL, + `frs_stat_val` bigint(20) NOT NULL, + PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), + KEY `frs_timestamp` (`frs_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( + `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', + `ftr_namespace` int(11) NOT NULL DEFAULT '0', + `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), + KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( + `ft_rev_id` int(10) unsigned NOT NULL, + `ft_namespace` int(11) NOT NULL DEFAULT '0', + `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target` blob NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`(255),`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`(255)) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_revision` ( + `rev_id` binary(11) NOT NULL, + `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', + `rev_user_id` bigint(20) unsigned NOT NULL, + `rev_user_ip` varbinary(39) DEFAULT NULL, + `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_parent_id` binary(11) DEFAULT NULL, + `rev_flags` tinyblob NOT NULL, + `rev_content` mediumblob NOT NULL, + `rev_change_type` varbinary(255) DEFAULT NULL, + `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_mod_user_ip` varbinary(39) DEFAULT NULL, + `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_last_edit_id` binary(11) DEFAULT NULL, + `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_edit_user_ip` varbinary(39) DEFAULT NULL, + `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_content_length` int(11) NOT NULL DEFAULT '0', + `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`rev_id`), + UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), + KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), + KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_subscription` ( + `subscription_workflow_id` int(10) unsigned NOT NULL, + `subscription_user_id` bigint(20) unsigned NOT NULL, + `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), + KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_topic_list` ( + `topic_list_id` binary(11) NOT NULL, + `topic_id` binary(11) DEFAULT NULL, + UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), + KEY `flow_topic_list_topic_id` (`topic_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_node` ( + `tree_ancestor_id` binary(11) NOT NULL, + `tree_descendant_id` binary(11) NOT NULL, + `tree_depth` smallint(6) NOT NULL, + UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), + UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( + `tree_rev_descendant_id` binary(11) NOT NULL, + `tree_rev_id` binary(11) NOT NULL, + `tree_orig_user_id` bigint(20) unsigned NOT NULL, + `tree_orig_user_ip` varbinary(39) DEFAULT NULL, + `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `tree_parent_id` binary(11) DEFAULT NULL, + PRIMARY KEY (`tree_rev_id`), + KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target_namespace` int(11) NOT NULL, + `ref_target_title` varbinary(255) NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_workflow` ( + `workflow_id` binary(11) NOT NULL, + `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_namespace` int(11) NOT NULL, + `workflow_page_id` int(10) unsigned NOT NULL, + `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_last_update_timestamp` binary(14) NOT NULL, + `workflow_lock_state` int(10) unsigned NOT NULL, + `workflow_type` varbinary(16) NOT NULL, + PRIMARY KEY (`workflow_id`), + KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), + KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `historical_thread` ( + `hthread_id` int(8) unsigned NOT NULL, + `hthread_revision` int(8) unsigned NOT NULL, + `hthread_contents` blob NOT NULL, + `hthread_change_type` int(4) unsigned NOT NULL, + `hthread_change_object` int(8) unsigned DEFAULT NULL, + PRIMARY KEY (`hthread_id`,`hthread_revision`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `image` ( + `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `img_size` int(10) unsigned NOT NULL DEFAULT '0', + `img_width` int(11) NOT NULL DEFAULT '0', + `img_height` int(11) NOT NULL DEFAULT '0', + `img_metadata` mediumblob NOT NULL, + `img_bits` int(11) NOT NULL DEFAULT '0', + `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `img_description` varbinary(767) NOT NULL, + `img_user` int(10) unsigned NOT NULL DEFAULT '0', + `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `img_timestamp` varbinary(14) NOT NULL DEFAULT '', + `img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`img_name`), + KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), + KEY `img_size` (`img_size`), + KEY `img_timestamp` (`img_timestamp`), + KEY `img_sha1` (`img_sha1`), + KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `imagelinks` ( + `il_from` int(10) unsigned NOT NULL DEFAULT '0', + `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `il_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `il_from` (`il_from`,`il_to`), + UNIQUE KEY `il_to` (`il_to`,`il_from`), + KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `interwiki` ( + `iw_prefix` varchar(32) NOT NULL, + `iw_url` blob NOT NULL, + `iw_api` blob NOT NULL, + `iw_wikiid` varchar(64) NOT NULL, + `iw_local` tinyint(1) NOT NULL, + `iw_trans` tinyint(4) NOT NULL DEFAULT '0', + UNIQUE KEY `iw_prefix` (`iw_prefix`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `ipblocks` ( + `ipb_id` int(11) NOT NULL AUTO_INCREMENT, + `ipb_address` tinyblob NOT NULL, + `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ipb_reason` varbinary(767) NOT NULL, + `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `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 DEFAULT '', + `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(11) DEFAULT NULL, + PRIMARY KEY (`ipb_id`), + UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), + 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 AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `iwlinks` ( + `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', + `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', + `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), + 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=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `job` ( + `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `job_cmd` varbinary(60) NOT NULL DEFAULT '', + `job_namespace` int(11) NOT NULL, + `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `job_params` blob NOT NULL, + `job_timestamp` varbinary(14) DEFAULT NULL, + `job_random` int(10) unsigned NOT NULL DEFAULT '0', + `job_token` varbinary(32) NOT NULL DEFAULT '', + `job_token_timestamp` varbinary(14) DEFAULT NULL, + `job_sha1` varbinary(32) NOT NULL DEFAULT '', + `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`job_id`), + KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), + KEY `job_timestamp` (`job_timestamp`), + KEY `job_sha1` (`job_sha1`), + KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), + KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `l10n_cache` ( + `lc_lang` varbinary(32) NOT NULL, + `lc_key` varchar(255) NOT NULL, + `lc_value` mediumblob NOT NULL, + KEY `lc_lang_key` (`lc_lang`,`lc_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `langlinks` ( + `ll_from` int(10) unsigned NOT NULL DEFAULT '0', + `ll_lang` varbinary(20) NOT NULL DEFAULT '', + `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), + KEY `ll_lang` (`ll_lang`,`ll_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `log_search` ( + `ls_field` varbinary(32) NOT NULL, + `ls_value` varchar(255) NOT NULL, + `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', + UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), + KEY `ls_log_id` (`ls_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `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_user` int(10) unsigned NOT NULL DEFAULT '0', + `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_namespace` int(11) NOT NULL DEFAULT '0', + `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_page` int(10) unsigned DEFAULT NULL, + `log_comment` varbinary(767) NOT NULL DEFAULT '', + `log_params` blob NOT NULL, + `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`log_id`), + KEY `type_time` (`log_type`,`log_timestamp`), + KEY `user_time` (`log_user`,`log_timestamp`), + KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), + KEY `times` (`log_timestamp`), + KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), + KEY `log_page_id_time` (`log_page`,`log_timestamp`), + KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), + KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), + KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `math` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_outputhash` varbinary(16) NOT NULL, + `math_html_conservativeness` tinyint(4) NOT NULL, + `math_html` text, + `math_mathml` text, + UNIQUE KEY `math_inputhash` (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `mathoid` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_input` text NOT NULL, + `math_tex` text, + `math_mathml` text, + `math_svg` text, + `math_style` tinyint(4) DEFAULT NULL, + `math_input_type` tinyint(4) DEFAULT NULL, + PRIMARY KEY (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `module_deps` ( + `md_module` varbinary(255) NOT NULL, + `md_skin` varbinary(32) NOT NULL, + `md_deps` mediumblob NOT NULL, + UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `objectcache` ( + `keyname` varbinary(255) NOT NULL DEFAULT '', + `value` mediumblob, + `exptime` datetime DEFAULT NULL, + PRIMARY KEY (`keyname`), + KEY `exptime` (`exptime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `oldimage` ( + `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_size` int(10) unsigned NOT NULL DEFAULT '0', + `oi_width` int(11) NOT NULL DEFAULT '0', + `oi_height` int(11) NOT NULL DEFAULT '0', + `oi_bits` int(11) NOT NULL DEFAULT '0', + `oi_description` varbinary(767) NOT NULL, + `oi_user` int(10) unsigned NOT NULL DEFAULT '0', + `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `oi_metadata` mediumblob NOT NULL, + `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `oi_sha1` varbinary(32) NOT NULL DEFAULT '', + KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), + KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), + KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), + KEY `oi_sha1` (`oi_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page` ( + `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `page_namespace` int(11) NOT NULL, + `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `page_restrictions` tinyblob NOT NULL, + `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_random` double unsigned NOT NULL, + `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `page_latest` int(10) unsigned NOT NULL, + `page_len` int(10) unsigned NOT NULL, + `page_content_model` varbinary(32) DEFAULT NULL, + `page_links_updated` varbinary(14) DEFAULT NULL, + `page_lang` varbinary(35) DEFAULT NULL, + PRIMARY KEY (`page_id`), + UNIQUE KEY `name_title` (`page_namespace`,`page_title`), + KEY `page_random` (`page_random`), + KEY `page_len` (`page_len`), + KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_props` ( + `pp_page` int(11) NOT NULL, + `pp_propname` varbinary(60) NOT NULL, + `pp_value` blob NOT NULL, + `pp_sortkey` float DEFAULT NULL, + UNIQUE KEY `pp_page_propname` (`pp_page`,`pp_propname`), + UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), + UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_restrictions` ( + `pr_page` int(11) NOT NULL, + `pr_type` varbinary(60) NOT NULL, + `pr_level` varbinary(60) NOT NULL, + `pr_cascade` tinyint(4) NOT NULL, + `pr_user` int(11) DEFAULT NULL, + `pr_expiry` varbinary(14) DEFAULT NULL, + `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`pr_id`), + UNIQUE KEY `pr_pagetype` (`pr_page`,`pr_type`), + KEY `pr_typelevel` (`pr_type`,`pr_level`), + KEY `pr_level` (`pr_level`), + KEY `pr_cascade` (`pr_cascade`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `pagelinks` ( + `pl_from` int(10) unsigned NOT NULL DEFAULT '0', + `pl_namespace` int(11) NOT NULL DEFAULT '0', + `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `pl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), + UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), + KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `protected_titles` ( + `pt_namespace` int(11) NOT NULL, + `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `pt_user` int(10) unsigned NOT NULL, + `pt_reason` varbinary(767) DEFAULT NULL, + `pt_timestamp` binary(14) NOT NULL, + `pt_expiry` varbinary(14) NOT NULL DEFAULT '', + `pt_create_perm` varbinary(60) NOT NULL, + UNIQUE KEY `pt_namespace_title` (`pt_namespace`,`pt_title`), + KEY `pt_timestamp` (`pt_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache` ( + `qc_type` varbinary(32) NOT NULL, + `qc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qc_namespace` int(11) NOT NULL DEFAULT '0', + `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qc_type` (`qc_type`,`qc_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache_info` ( + `qci_type` varbinary(32) NOT NULL DEFAULT '', + `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', + UNIQUE KEY `qci_type` (`qci_type`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycachetwo` ( + `qcc_type` varbinary(32) NOT NULL, + `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qcc_namespace` int(11) NOT NULL DEFAULT '0', + `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', + `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qcc_type` (`qcc_type`,`qcc_value`), + KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), + KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `recentchanges` ( + `rc_id` int(11) NOT NULL AUTO_INCREMENT, + `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', + `rc_user` int(10) unsigned NOT NULL DEFAULT '0', + `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rc_namespace` int(11) NOT NULL DEFAULT '0', + `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rc_comment` varbinary(767) NOT NULL DEFAULT '', + `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', + `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_ip` varbinary(40) NOT NULL DEFAULT '', + `rc_old_len` int(11) DEFAULT NULL, + `rc_new_len` int(11) DEFAULT NULL, + `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_log_type` varbinary(255) DEFAULT NULL, + `rc_log_action` varbinary(255) DEFAULT NULL, + `rc_params` blob, + `rc_source` varbinary(16) NOT NULL DEFAULT '', + PRIMARY KEY (`rc_id`), + KEY `rc_timestamp` (`rc_timestamp`), + KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), + KEY `rc_cur_id` (`rc_cur_id`), + KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), + KEY `rc_ip` (`rc_ip`), + KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), + KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `redirect` ( + `rd_from` int(10) unsigned NOT NULL DEFAULT '0', + `rd_namespace` int(11) NOT NULL DEFAULT '0', + `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rd_interwiki` varchar(32) DEFAULT NULL, + `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + PRIMARY KEY (`rd_from`), + KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `revision` ( + `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `rev_page` int(10) unsigned NOT NULL, + `rev_text_id` int(10) unsigned NOT NULL, + `rev_comment` varbinary(767) NOT NULL, + `rev_user` int(10) unsigned NOT NULL DEFAULT '0', + `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_len` int(10) unsigned DEFAULT NULL, + `rev_parent_id` int(10) unsigned DEFAULT NULL, + `rev_sha1` varbinary(32) NOT NULL DEFAULT '', + `rev_content_format` varbinary(64) DEFAULT NULL, + `rev_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`rev_id`), + UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), + KEY `rev_timestamp` (`rev_timestamp`), + KEY `page_timestamp` (`rev_page`,`rev_timestamp`), + KEY `user_timestamp` (`rev_user`,`rev_timestamp`), + KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), + KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `searchindex` ( + `si_page` int(10) unsigned NOT NULL, + `si_title` varchar(255) NOT NULL DEFAULT '', + `si_text` mediumtext NOT NULL, + UNIQUE KEY `si_page` (`si_page`), + FULLTEXT KEY `si_title` (`si_title`), + FULLTEXT KEY `si_text` (`si_text`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_identifiers` ( + `si_site` int(10) unsigned NOT NULL, + `si_type` varbinary(32) NOT NULL, + `si_key` varbinary(32) NOT NULL, + UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), + KEY `site_ids_site` (`si_site`), + KEY `site_ids_key` (`si_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_stats` ( + `ss_row_id` int(10) unsigned NOT NULL, + `ss_total_edits` bigint(20) unsigned DEFAULT '0', + `ss_good_articles` bigint(20) unsigned DEFAULT '0', + `ss_total_pages` bigint(20) DEFAULT '-1', + `ss_users` bigint(20) DEFAULT '-1', + `ss_active_users` bigint(20) DEFAULT '-1', + `ss_images` int(11) DEFAULT '0', + UNIQUE KEY `ss_row_id` (`ss_row_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `sites` ( + `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `site_global_key` varbinary(32) NOT NULL, + `site_type` varbinary(32) NOT NULL, + `site_group` varbinary(32) NOT NULL, + `site_source` varbinary(32) NOT NULL, + `site_language` varbinary(32) NOT NULL, + `site_protocol` varbinary(32) NOT NULL, + `site_domain` varchar(255) NOT NULL, + `site_data` blob NOT NULL, + `site_forward` tinyint(1) NOT NULL, + `site_config` blob NOT NULL, + PRIMARY KEY (`site_id`), + UNIQUE KEY `sites_global_key` (`site_global_key`), + KEY `sites_type` (`site_type`), + KEY `sites_group` (`site_group`), + KEY `sites_source` (`site_source`), + KEY `sites_language` (`site_language`), + KEY `sites_protocol` (`site_protocol`), + KEY `sites_domain` (`site_domain`), + KEY `sites_forward` (`site_forward`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `tag_summary` ( + `ts_rc_id` int(11) DEFAULT NULL, + `ts_log_id` int(11) DEFAULT NULL, + `ts_rev_id` int(11) DEFAULT NULL, + `ts_tags` blob NOT NULL, + UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), + UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), + UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `templatelinks` ( + `tl_from` int(10) unsigned NOT NULL DEFAULT '0', + `tl_namespace` int(11) NOT NULL DEFAULT '0', + `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `tl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), + UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), + KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `text` ( + `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `old_text` mediumblob NOT NULL, + `old_flags` tinyblob NOT NULL, + PRIMARY KEY (`old_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread` ( + `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, + `thread_root` int(8) unsigned NOT NULL, + `thread_ancestor` int(8) unsigned NOT NULL, + `thread_parent` int(8) unsigned DEFAULT NULL, + `thread_summary_page` int(8) unsigned DEFAULT NULL, + `thread_subject` varchar(255) DEFAULT NULL, + `thread_author_id` int(10) unsigned DEFAULT NULL, + `thread_author_name` varchar(255) DEFAULT NULL, + `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_editedness` int(1) NOT NULL DEFAULT '0', + `thread_article_namespace` int(11) NOT NULL, + `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `thread_article_id` int(8) unsigned NOT NULL, + `thread_type` int(4) unsigned NOT NULL DEFAULT '0', + `thread_sortkey` varchar(255) NOT NULL DEFAULT '', + `thread_replies` int(8) DEFAULT '-1', + `thread_signature` tinyblob, + PRIMARY KEY (`thread_id`), + UNIQUE KEY `thread_root` (`thread_root`), + UNIQUE KEY `thread_root_2` (`thread_root`), + KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), + KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), + KEY `thread_article` (`thread_article_id`,`thread_sortkey`), + KEY `thread_modified` (`thread_modified`), + KEY `thread_created` (`thread_created`), + KEY `thread_summary_page` (`thread_summary_page`), + KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), + KEY `thread_sortkey` (`thread_sortkey`), + KEY `thread_parent` (`thread_parent`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_history` ( + `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `th_thread` int(10) unsigned NOT NULL, + `th_timestamp` varbinary(14) NOT NULL, + `th_user` int(10) unsigned NOT NULL, + `th_user_text` varchar(255) NOT NULL, + `th_change_type` int(10) unsigned NOT NULL, + `th_change_object` int(10) unsigned NOT NULL, + `th_change_comment` tinytext NOT NULL, + `th_content` longblob NOT NULL, + PRIMARY KEY (`th_id`), + KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), + KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), + KEY `th_user_text` (`th_user`,`th_user_text`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( + `tpr_thread` int(10) unsigned NOT NULL, + `tpr_relationship` varbinary(64) NOT NULL, + `tpr_title` varbinary(255) NOT NULL, + `tpr_type` varbinary(32) NOT NULL, + PRIMARY KEY (`tpr_thread`,`tpr_relationship`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_reaction` ( + `tr_thread` int(10) unsigned NOT NULL, + `tr_user` int(10) unsigned NOT NULL, + `tr_user_text` varbinary(255) NOT NULL, + `tr_type` varbinary(64) NOT NULL, + `tr_value` int(11) NOT NULL, + PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), + KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `trackbacks` ( + `tb_id` int(11) NOT NULL AUTO_INCREMENT, + `tb_page` int(11) DEFAULT NULL, + `tb_title` varchar(255) NOT NULL, + `tb_url` blob NOT NULL, + `tb_ex` text, + `tb_name` varchar(255) DEFAULT NULL, + PRIMARY KEY (`tb_id`), + KEY `tb_page` (`tb_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `transcache` ( + `tc_url` varbinary(255) NOT NULL, + `tc_contents` text, + `tc_time` binary(14) DEFAULT NULL, + UNIQUE KEY `tc_url_idx` (`tc_url`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `updatelog` ( + `ul_key` varchar(255) NOT NULL, + `ul_value` blob, + PRIMARY KEY (`ul_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `uploadstash` ( + `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `us_user` int(10) unsigned NOT NULL, + `us_key` varchar(255) NOT NULL, + `us_orig_path` varchar(255) NOT NULL, + `us_path` varchar(255) NOT NULL, + `us_source_type` varchar(50) DEFAULT NULL, + `us_timestamp` varbinary(14) NOT NULL, + `us_status` varchar(50) NOT NULL, + `us_size` int(10) unsigned NOT NULL, + `us_sha1` varchar(31) NOT NULL, + `us_mime` varchar(255) DEFAULT NULL, + `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `us_image_width` int(10) unsigned DEFAULT NULL, + `us_image_height` int(10) unsigned DEFAULT NULL, + `us_image_bits` smallint(5) unsigned DEFAULT NULL, + `us_chunk_inx` int(10) unsigned DEFAULT NULL, + `us_props` blob, + PRIMARY KEY (`us_id`), + UNIQUE KEY `us_key` (`us_key`), + KEY `us_user` (`us_user`), + KEY `us_timestamp` (`us_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user` ( + `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_password` tinyblob NOT NULL, + `user_newpassword` tinyblob NOT NULL, + `user_newpass_time` binary(14) DEFAULT NULL, + `user_email` tinytext NOT NULL, + `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `user_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', + `user_email_authenticated` binary(14) DEFAULT NULL, + `user_email_token` binary(32) DEFAULT NULL, + `user_email_token_expires` binary(14) DEFAULT NULL, + `user_registration` binary(14) DEFAULT NULL, + `user_editcount` int(11) DEFAULT NULL, + PRIMARY KEY (`user_id`), + UNIQUE KEY `user_name` (`user_name`), + KEY `user_email_token` (`user_email_token`), + KEY `user_email` (`user_email`(50)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_former_groups` ( + `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', + `ufg_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_groups` ( + `ug_user` int(10) unsigned NOT NULL DEFAULT '0', + `ug_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), + KEY `ug_group` (`ug_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_message_state` ( + `ums_user` int(10) unsigned NOT NULL, + `ums_thread` int(8) unsigned NOT NULL, + `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', + `ums_read_timestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`ums_user`,`ums_thread`), + KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_newtalk` ( + `user_id` int(10) unsigned NOT NULL DEFAULT '0', + `user_ip` varbinary(40) NOT NULL DEFAULT '', + `user_last_timestamp` varbinary(14) DEFAULT NULL, + KEY `un_user_id` (`user_id`), + KEY `un_user_ip` (`user_ip`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_properties` ( + `up_user` int(11) NOT NULL, + `up_property` varbinary(255) DEFAULT NULL, + `up_value` blob, + UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), + KEY `user_properties_property` (`up_property`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `valid_tag` ( + `vt_tag` varchar(255) NOT NULL, + PRIMARY KEY (`vt_tag`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `watchlist` ( + `wl_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `wl_user` int(10) unsigned NOT NULL, + `wl_namespace` int(11) NOT NULL DEFAULT '0', + `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`wl_id`), + UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), + KEY `namespace_title` (`wl_namespace`,`wl_title`), + KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + diff --git a/DeveloperDump/dewikitolearn.struct.sql b/DeveloperDump/dewikitolearn.struct.sql index cd9504d..daa02f6 100644 --- a/DeveloperDump/dewikitolearn.struct.sql +++ b/DeveloperDump/dewikitolearn.struct.sql @@ -1,1178 +1,1380 @@ - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; -/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; -/*!40103 SET TIME_ZONE='+00:00' */; -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `archive` ( - `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `ar_namespace` int(11) NOT NULL DEFAULT '0', - `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ar_text` mediumblob NOT NULL, - `ar_comment` varbinary(767) NOT NULL, - `ar_user` int(10) unsigned NOT NULL DEFAULT '0', - `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', - `ar_flags` tinyblob NOT NULL, - `ar_rev_id` int(10) unsigned DEFAULT NULL, - `ar_text_id` int(10) unsigned DEFAULT NULL, - `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `ar_len` int(10) unsigned DEFAULT NULL, - `ar_page_id` int(10) unsigned DEFAULT NULL, - `ar_parent_id` int(10) unsigned DEFAULT NULL, - `ar_sha1` varbinary(32) NOT NULL DEFAULT '', - `ar_content_model` varbinary(32) DEFAULT NULL, - `ar_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`ar_id`), - KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), - KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), - KEY `ar_revid` (`ar_rev_id`), - KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `category` ( - `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `cat_pages` int(11) NOT NULL DEFAULT '0', - `cat_subcats` int(11) NOT NULL DEFAULT '0', - `cat_files` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`cat_id`), - UNIQUE KEY `cat_title` (`cat_title`), - KEY `cat_pages` (`cat_pages`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `categorylinks` ( - `cl_from` int(10) unsigned NOT NULL DEFAULT '0', - `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', - `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `cl_collation` varbinary(32) NOT NULL DEFAULT '', - `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', - UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), - KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), - KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), - KEY `cl_collation` (`cl_collation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `change_tag` ( - `ct_rc_id` int(11) DEFAULT NULL, - `ct_log_id` int(11) DEFAULT NULL, - `ct_rev_id` int(11) DEFAULT NULL, - `ct_tag` varchar(255) NOT NULL, - `ct_params` blob, - UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), - UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), - UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), - KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_email_batch` ( - `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `eeb_user_id` int(10) unsigned NOT NULL, - `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', - `eeb_event_id` int(10) unsigned NOT NULL, - `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - PRIMARY KEY (`eeb_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`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_event` ( - `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_agent_id` int(10) unsigned DEFAULT NULL, - `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_page_namespace` int(10) unsigned DEFAULT NULL, - `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_extra` blob, - `event_page_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`event_id`), - KEY `echo_event_type` (`event_type`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_notification` ( - `notification_event` int(10) unsigned NOT NULL, - `notification_user` int(10) unsigned NOT NULL, - `notification_timestamp` binary(14) NOT NULL, - `notification_read_timestamp` binary(14) DEFAULT NULL, - `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', - `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `user_event` (`notification_user`,`notification_event`), - KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), - KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), - KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), - KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), - KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_target_page` ( - `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`etp_id`), - KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), - KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `externallinks` ( - `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `el_from` int(10) unsigned NOT NULL DEFAULT '0', - `el_to` blob NOT NULL, - `el_index` blob NOT NULL, - PRIMARY KEY (`el_id`), - KEY `el_from` (`el_from`,`el_to`(40)), - KEY `el_to` (`el_to`(60),`el_from`), - KEY `el_index` (`el_index`(60)) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `filearchive` ( - `fa_id` int(11) NOT NULL AUTO_INCREMENT, - `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', - `fa_storage_group` varbinary(16) DEFAULT NULL, - `fa_storage_key` varbinary(64) DEFAULT '', - `fa_deleted_user` int(11) DEFAULT NULL, - `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted_reason` varbinary(767) DEFAULT '', - `fa_size` int(10) unsigned DEFAULT '0', - `fa_width` int(11) DEFAULT '0', - `fa_height` int(11) DEFAULT '0', - `fa_metadata` mediumblob, - `fa_bits` int(11) DEFAULT '0', - `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `fa_minor_mime` varbinary(100) DEFAULT 'unknown', - `fa_description` varbinary(767) DEFAULT NULL, - `fa_user` int(10) unsigned DEFAULT '0', - `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `fa_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fa_id`), - KEY `fa_name` (`fa_name`,`fa_timestamp`), - KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), - KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), - KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), - KEY `fa_sha1` (`fa_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedimages` ( - `fi_rev_id` int(10) unsigned NOT NULL, - `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fi_img_timestamp` varbinary(14) DEFAULT NULL, - `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fi_rev_id`,`fi_name`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( - `fpc_page_id` int(10) unsigned NOT NULL, - `fpc_select` int(11) NOT NULL, - `fpc_override` tinyint(1) NOT NULL, - `fpc_level` varbinary(60) DEFAULT NULL, - `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', - PRIMARY KEY (`fpc_page_id`), - KEY `fpc_expiry` (`fpc_expiry`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( - `fpp_page_id` int(10) unsigned NOT NULL, - `fpp_quality` tinyint(1) NOT NULL, - `fpp_rev_id` int(10) unsigned NOT NULL, - `fpp_pending_since` varbinary(14) NOT NULL, - PRIMARY KEY (`fpp_page_id`,`fpp_quality`), - KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpages` ( - `fp_page_id` int(10) unsigned NOT NULL, - `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', - `fp_pending_since` varbinary(14) DEFAULT NULL, - `fp_stable` int(10) unsigned NOT NULL, - `fp_quality` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`fp_page_id`), - KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), - KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), - KEY `fp_pending_since` (`fp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs` ( - `fr_rev_id` int(10) unsigned NOT NULL, - `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', - `fr_page_id` int(10) unsigned NOT NULL, - `fr_user` int(10) unsigned NOT NULL, - `fr_timestamp` varbinary(14) NOT NULL, - `fr_quality` tinyint(1) NOT NULL DEFAULT '0', - `fr_tags` mediumblob NOT NULL, - `fr_flags` tinyblob NOT NULL, - `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fr_img_timestamp` varbinary(14) DEFAULT NULL, - `fr_img_sha1` varbinary(32) DEFAULT NULL, - PRIMARY KEY (`fr_rev_id`), - KEY `page_rev` (`fr_page_id`,`fr_rev_id`), - KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), - KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), - KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), - KEY `fr_img_sha1` (`fr_img_sha1`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( - `frp_user_id` int(10) unsigned NOT NULL, - `frp_user_params` mediumblob NOT NULL, - PRIMARY KEY (`frp_user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( - `frs_timestamp` varbinary(14) NOT NULL, - `frs_stat_key` varchar(255) NOT NULL, - `frs_stat_val` bigint(20) NOT NULL, - PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), - KEY `frs_timestamp` (`frs_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( - `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', - `ftr_namespace` int(11) NOT NULL DEFAULT '0', - `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), - KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( - `ft_rev_id` int(10) unsigned NOT NULL, - `ft_namespace` int(11) NOT NULL DEFAULT '0', - `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_revision` ( - `rev_id` binary(11) NOT NULL, - `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', - `rev_user_id` bigint(20) unsigned NOT NULL, - `rev_user_ip` varbinary(39) DEFAULT NULL, - `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_parent_id` binary(11) DEFAULT NULL, - `rev_flags` tinyblob NOT NULL, - `rev_content` mediumblob NOT NULL, - `rev_change_type` varbinary(255) DEFAULT NULL, - `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_mod_user_ip` varbinary(39) DEFAULT NULL, - `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_last_edit_id` binary(11) DEFAULT NULL, - `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_edit_user_ip` varbinary(39) DEFAULT NULL, - `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_content_length` int(11) NOT NULL DEFAULT '0', - `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`rev_id`), - UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), - KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), - KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_subscription` ( - `subscription_workflow_id` int(10) unsigned NOT NULL, - `subscription_user_id` bigint(20) unsigned NOT NULL, - `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), - KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_topic_list` ( - `topic_list_id` binary(11) NOT NULL, - `topic_id` binary(11) DEFAULT NULL, - UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), - KEY `flow_topic_list_topic_id` (`topic_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_node` ( - `tree_ancestor_id` binary(11) NOT NULL, - `tree_descendant_id` binary(11) NOT NULL, - `tree_depth` smallint(6) NOT NULL, - UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), - UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( - `tree_rev_descendant_id` binary(11) NOT NULL, - `tree_rev_id` binary(11) NOT NULL, - `tree_orig_user_id` bigint(20) unsigned NOT NULL, - `tree_orig_user_ip` varbinary(39) DEFAULT NULL, - `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tree_parent_id` binary(11) DEFAULT NULL, - PRIMARY KEY (`tree_rev_id`), - KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target_namespace` int(11) NOT NULL, - `ref_target_title` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_workflow` ( - `workflow_id` binary(11) NOT NULL, - `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_namespace` int(11) NOT NULL, - `workflow_page_id` int(10) unsigned NOT NULL, - `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_last_update_timestamp` binary(14) NOT NULL, - `workflow_lock_state` int(10) unsigned NOT NULL, - `workflow_type` varbinary(16) NOT NULL, - PRIMARY KEY (`workflow_id`), - KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), - KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `historical_thread` ( - `hthread_id` int(8) unsigned NOT NULL, - `hthread_revision` int(8) unsigned NOT NULL, - `hthread_contents` blob NOT NULL, - `hthread_change_type` int(4) unsigned NOT NULL, - `hthread_change_object` int(8) unsigned DEFAULT NULL, - PRIMARY KEY (`hthread_id`,`hthread_revision`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `image` ( - `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `img_size` int(10) unsigned NOT NULL DEFAULT '0', - `img_width` int(11) NOT NULL DEFAULT '0', - `img_height` int(11) NOT NULL DEFAULT '0', - `img_metadata` mediumblob NOT NULL, - `img_bits` int(11) NOT NULL DEFAULT '0', - `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `img_description` varbinary(767) NOT NULL, - `img_user` int(10) unsigned NOT NULL DEFAULT '0', - `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `img_timestamp` varbinary(14) NOT NULL DEFAULT '', - `img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`img_name`), - KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), - KEY `img_size` (`img_size`), - KEY `img_timestamp` (`img_timestamp`), - KEY `img_sha1` (`img_sha1`(10)), - KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `imagelinks` ( - `il_from` int(10) unsigned NOT NULL DEFAULT '0', - `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `il_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `il_from` (`il_from`,`il_to`), - UNIQUE KEY `il_to` (`il_to`,`il_from`), - KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `interwiki` ( - `iw_prefix` varchar(32) NOT NULL, - `iw_url` blob NOT NULL, - `iw_local` tinyint(1) NOT NULL, - `iw_trans` tinyint(4) NOT NULL DEFAULT '0', - `iw_api` blob NOT NULL, - `iw_wikiid` varchar(64) NOT NULL, - UNIQUE KEY `iw_prefix` (`iw_prefix`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ipblocks` ( - `ipb_id` int(11) NOT NULL AUTO_INCREMENT, - `ipb_address` tinyblob NOT NULL, - `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ipb_reason` varbinary(767) NOT NULL, - `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `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 DEFAULT '', - `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(11) DEFAULT NULL, - PRIMARY KEY (`ipb_id`), - UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `iwlinks` ( - `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', - `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', - `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `job` ( - `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `job_cmd` varbinary(60) NOT NULL DEFAULT '', - `job_namespace` int(11) NOT NULL, - `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `job_params` blob NOT NULL, - `job_timestamp` varbinary(14) DEFAULT NULL, - `job_random` int(10) unsigned NOT NULL DEFAULT '0', - `job_token` varbinary(32) NOT NULL DEFAULT '', - `job_token_timestamp` varbinary(14) DEFAULT NULL, - `job_sha1` varbinary(32) NOT NULL DEFAULT '', - `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', - PRIMARY KEY (`job_id`), - KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), - KEY `job_timestamp` (`job_timestamp`), - KEY `job_sha1` (`job_sha1`), - KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), - KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `l10n_cache` ( - `lc_lang` varbinary(32) NOT NULL, - `lc_key` varchar(255) NOT NULL, - `lc_value` mediumblob NOT NULL, - KEY `lc_lang_key` (`lc_lang`,`lc_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `langlinks` ( - `ll_from` int(10) unsigned NOT NULL DEFAULT '0', - `ll_lang` varbinary(20) NOT NULL DEFAULT '', - `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), - KEY `ll_lang` (`ll_lang`,`ll_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `log_search` ( - `ls_field` varbinary(32) NOT NULL, - `ls_value` varchar(255) NOT NULL, - `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', - UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), - KEY `ls_log_id` (`ls_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `logging` ( - `log_type` varbinary(32) NOT NULL, - `log_action` varbinary(32) NOT NULL, - `log_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - `log_user` int(10) unsigned NOT NULL DEFAULT '0', - `log_namespace` int(11) NOT NULL DEFAULT '0', - `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_comment` varbinary(767) NOT NULL DEFAULT '', - `log_params` blob NOT NULL, - `log_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_page` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`log_id`), - KEY `type_time` (`log_type`,`log_timestamp`), - KEY `user_time` (`log_user`,`log_timestamp`), - KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), - KEY `times` (`log_timestamp`), - KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), - KEY `log_page_id_time` (`log_page`,`log_timestamp`), - KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), - KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), - KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `math` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_outputhash` varbinary(16) NOT NULL, - `math_html_conservativeness` tinyint(4) NOT NULL, - `math_html` text, - `math_mathml` text, - UNIQUE KEY `math_inputhash` (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mathoid` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_input` text NOT NULL, - `math_tex` text, - `math_mathml` text, - `math_svg` text, - `math_style` tinyint(4) DEFAULT NULL, - `math_input_type` tinyint(4) DEFAULT NULL, - PRIMARY KEY (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `module_deps` ( - `md_module` varbinary(255) NOT NULL, - `md_skin` varbinary(32) NOT NULL, - `md_deps` mediumblob NOT NULL, - UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource` ( - `mr_resource` varbinary(255) NOT NULL, - `mr_lang` varbinary(32) NOT NULL, - `mr_blob` mediumblob NOT NULL, - `mr_timestamp` binary(14) NOT NULL, - UNIQUE KEY `mr_resource_lang` (`mr_resource`,`mr_lang`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource_links` ( - `mrl_resource` varbinary(255) NOT NULL, - `mrl_message` varbinary(255) NOT NULL, - UNIQUE KEY `mrl_message_resource` (`mrl_message`,`mrl_resource`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `objectcache` ( - `keyname` varbinary(255) NOT NULL DEFAULT '', - `value` mediumblob, - `exptime` datetime DEFAULT NULL, - UNIQUE KEY `keyname` (`keyname`), - KEY `exptime` (`exptime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `oldimage` ( - `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_size` int(10) unsigned NOT NULL DEFAULT '0', - `oi_width` int(11) NOT NULL DEFAULT '0', - `oi_height` int(11) NOT NULL DEFAULT '0', - `oi_bits` int(11) NOT NULL DEFAULT '0', - `oi_description` varbinary(767) NOT NULL, - `oi_user` int(10) unsigned NOT NULL DEFAULT '0', - `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `oi_metadata` mediumblob NOT NULL, - `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `oi_sha1` varbinary(32) NOT NULL DEFAULT '', - KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), - KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), - KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), - KEY `oi_sha1` (`oi_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page` ( - `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `page_namespace` int(11) NOT NULL, - `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `page_restrictions` tinyblob NOT NULL, - `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_random` double unsigned NOT NULL, - `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `page_latest` int(10) unsigned NOT NULL, - `page_len` int(10) unsigned NOT NULL, - `page_content_model` varbinary(32) DEFAULT NULL, - `page_links_updated` varbinary(14) DEFAULT NULL, - `page_lang` varbinary(35) DEFAULT NULL, - PRIMARY KEY (`page_id`), - UNIQUE KEY `name_title` (`page_namespace`,`page_title`), - KEY `page_random` (`page_random`), - KEY `page_len` (`page_len`), - KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_props` ( - `pp_page` int(11) NOT NULL, - `pp_propname` varbinary(60) NOT NULL, - `pp_value` blob NOT NULL, - `pp_sortkey` float DEFAULT NULL, - PRIMARY KEY (`pp_page`,`pp_propname`), - UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), - UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_restrictions` ( - `pr_page` int(11) NOT NULL, - `pr_type` varbinary(60) NOT NULL, - `pr_level` varbinary(60) NOT NULL, - `pr_cascade` tinyint(4) NOT NULL, - `pr_user` int(11) DEFAULT NULL, - `pr_expiry` varbinary(14) DEFAULT NULL, - `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`pr_page`,`pr_type`), - UNIQUE KEY `pr_id` (`pr_id`), - KEY `pr_typelevel` (`pr_type`,`pr_level`), - KEY `pr_level` (`pr_level`), - KEY `pr_cascade` (`pr_cascade`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pagelinks` ( - `pl_from` int(10) unsigned NOT NULL DEFAULT '0', - `pl_namespace` int(11) NOT NULL DEFAULT '0', - `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `pl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), - UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), - KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `protected_titles` ( - `pt_namespace` int(11) NOT NULL, - `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `pt_user` int(10) unsigned NOT NULL, - `pt_reason` varbinary(767) DEFAULT NULL, - `pt_timestamp` binary(14) NOT NULL, - `pt_expiry` varbinary(14) NOT NULL DEFAULT '', - `pt_create_perm` varbinary(60) NOT NULL, - PRIMARY KEY (`pt_namespace`,`pt_title`), - KEY `pt_timestamp` (`pt_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache` ( - `qc_type` varbinary(32) NOT NULL, - `qc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qc_namespace` int(11) NOT NULL DEFAULT '0', - `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qc_type` (`qc_type`,`qc_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache_info` ( - `qci_type` varbinary(32) NOT NULL DEFAULT '', - `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - UNIQUE KEY `qci_type` (`qci_type`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycachetwo` ( - `qcc_type` varbinary(32) NOT NULL, - `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qcc_namespace` int(11) NOT NULL DEFAULT '0', - `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', - `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qcc_type` (`qcc_type`,`qcc_value`), - KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), - KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `recentchanges` ( - `rc_id` int(11) NOT NULL AUTO_INCREMENT, - `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', - `rc_user` int(10) unsigned NOT NULL DEFAULT '0', - `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rc_namespace` int(11) NOT NULL, - `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rc_comment` varbinary(767) NOT NULL DEFAULT '', - `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', - `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_ip` varbinary(40) NOT NULL DEFAULT '', - `rc_old_len` int(11) DEFAULT NULL, - `rc_new_len` int(11) DEFAULT NULL, - `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_log_type` varbinary(255) DEFAULT NULL, - `rc_log_action` varbinary(255) DEFAULT NULL, - `rc_params` blob, - `rc_source` varbinary(16) NOT NULL DEFAULT '', - PRIMARY KEY (`rc_id`), - KEY `rc_timestamp` (`rc_timestamp`), - KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), - KEY `rc_cur_id` (`rc_cur_id`), - KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), - KEY `rc_ip` (`rc_ip`), - KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), - KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `redirect` ( - `rd_from` int(10) unsigned NOT NULL DEFAULT '0', - `rd_namespace` int(11) NOT NULL DEFAULT '0', - `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rd_interwiki` varchar(32) DEFAULT NULL, - `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - PRIMARY KEY (`rd_from`), - KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `revision` ( - `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `rev_page` int(10) unsigned NOT NULL, - `rev_text_id` int(10) unsigned NOT NULL, - `rev_comment` varbinary(767) NOT NULL, - `rev_user` int(10) unsigned NOT NULL DEFAULT '0', - `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_len` int(10) unsigned DEFAULT NULL, - `rev_parent_id` int(10) unsigned DEFAULT NULL, - `rev_sha1` varbinary(32) NOT NULL DEFAULT '', - `rev_content_model` varbinary(32) DEFAULT NULL, - `rev_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`rev_id`), - UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), - KEY `rev_timestamp` (`rev_timestamp`), - KEY `page_timestamp` (`rev_page`,`rev_timestamp`), - KEY `user_timestamp` (`rev_user`,`rev_timestamp`), - KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), - KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `searchindex` ( - `si_page` int(10) unsigned NOT NULL, - `si_title` varchar(255) NOT NULL DEFAULT '', - `si_text` mediumtext NOT NULL, - FULLTEXT KEY `si_title` (`si_title`), - FULLTEXT KEY `si_text` (`si_text`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_identifiers` ( - `si_site` int(10) unsigned NOT NULL, - `si_type` varbinary(32) NOT NULL, - `si_key` varbinary(32) NOT NULL, - UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), - KEY `site_ids_site` (`si_site`), - KEY `site_ids_key` (`si_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_stats` ( - `ss_row_id` int(10) unsigned NOT NULL, - `ss_total_edits` bigint(20) unsigned DEFAULT '0', - `ss_good_articles` bigint(20) unsigned DEFAULT '0', - `ss_total_pages` bigint(20) DEFAULT '-1', - `ss_users` bigint(20) DEFAULT '-1', - `ss_active_users` bigint(20) DEFAULT '-1', - `ss_images` int(11) DEFAULT '0', - UNIQUE KEY `ss_row_id` (`ss_row_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `sites` ( - `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `site_global_key` varbinary(32) NOT NULL, - `site_type` varbinary(32) NOT NULL, - `site_group` varbinary(32) NOT NULL, - `site_source` varbinary(32) NOT NULL, - `site_language` varbinary(32) NOT NULL, - `site_protocol` varbinary(32) NOT NULL, - `site_domain` varchar(255) NOT NULL, - `site_data` blob NOT NULL, - `site_forward` tinyint(1) NOT NULL, - `site_config` blob NOT NULL, - PRIMARY KEY (`site_id`), - UNIQUE KEY `sites_global_key` (`site_global_key`), - KEY `sites_type` (`site_type`), - KEY `sites_group` (`site_group`), - KEY `sites_source` (`site_source`), - KEY `sites_language` (`site_language`), - KEY `sites_protocol` (`site_protocol`), - KEY `sites_domain` (`site_domain`), - KEY `sites_forward` (`site_forward`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `tag_summary` ( - `ts_rc_id` int(11) DEFAULT NULL, - `ts_log_id` int(11) DEFAULT NULL, - `ts_rev_id` int(11) DEFAULT NULL, - `ts_tags` blob NOT NULL, - UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), - UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), - UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `templatelinks` ( - `tl_from` int(10) unsigned NOT NULL DEFAULT '0', - `tl_namespace` int(11) NOT NULL DEFAULT '0', - `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `tl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), - UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), - KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `text` ( - `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `old_text` mediumblob NOT NULL, - `old_flags` tinyblob NOT NULL, - PRIMARY KEY (`old_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread` ( - `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, - `thread_root` int(8) unsigned NOT NULL, - `thread_ancestor` int(8) unsigned NOT NULL, - `thread_parent` int(8) unsigned DEFAULT NULL, - `thread_summary_page` int(8) unsigned DEFAULT NULL, - `thread_subject` varchar(255) DEFAULT NULL, - `thread_author_id` int(10) unsigned DEFAULT NULL, - `thread_author_name` varchar(255) DEFAULT NULL, - `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_editedness` int(1) NOT NULL DEFAULT '0', - `thread_article_namespace` int(11) NOT NULL, - `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `thread_article_id` int(8) unsigned NOT NULL, - `thread_type` int(4) unsigned NOT NULL DEFAULT '0', - `thread_sortkey` varchar(255) NOT NULL DEFAULT '', - `thread_replies` int(8) DEFAULT '-1', - `thread_signature` tinyblob, - PRIMARY KEY (`thread_id`), - UNIQUE KEY `thread_root` (`thread_root`), - UNIQUE KEY `thread_root_2` (`thread_root`), - KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), - KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), - KEY `thread_article` (`thread_article_id`,`thread_sortkey`), - KEY `thread_modified` (`thread_modified`), - KEY `thread_created` (`thread_created`), - KEY `thread_summary_page` (`thread_summary_page`), - KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), - KEY `thread_sortkey` (`thread_sortkey`), - KEY `thread_parent` (`thread_parent`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_history` ( - `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `th_thread` int(10) unsigned NOT NULL, - `th_timestamp` varbinary(14) NOT NULL, - `th_user` int(10) unsigned NOT NULL, - `th_user_text` varchar(255) NOT NULL, - `th_change_type` int(10) unsigned NOT NULL, - `th_change_object` int(10) unsigned NOT NULL, - `th_change_comment` tinytext NOT NULL, - `th_content` longblob NOT NULL, - PRIMARY KEY (`th_id`), - KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), - KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), - KEY `th_user_text` (`th_user`,`th_user_text`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( - `tpr_thread` int(10) unsigned NOT NULL, - `tpr_relationship` varbinary(64) NOT NULL, - `tpr_title` varbinary(255) NOT NULL, - `tpr_type` varbinary(32) NOT NULL, - PRIMARY KEY (`tpr_thread`,`tpr_relationship`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_reaction` ( - `tr_thread` int(10) unsigned NOT NULL, - `tr_user` int(10) unsigned NOT NULL, - `tr_user_text` varbinary(255) NOT NULL, - `tr_type` varbinary(64) NOT NULL, - `tr_value` int(11) NOT NULL, - PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), - KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `transcache` ( - `tc_url` varbinary(255) NOT NULL, - `tc_contents` text, - `tc_time` binary(14) DEFAULT NULL, - UNIQUE KEY `tc_url_idx` (`tc_url`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `updatelog` ( - `ul_key` varchar(255) NOT NULL, - `ul_value` blob, - PRIMARY KEY (`ul_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uploadstash` ( - `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `us_user` int(10) unsigned NOT NULL, - `us_key` varchar(255) NOT NULL, - `us_orig_path` varchar(255) NOT NULL, - `us_path` varchar(255) NOT NULL, - `us_source_type` varchar(50) DEFAULT NULL, - `us_timestamp` varbinary(14) NOT NULL, - `us_status` varchar(50) NOT NULL, - `us_chunk_inx` int(10) unsigned DEFAULT NULL, - `us_props` blob, - `us_size` int(10) unsigned NOT NULL, - `us_sha1` varchar(31) NOT NULL, - `us_mime` varchar(255) DEFAULT NULL, - `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `us_image_width` int(10) unsigned DEFAULT NULL, - `us_image_height` int(10) unsigned DEFAULT NULL, - `us_image_bits` smallint(5) unsigned DEFAULT NULL, - PRIMARY KEY (`us_id`), - UNIQUE KEY `us_key` (`us_key`), - KEY `us_user` (`us_user`), - KEY `us_timestamp` (`us_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user` ( - `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_password` tinyblob NOT NULL, - `user_newpassword` tinyblob NOT NULL, - `user_newpass_time` binary(14) DEFAULT NULL, - `user_email` tinytext NOT NULL, - `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `user_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', - `user_email_authenticated` binary(14) DEFAULT NULL, - `user_email_token` binary(32) DEFAULT NULL, - `user_email_token_expires` binary(14) DEFAULT NULL, - `user_registration` binary(14) DEFAULT NULL, - `user_editcount` int(11) DEFAULT NULL, - PRIMARY KEY (`user_id`), - UNIQUE KEY `user_name` (`user_name`), - KEY `user_email_token` (`user_email_token`), - KEY `user_email` (`user_email`(50)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_former_groups` ( - `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', - `ufg_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_groups` ( - `ug_user` int(10) unsigned NOT NULL DEFAULT '0', - `ug_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), - KEY `ug_group` (`ug_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_message_state` ( - `ums_user` int(10) unsigned NOT NULL, - `ums_thread` int(8) unsigned NOT NULL, - `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', - `ums_read_timestamp` varbinary(14) DEFAULT NULL, - PRIMARY KEY (`ums_user`,`ums_thread`), - KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_newtalk` ( - `user_id` int(10) unsigned NOT NULL DEFAULT '0', - `user_ip` varbinary(40) NOT NULL DEFAULT '', - `user_last_timestamp` varbinary(14) DEFAULT NULL, - KEY `un_user_id` (`user_id`), - KEY `un_user_ip` (`user_ip`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_properties` ( - `up_user` int(11) NOT NULL, - `up_property` varbinary(255) NOT NULL, - `up_value` blob, - UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), - KEY `user_properties_property` (`up_property`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `valid_tag` ( - `vt_tag` varchar(255) NOT NULL, - PRIMARY KEY (`vt_tag`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `watchlist` ( - `wl_user` int(10) unsigned NOT NULL, - `wl_namespace` int(11) NOT NULL DEFAULT '0', - `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, - UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), - KEY `namespace_title` (`wl_namespace`,`wl_title`), - KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - -DROP INDEX flow_ext_ref_idx_v2 ON flow_ext_ref; DROP INDEX flow_ext_ref_revision_v2 ON flow_ext_ref; ALTER TABLE flow_ext_ref CHANGE ref_target ref_target BLOB NOT NULL; CREATE INDEX flow_ext_ref_idx_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_type, ref_target(255), ref_src_object_type, ref_src_object_id); CREATE INDEX flow_ext_ref_revision_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_src_object_type, ref_src_object_id, ref_type, ref_target(255)); + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `archive` ( + `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `ar_namespace` int(11) NOT NULL DEFAULT '0', + `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ar_text` mediumblob NOT NULL, + `ar_comment` varbinary(767) NOT NULL, + `ar_user` int(10) unsigned NOT NULL DEFAULT '0', + `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', + `ar_flags` tinyblob NOT NULL, + `ar_rev_id` int(10) unsigned DEFAULT NULL, + `ar_text_id` int(10) unsigned DEFAULT NULL, + `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `ar_len` int(10) unsigned DEFAULT NULL, + `ar_page_id` int(10) unsigned DEFAULT NULL, + `ar_parent_id` int(10) unsigned DEFAULT NULL, + `ar_sha1` varbinary(32) NOT NULL DEFAULT '', + `ar_content_format` varbinary(64) DEFAULT NULL, + `ar_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`ar_id`), + KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), + KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), + KEY `ar_revid` (`ar_rev_id`), + KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_commentmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `comment_id` (`comment_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_comments` ( + `comment_ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_post_ID` bigint(20) unsigned NOT NULL DEFAULT '0', + `comment_author` tinytext NOT NULL, + `comment_author_email` varchar(100) NOT NULL DEFAULT '', + `comment_author_url` varchar(200) NOT NULL DEFAULT '', + `comment_author_IP` varchar(100) NOT NULL DEFAULT '', + `comment_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_content` text NOT NULL, + `comment_karma` int(11) NOT NULL DEFAULT '0', + `comment_approved` varchar(20) NOT NULL DEFAULT '1', + `comment_agent` varchar(255) NOT NULL DEFAULT '', + `comment_type` varchar(20) NOT NULL DEFAULT '', + `comment_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`comment_ID`), + KEY `comment_post_ID` (`comment_post_ID`), + KEY `comment_approved_date_gmt` (`comment_approved`,`comment_date_gmt`), + KEY `comment_date_gmt` (`comment_date_gmt`), + KEY `comment_parent` (`comment_parent`), + KEY `comment_author_email` (`comment_author_email`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_links` ( + `link_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `link_url` varchar(255) NOT NULL DEFAULT '', + `link_name` varchar(255) NOT NULL DEFAULT '', + `link_image` varchar(255) NOT NULL DEFAULT '', + `link_target` varchar(25) NOT NULL DEFAULT '', + `link_description` varchar(255) NOT NULL DEFAULT '', + `link_visible` varchar(20) NOT NULL DEFAULT 'Y', + `link_owner` bigint(20) unsigned NOT NULL DEFAULT '1', + `link_rating` int(11) NOT NULL DEFAULT '0', + `link_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `link_rel` varchar(255) NOT NULL DEFAULT '', + `link_notes` mediumtext NOT NULL, + `link_rss` varchar(255) NOT NULL DEFAULT '', + PRIMARY KEY (`link_id`), + KEY `link_visible` (`link_visible`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_options` ( + `option_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `option_name` varchar(64) NOT NULL DEFAULT '', + `option_value` longtext NOT NULL, + `autoload` varchar(20) NOT NULL DEFAULT 'yes', + PRIMARY KEY (`option_id`), + UNIQUE KEY `option_name` (`option_name`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_postmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `post_id` (`post_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_posts` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_author` bigint(20) unsigned NOT NULL DEFAULT '0', + `post_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content` longtext NOT NULL, + `post_title` text NOT NULL, + `post_excerpt` text NOT NULL, + `post_status` varchar(20) NOT NULL DEFAULT 'publish', + `comment_status` varchar(20) NOT NULL DEFAULT 'open', + `ping_status` varchar(20) NOT NULL DEFAULT 'open', + `post_password` varchar(20) NOT NULL DEFAULT '', + `post_name` varchar(200) NOT NULL DEFAULT '', + `to_ping` text NOT NULL, + `pinged` text NOT NULL, + `post_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_modified_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content_filtered` longtext NOT NULL, + `post_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `guid` varchar(255) NOT NULL DEFAULT '', + `menu_order` int(11) NOT NULL DEFAULT '0', + `post_type` varchar(20) NOT NULL DEFAULT 'post', + `post_mime_type` varchar(100) NOT NULL DEFAULT '', + `comment_count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`), + KEY `post_name` (`post_name`), + KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`ID`), + KEY `post_parent` (`post_parent`), + KEY `post_author` (`post_author`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_relationships` ( + `object_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_taxonomy_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`object_id`,`term_taxonomy_id`), + KEY `term_taxonomy_id` (`term_taxonomy_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_taxonomy` ( + `term_taxonomy_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `term_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `taxonomy` varchar(32) NOT NULL DEFAULT '', + `description` longtext NOT NULL, + `parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_taxonomy_id`), + UNIQUE KEY `term_id_taxonomy` (`term_id`,`taxonomy`), + KEY `taxonomy` (`taxonomy`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_terms` ( + `term_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(200) NOT NULL DEFAULT '', + `slug` varchar(200) NOT NULL DEFAULT '', + `term_group` bigint(10) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_id`), + KEY `name` (`name`), + KEY `slug` (`slug`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_usermeta` ( + `umeta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`umeta_id`), + KEY `user_id` (`user_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_users` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_login` varchar(60) NOT NULL DEFAULT '', + `user_pass` varchar(64) NOT NULL DEFAULT '', + `user_nicename` varchar(50) NOT NULL DEFAULT '', + `user_email` varchar(100) NOT NULL DEFAULT '', + `user_url` varchar(100) NOT NULL DEFAULT '', + `user_registered` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `user_activation_key` varchar(60) NOT NULL DEFAULT '', + `user_status` int(11) NOT NULL DEFAULT '0', + `display_name` varchar(250) NOT NULL DEFAULT '', + PRIMARY KEY (`ID`), + KEY `user_login_key` (`user_login`), + KEY `user_nicename` (`user_nicename`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `bot_passwords` ( + `bp_user` int(11) NOT NULL, + `bp_app_id` varbinary(32) 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_restrictions` blob NOT NULL, + `bp_grants` blob NOT NULL, + PRIMARY KEY (`bp_user`,`bp_app_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `category` ( + `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `cat_pages` int(11) NOT NULL DEFAULT '0', + `cat_subcats` int(11) NOT NULL DEFAULT '0', + `cat_files` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`cat_id`), + UNIQUE KEY `cat_title` (`cat_title`), + KEY `cat_pages` (`cat_pages`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `categorylinks` ( + `cl_from` int(10) unsigned NOT NULL DEFAULT '0', + `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', + `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `cl_collation` varbinary(32) NOT NULL DEFAULT '', + `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', + UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), + KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), + KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), + KEY `cl_collation_ext` (`cl_collation`,`cl_to`,`cl_type`,`cl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `change_tag` ( + `ct_rc_id` int(11) DEFAULT NULL, + `ct_log_id` int(11) DEFAULT NULL, + `ct_rev_id` int(11) DEFAULT NULL, + `ct_tag` varchar(255) NOT NULL, + `ct_params` blob, + UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), + UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), + UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), + KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_email_batch` ( + `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `eeb_user_id` int(10) unsigned NOT NULL, + `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', + `eeb_event_id` int(10) unsigned NOT NULL, + `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eeb_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`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_event` ( + `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_agent_id` int(10) unsigned DEFAULT NULL, + `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_page_namespace` int(10) unsigned DEFAULT NULL, + `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_extra` blob, + `event_page_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`event_id`), + KEY `echo_event_type` (`event_type`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_notification` ( + `notification_event` int(10) unsigned NOT NULL, + `notification_user` int(10) unsigned NOT NULL, + `notification_timestamp` binary(14) NOT NULL, + `notification_read_timestamp` binary(14) DEFAULT NULL, + `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', + `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `user_event` (`notification_user`,`notification_event`), + KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), + KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), + KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), + KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), + KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_target_page` ( + `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`etp_id`), + KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), + KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `external_user` ( + `eu_local_id` int(10) unsigned NOT NULL, + `eu_external_id` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eu_local_id`), + UNIQUE KEY `eu_external_id` (`eu_external_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `externallinks` ( + `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `el_from` int(10) unsigned NOT NULL DEFAULT '0', + `el_to` blob NOT NULL, + `el_index` blob NOT NULL, + PRIMARY KEY (`el_id`), + KEY `el_from` (`el_from`,`el_to`(40)), + KEY `el_to` (`el_to`(60),`el_from`), + KEY `el_index` (`el_index`(60)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `filearchive` ( + `fa_id` int(11) NOT NULL AUTO_INCREMENT, + `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', + `fa_storage_group` varbinary(16) DEFAULT NULL, + `fa_storage_key` varbinary(64) DEFAULT '', + `fa_deleted_user` int(11) DEFAULT NULL, + `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted_reason` varbinary(767) DEFAULT '', + `fa_size` int(10) unsigned DEFAULT '0', + `fa_width` int(11) DEFAULT '0', + `fa_height` int(11) DEFAULT '0', + `fa_metadata` mediumblob, + `fa_bits` int(11) DEFAULT '0', + `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `fa_minor_mime` varbinary(100) DEFAULT 'unknown', + `fa_description` varbinary(767) DEFAULT NULL, + `fa_user` int(10) unsigned DEFAULT '0', + `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `fa_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fa_id`), + KEY `fa_name` (`fa_name`,`fa_timestamp`), + KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), + KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), + KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), + KEY `fa_sha1` (`fa_sha1`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedimages` ( + `fi_rev_id` int(10) unsigned NOT NULL, + `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fi_img_timestamp` varbinary(14) DEFAULT NULL, + `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fi_rev_id`,`fi_name`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( + `fpc_page_id` int(10) unsigned NOT NULL, + `fpc_select` int(11) NOT NULL, + `fpc_override` tinyint(1) NOT NULL, + `fpc_level` varbinary(60) DEFAULT NULL, + `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', + PRIMARY KEY (`fpc_page_id`), + KEY `fpc_expiry` (`fpc_expiry`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( + `fpp_page_id` int(10) unsigned NOT NULL, + `fpp_quality` tinyint(1) NOT NULL, + `fpp_rev_id` int(10) unsigned NOT NULL, + `fpp_pending_since` varbinary(14) NOT NULL, + PRIMARY KEY (`fpp_page_id`,`fpp_quality`), + KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpages` ( + `fp_page_id` int(10) unsigned NOT NULL, + `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', + `fp_pending_since` varbinary(14) DEFAULT NULL, + `fp_stable` int(10) unsigned NOT NULL, + `fp_quality` tinyint(1) DEFAULT NULL, + PRIMARY KEY (`fp_page_id`), + KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), + KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), + KEY `fp_pending_since` (`fp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs` ( + `fr_rev_id` int(10) unsigned NOT NULL, + `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', + `fr_page_id` int(10) unsigned NOT NULL, + `fr_user` int(10) unsigned NOT NULL, + `fr_timestamp` varbinary(14) NOT NULL, + `fr_quality` tinyint(1) NOT NULL DEFAULT '0', + `fr_tags` mediumblob NOT NULL, + `fr_flags` tinyblob NOT NULL, + `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fr_img_timestamp` varbinary(14) DEFAULT NULL, + `fr_img_sha1` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`fr_rev_id`), + KEY `page_rev` (`fr_page_id`,`fr_rev_id`), + KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), + KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), + KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), + KEY `fr_img_sha1` (`fr_img_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( + `frp_user_id` int(10) unsigned NOT NULL, + `frp_user_params` mediumblob NOT NULL, + PRIMARY KEY (`frp_user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( + `frs_timestamp` varbinary(14) NOT NULL, + `frs_stat_key` varchar(255) NOT NULL, + `frs_stat_val` bigint(20) NOT NULL, + PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), + KEY `frs_timestamp` (`frs_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( + `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', + `ftr_namespace` int(11) NOT NULL DEFAULT '0', + `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), + KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( + `ft_rev_id` int(10) unsigned NOT NULL, + `ft_namespace` int(11) NOT NULL DEFAULT '0', + `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target` blob NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`(255),`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`(255)) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_revision` ( + `rev_id` binary(11) NOT NULL, + `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', + `rev_user_id` bigint(20) unsigned NOT NULL, + `rev_user_ip` varbinary(39) DEFAULT NULL, + `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_parent_id` binary(11) DEFAULT NULL, + `rev_flags` tinyblob NOT NULL, + `rev_content` mediumblob NOT NULL, + `rev_change_type` varbinary(255) DEFAULT NULL, + `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_mod_user_ip` varbinary(39) DEFAULT NULL, + `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_last_edit_id` binary(11) DEFAULT NULL, + `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_edit_user_ip` varbinary(39) DEFAULT NULL, + `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_content_length` int(11) NOT NULL DEFAULT '0', + `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`rev_id`), + UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), + KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), + KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_subscription` ( + `subscription_workflow_id` int(10) unsigned NOT NULL, + `subscription_user_id` bigint(20) unsigned NOT NULL, + `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), + KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_topic_list` ( + `topic_list_id` binary(11) NOT NULL, + `topic_id` binary(11) DEFAULT NULL, + UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), + KEY `flow_topic_list_topic_id` (`topic_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_node` ( + `tree_ancestor_id` binary(11) NOT NULL, + `tree_descendant_id` binary(11) NOT NULL, + `tree_depth` smallint(6) NOT NULL, + UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), + UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( + `tree_rev_descendant_id` binary(11) NOT NULL, + `tree_rev_id` binary(11) NOT NULL, + `tree_orig_user_id` bigint(20) unsigned NOT NULL, + `tree_orig_user_ip` varbinary(39) DEFAULT NULL, + `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `tree_parent_id` binary(11) DEFAULT NULL, + PRIMARY KEY (`tree_rev_id`), + KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target_namespace` int(11) NOT NULL, + `ref_target_title` varbinary(255) NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_workflow` ( + `workflow_id` binary(11) NOT NULL, + `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_namespace` int(11) NOT NULL, + `workflow_page_id` int(10) unsigned NOT NULL, + `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_last_update_timestamp` binary(14) NOT NULL, + `workflow_lock_state` int(10) unsigned NOT NULL, + `workflow_type` varbinary(16) NOT NULL, + PRIMARY KEY (`workflow_id`), + KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), + KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `historical_thread` ( + `hthread_id` int(8) unsigned NOT NULL, + `hthread_revision` int(8) unsigned NOT NULL, + `hthread_contents` blob NOT NULL, + `hthread_change_type` int(4) unsigned NOT NULL, + `hthread_change_object` int(8) unsigned DEFAULT NULL, + PRIMARY KEY (`hthread_id`,`hthread_revision`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `image` ( + `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `img_size` int(10) unsigned NOT NULL DEFAULT '0', + `img_width` int(11) NOT NULL DEFAULT '0', + `img_height` int(11) NOT NULL DEFAULT '0', + `img_metadata` mediumblob NOT NULL, + `img_bits` int(11) NOT NULL DEFAULT '0', + `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `img_description` varbinary(767) NOT NULL, + `img_user` int(10) unsigned NOT NULL DEFAULT '0', + `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `img_timestamp` varbinary(14) NOT NULL DEFAULT '', + `img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`img_name`), + KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), + KEY `img_size` (`img_size`), + KEY `img_timestamp` (`img_timestamp`), + KEY `img_sha1` (`img_sha1`), + KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `imagelinks` ( + `il_from` int(10) unsigned NOT NULL DEFAULT '0', + `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `il_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `il_from` (`il_from`,`il_to`), + UNIQUE KEY `il_to` (`il_to`,`il_from`), + KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `interwiki` ( + `iw_prefix` varchar(32) NOT NULL, + `iw_url` blob NOT NULL, + `iw_api` blob NOT NULL, + `iw_wikiid` varchar(64) NOT NULL, + `iw_local` tinyint(1) NOT NULL, + `iw_trans` tinyint(4) NOT NULL DEFAULT '0', + UNIQUE KEY `iw_prefix` (`iw_prefix`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `ipblocks` ( + `ipb_id` int(11) NOT NULL AUTO_INCREMENT, + `ipb_address` tinyblob NOT NULL, + `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ipb_reason` varbinary(767) NOT NULL, + `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `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 DEFAULT '', + `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(11) DEFAULT NULL, + PRIMARY KEY (`ipb_id`), + UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), + 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 AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `iwlinks` ( + `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', + `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', + `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), + 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=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `job` ( + `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `job_cmd` varbinary(60) NOT NULL DEFAULT '', + `job_namespace` int(11) NOT NULL, + `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `job_params` blob NOT NULL, + `job_timestamp` varbinary(14) DEFAULT NULL, + `job_random` int(10) unsigned NOT NULL DEFAULT '0', + `job_token` varbinary(32) NOT NULL DEFAULT '', + `job_token_timestamp` varbinary(14) DEFAULT NULL, + `job_sha1` varbinary(32) NOT NULL DEFAULT '', + `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`job_id`), + KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), + KEY `job_timestamp` (`job_timestamp`), + KEY `job_sha1` (`job_sha1`), + KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), + KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `l10n_cache` ( + `lc_lang` varbinary(32) NOT NULL, + `lc_key` varchar(255) NOT NULL, + `lc_value` mediumblob NOT NULL, + KEY `lc_lang_key` (`lc_lang`,`lc_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `langlinks` ( + `ll_from` int(10) unsigned NOT NULL DEFAULT '0', + `ll_lang` varbinary(20) NOT NULL DEFAULT '', + `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), + KEY `ll_lang` (`ll_lang`,`ll_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `log_search` ( + `ls_field` varbinary(32) NOT NULL, + `ls_value` varchar(255) NOT NULL, + `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', + UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), + KEY `ls_log_id` (`ls_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `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_user` int(10) unsigned NOT NULL DEFAULT '0', + `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_namespace` int(11) NOT NULL DEFAULT '0', + `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_page` int(10) unsigned DEFAULT NULL, + `log_comment` varbinary(767) NOT NULL DEFAULT '', + `log_params` blob NOT NULL, + `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`log_id`), + KEY `type_time` (`log_type`,`log_timestamp`), + KEY `user_time` (`log_user`,`log_timestamp`), + KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), + KEY `times` (`log_timestamp`), + KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), + KEY `log_page_id_time` (`log_page`,`log_timestamp`), + KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), + KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), + KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `math` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_outputhash` varbinary(16) NOT NULL, + `math_html_conservativeness` tinyint(4) NOT NULL, + `math_html` text, + `math_mathml` text, + UNIQUE KEY `math_inputhash` (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `mathoid` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_input` text NOT NULL, + `math_tex` text, + `math_mathml` text, + `math_svg` text, + `math_style` tinyint(4) DEFAULT NULL, + `math_input_type` tinyint(4) DEFAULT NULL, + PRIMARY KEY (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `module_deps` ( + `md_module` varbinary(255) NOT NULL, + `md_skin` varbinary(32) NOT NULL, + `md_deps` mediumblob NOT NULL, + UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `objectcache` ( + `keyname` varbinary(255) NOT NULL DEFAULT '', + `value` mediumblob, + `exptime` datetime DEFAULT NULL, + PRIMARY KEY (`keyname`), + KEY `exptime` (`exptime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `oldimage` ( + `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_size` int(10) unsigned NOT NULL DEFAULT '0', + `oi_width` int(11) NOT NULL DEFAULT '0', + `oi_height` int(11) NOT NULL DEFAULT '0', + `oi_bits` int(11) NOT NULL DEFAULT '0', + `oi_description` varbinary(767) NOT NULL, + `oi_user` int(10) unsigned NOT NULL DEFAULT '0', + `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `oi_metadata` mediumblob NOT NULL, + `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `oi_sha1` varbinary(32) NOT NULL DEFAULT '', + KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), + KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), + KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), + KEY `oi_sha1` (`oi_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page` ( + `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `page_namespace` int(11) NOT NULL, + `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `page_restrictions` tinyblob NOT NULL, + `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_random` double unsigned NOT NULL, + `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `page_latest` int(10) unsigned NOT NULL, + `page_len` int(10) unsigned NOT NULL, + `page_content_model` varbinary(32) DEFAULT NULL, + `page_links_updated` varbinary(14) DEFAULT NULL, + `page_lang` varbinary(35) DEFAULT NULL, + PRIMARY KEY (`page_id`), + UNIQUE KEY `name_title` (`page_namespace`,`page_title`), + KEY `page_random` (`page_random`), + KEY `page_len` (`page_len`), + KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_props` ( + `pp_page` int(11) NOT NULL, + `pp_propname` varbinary(60) NOT NULL, + `pp_value` blob NOT NULL, + `pp_sortkey` float DEFAULT NULL, + UNIQUE KEY `pp_page_propname` (`pp_page`,`pp_propname`), + UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), + UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_restrictions` ( + `pr_page` int(11) NOT NULL, + `pr_type` varbinary(60) NOT NULL, + `pr_level` varbinary(60) NOT NULL, + `pr_cascade` tinyint(4) NOT NULL, + `pr_user` int(11) DEFAULT NULL, + `pr_expiry` varbinary(14) DEFAULT NULL, + `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`pr_id`), + UNIQUE KEY `pr_pagetype` (`pr_page`,`pr_type`), + KEY `pr_typelevel` (`pr_type`,`pr_level`), + KEY `pr_level` (`pr_level`), + KEY `pr_cascade` (`pr_cascade`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `pagelinks` ( + `pl_from` int(10) unsigned NOT NULL DEFAULT '0', + `pl_namespace` int(11) NOT NULL DEFAULT '0', + `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `pl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), + UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), + KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `protected_titles` ( + `pt_namespace` int(11) NOT NULL, + `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `pt_user` int(10) unsigned NOT NULL, + `pt_reason` varbinary(767) DEFAULT NULL, + `pt_timestamp` binary(14) NOT NULL, + `pt_expiry` varbinary(14) NOT NULL DEFAULT '', + `pt_create_perm` varbinary(60) NOT NULL, + UNIQUE KEY `pt_namespace_title` (`pt_namespace`,`pt_title`), + KEY `pt_timestamp` (`pt_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache` ( + `qc_type` varbinary(32) NOT NULL, + `qc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qc_namespace` int(11) NOT NULL DEFAULT '0', + `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qc_type` (`qc_type`,`qc_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache_info` ( + `qci_type` varbinary(32) NOT NULL DEFAULT '', + `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', + UNIQUE KEY `qci_type` (`qci_type`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycachetwo` ( + `qcc_type` varbinary(32) NOT NULL, + `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qcc_namespace` int(11) NOT NULL DEFAULT '0', + `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', + `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qcc_type` (`qcc_type`,`qcc_value`), + KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), + KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `recentchanges` ( + `rc_id` int(11) NOT NULL AUTO_INCREMENT, + `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', + `rc_user` int(10) unsigned NOT NULL DEFAULT '0', + `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rc_namespace` int(11) NOT NULL DEFAULT '0', + `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rc_comment` varbinary(767) NOT NULL DEFAULT '', + `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', + `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_ip` varbinary(40) NOT NULL DEFAULT '', + `rc_old_len` int(11) DEFAULT NULL, + `rc_new_len` int(11) DEFAULT NULL, + `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_log_type` varbinary(255) DEFAULT NULL, + `rc_log_action` varbinary(255) DEFAULT NULL, + `rc_params` blob, + `rc_source` varbinary(16) NOT NULL DEFAULT '', + PRIMARY KEY (`rc_id`), + KEY `rc_timestamp` (`rc_timestamp`), + KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), + KEY `rc_cur_id` (`rc_cur_id`), + KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), + KEY `rc_ip` (`rc_ip`), + KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), + KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `redirect` ( + `rd_from` int(10) unsigned NOT NULL DEFAULT '0', + `rd_namespace` int(11) NOT NULL DEFAULT '0', + `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rd_interwiki` varchar(32) DEFAULT NULL, + `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + PRIMARY KEY (`rd_from`), + KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `revision` ( + `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `rev_page` int(10) unsigned NOT NULL, + `rev_text_id` int(10) unsigned NOT NULL, + `rev_comment` varbinary(767) NOT NULL, + `rev_user` int(10) unsigned NOT NULL DEFAULT '0', + `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_len` int(10) unsigned DEFAULT NULL, + `rev_parent_id` int(10) unsigned DEFAULT NULL, + `rev_sha1` varbinary(32) NOT NULL DEFAULT '', + `rev_content_format` varbinary(64) DEFAULT NULL, + `rev_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`rev_id`), + UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), + KEY `rev_timestamp` (`rev_timestamp`), + KEY `page_timestamp` (`rev_page`,`rev_timestamp`), + KEY `user_timestamp` (`rev_user`,`rev_timestamp`), + KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), + KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `searchindex` ( + `si_page` int(10) unsigned NOT NULL, + `si_title` varchar(255) NOT NULL DEFAULT '', + `si_text` mediumtext NOT NULL, + UNIQUE KEY `si_page` (`si_page`), + FULLTEXT KEY `si_title` (`si_title`), + FULLTEXT KEY `si_text` (`si_text`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_identifiers` ( + `si_site` int(10) unsigned NOT NULL, + `si_type` varbinary(32) NOT NULL, + `si_key` varbinary(32) NOT NULL, + UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), + KEY `site_ids_site` (`si_site`), + KEY `site_ids_key` (`si_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_stats` ( + `ss_row_id` int(10) unsigned NOT NULL, + `ss_total_edits` bigint(20) unsigned DEFAULT '0', + `ss_good_articles` bigint(20) unsigned DEFAULT '0', + `ss_total_pages` bigint(20) DEFAULT '-1', + `ss_users` bigint(20) DEFAULT '-1', + `ss_active_users` bigint(20) DEFAULT '-1', + `ss_images` int(11) DEFAULT '0', + UNIQUE KEY `ss_row_id` (`ss_row_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `sites` ( + `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `site_global_key` varbinary(32) NOT NULL, + `site_type` varbinary(32) NOT NULL, + `site_group` varbinary(32) NOT NULL, + `site_source` varbinary(32) NOT NULL, + `site_language` varbinary(32) NOT NULL, + `site_protocol` varbinary(32) NOT NULL, + `site_domain` varchar(255) NOT NULL, + `site_data` blob NOT NULL, + `site_forward` tinyint(1) NOT NULL, + `site_config` blob NOT NULL, + PRIMARY KEY (`site_id`), + UNIQUE KEY `sites_global_key` (`site_global_key`), + KEY `sites_type` (`site_type`), + KEY `sites_group` (`site_group`), + KEY `sites_source` (`site_source`), + KEY `sites_language` (`site_language`), + KEY `sites_protocol` (`site_protocol`), + KEY `sites_domain` (`site_domain`), + KEY `sites_forward` (`site_forward`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `tag_summary` ( + `ts_rc_id` int(11) DEFAULT NULL, + `ts_log_id` int(11) DEFAULT NULL, + `ts_rev_id` int(11) DEFAULT NULL, + `ts_tags` blob NOT NULL, + UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), + UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), + UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `templatelinks` ( + `tl_from` int(10) unsigned NOT NULL DEFAULT '0', + `tl_namespace` int(11) NOT NULL DEFAULT '0', + `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `tl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), + UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), + KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `text` ( + `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `old_text` mediumblob NOT NULL, + `old_flags` tinyblob NOT NULL, + PRIMARY KEY (`old_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread` ( + `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, + `thread_root` int(8) unsigned NOT NULL, + `thread_ancestor` int(8) unsigned NOT NULL, + `thread_parent` int(8) unsigned DEFAULT NULL, + `thread_summary_page` int(8) unsigned DEFAULT NULL, + `thread_subject` varchar(255) DEFAULT NULL, + `thread_author_id` int(10) unsigned DEFAULT NULL, + `thread_author_name` varchar(255) DEFAULT NULL, + `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_editedness` int(1) NOT NULL DEFAULT '0', + `thread_article_namespace` int(11) NOT NULL, + `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `thread_article_id` int(8) unsigned NOT NULL, + `thread_type` int(4) unsigned NOT NULL DEFAULT '0', + `thread_sortkey` varchar(255) NOT NULL DEFAULT '', + `thread_replies` int(8) DEFAULT '-1', + `thread_signature` tinyblob, + PRIMARY KEY (`thread_id`), + UNIQUE KEY `thread_root` (`thread_root`), + UNIQUE KEY `thread_root_2` (`thread_root`), + KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), + KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), + KEY `thread_article` (`thread_article_id`,`thread_sortkey`), + KEY `thread_modified` (`thread_modified`), + KEY `thread_created` (`thread_created`), + KEY `thread_summary_page` (`thread_summary_page`), + KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), + KEY `thread_sortkey` (`thread_sortkey`), + KEY `thread_parent` (`thread_parent`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_history` ( + `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `th_thread` int(10) unsigned NOT NULL, + `th_timestamp` varbinary(14) NOT NULL, + `th_user` int(10) unsigned NOT NULL, + `th_user_text` varchar(255) NOT NULL, + `th_change_type` int(10) unsigned NOT NULL, + `th_change_object` int(10) unsigned NOT NULL, + `th_change_comment` tinytext NOT NULL, + `th_content` longblob NOT NULL, + PRIMARY KEY (`th_id`), + KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), + KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), + KEY `th_user_text` (`th_user`,`th_user_text`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( + `tpr_thread` int(10) unsigned NOT NULL, + `tpr_relationship` varbinary(64) NOT NULL, + `tpr_title` varbinary(255) NOT NULL, + `tpr_type` varbinary(32) NOT NULL, + PRIMARY KEY (`tpr_thread`,`tpr_relationship`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_reaction` ( + `tr_thread` int(10) unsigned NOT NULL, + `tr_user` int(10) unsigned NOT NULL, + `tr_user_text` varbinary(255) NOT NULL, + `tr_type` varbinary(64) NOT NULL, + `tr_value` int(11) NOT NULL, + PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), + KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `trackbacks` ( + `tb_id` int(11) NOT NULL AUTO_INCREMENT, + `tb_page` int(11) DEFAULT NULL, + `tb_title` varchar(255) NOT NULL, + `tb_url` blob NOT NULL, + `tb_ex` text, + `tb_name` varchar(255) DEFAULT NULL, + PRIMARY KEY (`tb_id`), + KEY `tb_page` (`tb_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `transcache` ( + `tc_url` varbinary(255) NOT NULL, + `tc_contents` text, + `tc_time` binary(14) DEFAULT NULL, + UNIQUE KEY `tc_url_idx` (`tc_url`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `updatelog` ( + `ul_key` varchar(255) NOT NULL, + `ul_value` blob, + PRIMARY KEY (`ul_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `uploadstash` ( + `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `us_user` int(10) unsigned NOT NULL, + `us_key` varchar(255) NOT NULL, + `us_orig_path` varchar(255) NOT NULL, + `us_path` varchar(255) NOT NULL, + `us_source_type` varchar(50) DEFAULT NULL, + `us_timestamp` varbinary(14) NOT NULL, + `us_status` varchar(50) NOT NULL, + `us_size` int(10) unsigned NOT NULL, + `us_sha1` varchar(31) NOT NULL, + `us_mime` varchar(255) DEFAULT NULL, + `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `us_image_width` int(10) unsigned DEFAULT NULL, + `us_image_height` int(10) unsigned DEFAULT NULL, + `us_image_bits` smallint(5) unsigned DEFAULT NULL, + `us_chunk_inx` int(10) unsigned DEFAULT NULL, + `us_props` blob, + PRIMARY KEY (`us_id`), + UNIQUE KEY `us_key` (`us_key`), + KEY `us_user` (`us_user`), + KEY `us_timestamp` (`us_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user` ( + `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_password` tinyblob NOT NULL, + `user_newpassword` tinyblob NOT NULL, + `user_newpass_time` binary(14) DEFAULT NULL, + `user_email` tinytext NOT NULL, + `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `user_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', + `user_email_authenticated` binary(14) DEFAULT NULL, + `user_email_token` binary(32) DEFAULT NULL, + `user_email_token_expires` binary(14) DEFAULT NULL, + `user_registration` binary(14) DEFAULT NULL, + `user_editcount` int(11) DEFAULT NULL, + PRIMARY KEY (`user_id`), + UNIQUE KEY `user_name` (`user_name`), + KEY `user_email_token` (`user_email_token`), + KEY `user_email` (`user_email`(50)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_former_groups` ( + `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', + `ufg_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_groups` ( + `ug_user` int(10) unsigned NOT NULL DEFAULT '0', + `ug_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), + KEY `ug_group` (`ug_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_message_state` ( + `ums_user` int(10) unsigned NOT NULL, + `ums_thread` int(8) unsigned NOT NULL, + `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', + `ums_read_timestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`ums_user`,`ums_thread`), + KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_newtalk` ( + `user_id` int(10) unsigned NOT NULL DEFAULT '0', + `user_ip` varbinary(40) NOT NULL DEFAULT '', + `user_last_timestamp` varbinary(14) DEFAULT NULL, + KEY `un_user_id` (`user_id`), + KEY `un_user_ip` (`user_ip`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_properties` ( + `up_user` int(11) NOT NULL, + `up_property` varbinary(255) DEFAULT NULL, + `up_value` blob, + UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), + KEY `user_properties_property` (`up_property`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `valid_tag` ( + `vt_tag` varchar(255) NOT NULL, + PRIMARY KEY (`vt_tag`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `watchlist` ( + `wl_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `wl_user` int(10) unsigned NOT NULL, + `wl_namespace` int(11) NOT NULL DEFAULT '0', + `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`wl_id`), + UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), + KEY `namespace_title` (`wl_namespace`,`wl_title`), + KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + diff --git a/DeveloperDump/enwikitolearn.struct.sql b/DeveloperDump/enwikitolearn.struct.sql index cd9504d..daa02f6 100644 --- a/DeveloperDump/enwikitolearn.struct.sql +++ b/DeveloperDump/enwikitolearn.struct.sql @@ -1,1178 +1,1380 @@ - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; -/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; -/*!40103 SET TIME_ZONE='+00:00' */; -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `archive` ( - `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `ar_namespace` int(11) NOT NULL DEFAULT '0', - `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ar_text` mediumblob NOT NULL, - `ar_comment` varbinary(767) NOT NULL, - `ar_user` int(10) unsigned NOT NULL DEFAULT '0', - `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', - `ar_flags` tinyblob NOT NULL, - `ar_rev_id` int(10) unsigned DEFAULT NULL, - `ar_text_id` int(10) unsigned DEFAULT NULL, - `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `ar_len` int(10) unsigned DEFAULT NULL, - `ar_page_id` int(10) unsigned DEFAULT NULL, - `ar_parent_id` int(10) unsigned DEFAULT NULL, - `ar_sha1` varbinary(32) NOT NULL DEFAULT '', - `ar_content_model` varbinary(32) DEFAULT NULL, - `ar_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`ar_id`), - KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), - KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), - KEY `ar_revid` (`ar_rev_id`), - KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `category` ( - `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `cat_pages` int(11) NOT NULL DEFAULT '0', - `cat_subcats` int(11) NOT NULL DEFAULT '0', - `cat_files` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`cat_id`), - UNIQUE KEY `cat_title` (`cat_title`), - KEY `cat_pages` (`cat_pages`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `categorylinks` ( - `cl_from` int(10) unsigned NOT NULL DEFAULT '0', - `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', - `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `cl_collation` varbinary(32) NOT NULL DEFAULT '', - `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', - UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), - KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), - KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), - KEY `cl_collation` (`cl_collation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `change_tag` ( - `ct_rc_id` int(11) DEFAULT NULL, - `ct_log_id` int(11) DEFAULT NULL, - `ct_rev_id` int(11) DEFAULT NULL, - `ct_tag` varchar(255) NOT NULL, - `ct_params` blob, - UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), - UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), - UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), - KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_email_batch` ( - `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `eeb_user_id` int(10) unsigned NOT NULL, - `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', - `eeb_event_id` int(10) unsigned NOT NULL, - `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - PRIMARY KEY (`eeb_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`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_event` ( - `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_agent_id` int(10) unsigned DEFAULT NULL, - `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_page_namespace` int(10) unsigned DEFAULT NULL, - `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_extra` blob, - `event_page_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`event_id`), - KEY `echo_event_type` (`event_type`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_notification` ( - `notification_event` int(10) unsigned NOT NULL, - `notification_user` int(10) unsigned NOT NULL, - `notification_timestamp` binary(14) NOT NULL, - `notification_read_timestamp` binary(14) DEFAULT NULL, - `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', - `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `user_event` (`notification_user`,`notification_event`), - KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), - KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), - KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), - KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), - KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_target_page` ( - `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`etp_id`), - KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), - KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `externallinks` ( - `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `el_from` int(10) unsigned NOT NULL DEFAULT '0', - `el_to` blob NOT NULL, - `el_index` blob NOT NULL, - PRIMARY KEY (`el_id`), - KEY `el_from` (`el_from`,`el_to`(40)), - KEY `el_to` (`el_to`(60),`el_from`), - KEY `el_index` (`el_index`(60)) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `filearchive` ( - `fa_id` int(11) NOT NULL AUTO_INCREMENT, - `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', - `fa_storage_group` varbinary(16) DEFAULT NULL, - `fa_storage_key` varbinary(64) DEFAULT '', - `fa_deleted_user` int(11) DEFAULT NULL, - `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted_reason` varbinary(767) DEFAULT '', - `fa_size` int(10) unsigned DEFAULT '0', - `fa_width` int(11) DEFAULT '0', - `fa_height` int(11) DEFAULT '0', - `fa_metadata` mediumblob, - `fa_bits` int(11) DEFAULT '0', - `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `fa_minor_mime` varbinary(100) DEFAULT 'unknown', - `fa_description` varbinary(767) DEFAULT NULL, - `fa_user` int(10) unsigned DEFAULT '0', - `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `fa_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fa_id`), - KEY `fa_name` (`fa_name`,`fa_timestamp`), - KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), - KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), - KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), - KEY `fa_sha1` (`fa_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedimages` ( - `fi_rev_id` int(10) unsigned NOT NULL, - `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fi_img_timestamp` varbinary(14) DEFAULT NULL, - `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fi_rev_id`,`fi_name`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( - `fpc_page_id` int(10) unsigned NOT NULL, - `fpc_select` int(11) NOT NULL, - `fpc_override` tinyint(1) NOT NULL, - `fpc_level` varbinary(60) DEFAULT NULL, - `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', - PRIMARY KEY (`fpc_page_id`), - KEY `fpc_expiry` (`fpc_expiry`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( - `fpp_page_id` int(10) unsigned NOT NULL, - `fpp_quality` tinyint(1) NOT NULL, - `fpp_rev_id` int(10) unsigned NOT NULL, - `fpp_pending_since` varbinary(14) NOT NULL, - PRIMARY KEY (`fpp_page_id`,`fpp_quality`), - KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpages` ( - `fp_page_id` int(10) unsigned NOT NULL, - `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', - `fp_pending_since` varbinary(14) DEFAULT NULL, - `fp_stable` int(10) unsigned NOT NULL, - `fp_quality` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`fp_page_id`), - KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), - KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), - KEY `fp_pending_since` (`fp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs` ( - `fr_rev_id` int(10) unsigned NOT NULL, - `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', - `fr_page_id` int(10) unsigned NOT NULL, - `fr_user` int(10) unsigned NOT NULL, - `fr_timestamp` varbinary(14) NOT NULL, - `fr_quality` tinyint(1) NOT NULL DEFAULT '0', - `fr_tags` mediumblob NOT NULL, - `fr_flags` tinyblob NOT NULL, - `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fr_img_timestamp` varbinary(14) DEFAULT NULL, - `fr_img_sha1` varbinary(32) DEFAULT NULL, - PRIMARY KEY (`fr_rev_id`), - KEY `page_rev` (`fr_page_id`,`fr_rev_id`), - KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), - KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), - KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), - KEY `fr_img_sha1` (`fr_img_sha1`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( - `frp_user_id` int(10) unsigned NOT NULL, - `frp_user_params` mediumblob NOT NULL, - PRIMARY KEY (`frp_user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( - `frs_timestamp` varbinary(14) NOT NULL, - `frs_stat_key` varchar(255) NOT NULL, - `frs_stat_val` bigint(20) NOT NULL, - PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), - KEY `frs_timestamp` (`frs_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( - `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', - `ftr_namespace` int(11) NOT NULL DEFAULT '0', - `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), - KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( - `ft_rev_id` int(10) unsigned NOT NULL, - `ft_namespace` int(11) NOT NULL DEFAULT '0', - `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_revision` ( - `rev_id` binary(11) NOT NULL, - `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', - `rev_user_id` bigint(20) unsigned NOT NULL, - `rev_user_ip` varbinary(39) DEFAULT NULL, - `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_parent_id` binary(11) DEFAULT NULL, - `rev_flags` tinyblob NOT NULL, - `rev_content` mediumblob NOT NULL, - `rev_change_type` varbinary(255) DEFAULT NULL, - `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_mod_user_ip` varbinary(39) DEFAULT NULL, - `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_last_edit_id` binary(11) DEFAULT NULL, - `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_edit_user_ip` varbinary(39) DEFAULT NULL, - `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_content_length` int(11) NOT NULL DEFAULT '0', - `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`rev_id`), - UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), - KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), - KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_subscription` ( - `subscription_workflow_id` int(10) unsigned NOT NULL, - `subscription_user_id` bigint(20) unsigned NOT NULL, - `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), - KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_topic_list` ( - `topic_list_id` binary(11) NOT NULL, - `topic_id` binary(11) DEFAULT NULL, - UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), - KEY `flow_topic_list_topic_id` (`topic_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_node` ( - `tree_ancestor_id` binary(11) NOT NULL, - `tree_descendant_id` binary(11) NOT NULL, - `tree_depth` smallint(6) NOT NULL, - UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), - UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( - `tree_rev_descendant_id` binary(11) NOT NULL, - `tree_rev_id` binary(11) NOT NULL, - `tree_orig_user_id` bigint(20) unsigned NOT NULL, - `tree_orig_user_ip` varbinary(39) DEFAULT NULL, - `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tree_parent_id` binary(11) DEFAULT NULL, - PRIMARY KEY (`tree_rev_id`), - KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target_namespace` int(11) NOT NULL, - `ref_target_title` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_workflow` ( - `workflow_id` binary(11) NOT NULL, - `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_namespace` int(11) NOT NULL, - `workflow_page_id` int(10) unsigned NOT NULL, - `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_last_update_timestamp` binary(14) NOT NULL, - `workflow_lock_state` int(10) unsigned NOT NULL, - `workflow_type` varbinary(16) NOT NULL, - PRIMARY KEY (`workflow_id`), - KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), - KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `historical_thread` ( - `hthread_id` int(8) unsigned NOT NULL, - `hthread_revision` int(8) unsigned NOT NULL, - `hthread_contents` blob NOT NULL, - `hthread_change_type` int(4) unsigned NOT NULL, - `hthread_change_object` int(8) unsigned DEFAULT NULL, - PRIMARY KEY (`hthread_id`,`hthread_revision`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `image` ( - `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `img_size` int(10) unsigned NOT NULL DEFAULT '0', - `img_width` int(11) NOT NULL DEFAULT '0', - `img_height` int(11) NOT NULL DEFAULT '0', - `img_metadata` mediumblob NOT NULL, - `img_bits` int(11) NOT NULL DEFAULT '0', - `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `img_description` varbinary(767) NOT NULL, - `img_user` int(10) unsigned NOT NULL DEFAULT '0', - `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `img_timestamp` varbinary(14) NOT NULL DEFAULT '', - `img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`img_name`), - KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), - KEY `img_size` (`img_size`), - KEY `img_timestamp` (`img_timestamp`), - KEY `img_sha1` (`img_sha1`(10)), - KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `imagelinks` ( - `il_from` int(10) unsigned NOT NULL DEFAULT '0', - `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `il_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `il_from` (`il_from`,`il_to`), - UNIQUE KEY `il_to` (`il_to`,`il_from`), - KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `interwiki` ( - `iw_prefix` varchar(32) NOT NULL, - `iw_url` blob NOT NULL, - `iw_local` tinyint(1) NOT NULL, - `iw_trans` tinyint(4) NOT NULL DEFAULT '0', - `iw_api` blob NOT NULL, - `iw_wikiid` varchar(64) NOT NULL, - UNIQUE KEY `iw_prefix` (`iw_prefix`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ipblocks` ( - `ipb_id` int(11) NOT NULL AUTO_INCREMENT, - `ipb_address` tinyblob NOT NULL, - `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ipb_reason` varbinary(767) NOT NULL, - `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `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 DEFAULT '', - `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(11) DEFAULT NULL, - PRIMARY KEY (`ipb_id`), - UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `iwlinks` ( - `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', - `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', - `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `job` ( - `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `job_cmd` varbinary(60) NOT NULL DEFAULT '', - `job_namespace` int(11) NOT NULL, - `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `job_params` blob NOT NULL, - `job_timestamp` varbinary(14) DEFAULT NULL, - `job_random` int(10) unsigned NOT NULL DEFAULT '0', - `job_token` varbinary(32) NOT NULL DEFAULT '', - `job_token_timestamp` varbinary(14) DEFAULT NULL, - `job_sha1` varbinary(32) NOT NULL DEFAULT '', - `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', - PRIMARY KEY (`job_id`), - KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), - KEY `job_timestamp` (`job_timestamp`), - KEY `job_sha1` (`job_sha1`), - KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), - KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `l10n_cache` ( - `lc_lang` varbinary(32) NOT NULL, - `lc_key` varchar(255) NOT NULL, - `lc_value` mediumblob NOT NULL, - KEY `lc_lang_key` (`lc_lang`,`lc_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `langlinks` ( - `ll_from` int(10) unsigned NOT NULL DEFAULT '0', - `ll_lang` varbinary(20) NOT NULL DEFAULT '', - `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), - KEY `ll_lang` (`ll_lang`,`ll_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `log_search` ( - `ls_field` varbinary(32) NOT NULL, - `ls_value` varchar(255) NOT NULL, - `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', - UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), - KEY `ls_log_id` (`ls_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `logging` ( - `log_type` varbinary(32) NOT NULL, - `log_action` varbinary(32) NOT NULL, - `log_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - `log_user` int(10) unsigned NOT NULL DEFAULT '0', - `log_namespace` int(11) NOT NULL DEFAULT '0', - `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_comment` varbinary(767) NOT NULL DEFAULT '', - `log_params` blob NOT NULL, - `log_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_page` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`log_id`), - KEY `type_time` (`log_type`,`log_timestamp`), - KEY `user_time` (`log_user`,`log_timestamp`), - KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), - KEY `times` (`log_timestamp`), - KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), - KEY `log_page_id_time` (`log_page`,`log_timestamp`), - KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), - KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), - KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `math` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_outputhash` varbinary(16) NOT NULL, - `math_html_conservativeness` tinyint(4) NOT NULL, - `math_html` text, - `math_mathml` text, - UNIQUE KEY `math_inputhash` (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mathoid` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_input` text NOT NULL, - `math_tex` text, - `math_mathml` text, - `math_svg` text, - `math_style` tinyint(4) DEFAULT NULL, - `math_input_type` tinyint(4) DEFAULT NULL, - PRIMARY KEY (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `module_deps` ( - `md_module` varbinary(255) NOT NULL, - `md_skin` varbinary(32) NOT NULL, - `md_deps` mediumblob NOT NULL, - UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource` ( - `mr_resource` varbinary(255) NOT NULL, - `mr_lang` varbinary(32) NOT NULL, - `mr_blob` mediumblob NOT NULL, - `mr_timestamp` binary(14) NOT NULL, - UNIQUE KEY `mr_resource_lang` (`mr_resource`,`mr_lang`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource_links` ( - `mrl_resource` varbinary(255) NOT NULL, - `mrl_message` varbinary(255) NOT NULL, - UNIQUE KEY `mrl_message_resource` (`mrl_message`,`mrl_resource`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `objectcache` ( - `keyname` varbinary(255) NOT NULL DEFAULT '', - `value` mediumblob, - `exptime` datetime DEFAULT NULL, - UNIQUE KEY `keyname` (`keyname`), - KEY `exptime` (`exptime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `oldimage` ( - `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_size` int(10) unsigned NOT NULL DEFAULT '0', - `oi_width` int(11) NOT NULL DEFAULT '0', - `oi_height` int(11) NOT NULL DEFAULT '0', - `oi_bits` int(11) NOT NULL DEFAULT '0', - `oi_description` varbinary(767) NOT NULL, - `oi_user` int(10) unsigned NOT NULL DEFAULT '0', - `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `oi_metadata` mediumblob NOT NULL, - `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `oi_sha1` varbinary(32) NOT NULL DEFAULT '', - KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), - KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), - KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), - KEY `oi_sha1` (`oi_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page` ( - `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `page_namespace` int(11) NOT NULL, - `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `page_restrictions` tinyblob NOT NULL, - `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_random` double unsigned NOT NULL, - `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `page_latest` int(10) unsigned NOT NULL, - `page_len` int(10) unsigned NOT NULL, - `page_content_model` varbinary(32) DEFAULT NULL, - `page_links_updated` varbinary(14) DEFAULT NULL, - `page_lang` varbinary(35) DEFAULT NULL, - PRIMARY KEY (`page_id`), - UNIQUE KEY `name_title` (`page_namespace`,`page_title`), - KEY `page_random` (`page_random`), - KEY `page_len` (`page_len`), - KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_props` ( - `pp_page` int(11) NOT NULL, - `pp_propname` varbinary(60) NOT NULL, - `pp_value` blob NOT NULL, - `pp_sortkey` float DEFAULT NULL, - PRIMARY KEY (`pp_page`,`pp_propname`), - UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), - UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_restrictions` ( - `pr_page` int(11) NOT NULL, - `pr_type` varbinary(60) NOT NULL, - `pr_level` varbinary(60) NOT NULL, - `pr_cascade` tinyint(4) NOT NULL, - `pr_user` int(11) DEFAULT NULL, - `pr_expiry` varbinary(14) DEFAULT NULL, - `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`pr_page`,`pr_type`), - UNIQUE KEY `pr_id` (`pr_id`), - KEY `pr_typelevel` (`pr_type`,`pr_level`), - KEY `pr_level` (`pr_level`), - KEY `pr_cascade` (`pr_cascade`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pagelinks` ( - `pl_from` int(10) unsigned NOT NULL DEFAULT '0', - `pl_namespace` int(11) NOT NULL DEFAULT '0', - `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `pl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), - UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), - KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `protected_titles` ( - `pt_namespace` int(11) NOT NULL, - `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `pt_user` int(10) unsigned NOT NULL, - `pt_reason` varbinary(767) DEFAULT NULL, - `pt_timestamp` binary(14) NOT NULL, - `pt_expiry` varbinary(14) NOT NULL DEFAULT '', - `pt_create_perm` varbinary(60) NOT NULL, - PRIMARY KEY (`pt_namespace`,`pt_title`), - KEY `pt_timestamp` (`pt_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache` ( - `qc_type` varbinary(32) NOT NULL, - `qc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qc_namespace` int(11) NOT NULL DEFAULT '0', - `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qc_type` (`qc_type`,`qc_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache_info` ( - `qci_type` varbinary(32) NOT NULL DEFAULT '', - `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - UNIQUE KEY `qci_type` (`qci_type`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycachetwo` ( - `qcc_type` varbinary(32) NOT NULL, - `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qcc_namespace` int(11) NOT NULL DEFAULT '0', - `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', - `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qcc_type` (`qcc_type`,`qcc_value`), - KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), - KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `recentchanges` ( - `rc_id` int(11) NOT NULL AUTO_INCREMENT, - `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', - `rc_user` int(10) unsigned NOT NULL DEFAULT '0', - `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rc_namespace` int(11) NOT NULL, - `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rc_comment` varbinary(767) NOT NULL DEFAULT '', - `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', - `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_ip` varbinary(40) NOT NULL DEFAULT '', - `rc_old_len` int(11) DEFAULT NULL, - `rc_new_len` int(11) DEFAULT NULL, - `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_log_type` varbinary(255) DEFAULT NULL, - `rc_log_action` varbinary(255) DEFAULT NULL, - `rc_params` blob, - `rc_source` varbinary(16) NOT NULL DEFAULT '', - PRIMARY KEY (`rc_id`), - KEY `rc_timestamp` (`rc_timestamp`), - KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), - KEY `rc_cur_id` (`rc_cur_id`), - KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), - KEY `rc_ip` (`rc_ip`), - KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), - KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `redirect` ( - `rd_from` int(10) unsigned NOT NULL DEFAULT '0', - `rd_namespace` int(11) NOT NULL DEFAULT '0', - `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rd_interwiki` varchar(32) DEFAULT NULL, - `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - PRIMARY KEY (`rd_from`), - KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `revision` ( - `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `rev_page` int(10) unsigned NOT NULL, - `rev_text_id` int(10) unsigned NOT NULL, - `rev_comment` varbinary(767) NOT NULL, - `rev_user` int(10) unsigned NOT NULL DEFAULT '0', - `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_len` int(10) unsigned DEFAULT NULL, - `rev_parent_id` int(10) unsigned DEFAULT NULL, - `rev_sha1` varbinary(32) NOT NULL DEFAULT '', - `rev_content_model` varbinary(32) DEFAULT NULL, - `rev_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`rev_id`), - UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), - KEY `rev_timestamp` (`rev_timestamp`), - KEY `page_timestamp` (`rev_page`,`rev_timestamp`), - KEY `user_timestamp` (`rev_user`,`rev_timestamp`), - KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), - KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `searchindex` ( - `si_page` int(10) unsigned NOT NULL, - `si_title` varchar(255) NOT NULL DEFAULT '', - `si_text` mediumtext NOT NULL, - FULLTEXT KEY `si_title` (`si_title`), - FULLTEXT KEY `si_text` (`si_text`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_identifiers` ( - `si_site` int(10) unsigned NOT NULL, - `si_type` varbinary(32) NOT NULL, - `si_key` varbinary(32) NOT NULL, - UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), - KEY `site_ids_site` (`si_site`), - KEY `site_ids_key` (`si_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_stats` ( - `ss_row_id` int(10) unsigned NOT NULL, - `ss_total_edits` bigint(20) unsigned DEFAULT '0', - `ss_good_articles` bigint(20) unsigned DEFAULT '0', - `ss_total_pages` bigint(20) DEFAULT '-1', - `ss_users` bigint(20) DEFAULT '-1', - `ss_active_users` bigint(20) DEFAULT '-1', - `ss_images` int(11) DEFAULT '0', - UNIQUE KEY `ss_row_id` (`ss_row_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `sites` ( - `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `site_global_key` varbinary(32) NOT NULL, - `site_type` varbinary(32) NOT NULL, - `site_group` varbinary(32) NOT NULL, - `site_source` varbinary(32) NOT NULL, - `site_language` varbinary(32) NOT NULL, - `site_protocol` varbinary(32) NOT NULL, - `site_domain` varchar(255) NOT NULL, - `site_data` blob NOT NULL, - `site_forward` tinyint(1) NOT NULL, - `site_config` blob NOT NULL, - PRIMARY KEY (`site_id`), - UNIQUE KEY `sites_global_key` (`site_global_key`), - KEY `sites_type` (`site_type`), - KEY `sites_group` (`site_group`), - KEY `sites_source` (`site_source`), - KEY `sites_language` (`site_language`), - KEY `sites_protocol` (`site_protocol`), - KEY `sites_domain` (`site_domain`), - KEY `sites_forward` (`site_forward`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `tag_summary` ( - `ts_rc_id` int(11) DEFAULT NULL, - `ts_log_id` int(11) DEFAULT NULL, - `ts_rev_id` int(11) DEFAULT NULL, - `ts_tags` blob NOT NULL, - UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), - UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), - UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `templatelinks` ( - `tl_from` int(10) unsigned NOT NULL DEFAULT '0', - `tl_namespace` int(11) NOT NULL DEFAULT '0', - `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `tl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), - UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), - KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `text` ( - `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `old_text` mediumblob NOT NULL, - `old_flags` tinyblob NOT NULL, - PRIMARY KEY (`old_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread` ( - `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, - `thread_root` int(8) unsigned NOT NULL, - `thread_ancestor` int(8) unsigned NOT NULL, - `thread_parent` int(8) unsigned DEFAULT NULL, - `thread_summary_page` int(8) unsigned DEFAULT NULL, - `thread_subject` varchar(255) DEFAULT NULL, - `thread_author_id` int(10) unsigned DEFAULT NULL, - `thread_author_name` varchar(255) DEFAULT NULL, - `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_editedness` int(1) NOT NULL DEFAULT '0', - `thread_article_namespace` int(11) NOT NULL, - `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `thread_article_id` int(8) unsigned NOT NULL, - `thread_type` int(4) unsigned NOT NULL DEFAULT '0', - `thread_sortkey` varchar(255) NOT NULL DEFAULT '', - `thread_replies` int(8) DEFAULT '-1', - `thread_signature` tinyblob, - PRIMARY KEY (`thread_id`), - UNIQUE KEY `thread_root` (`thread_root`), - UNIQUE KEY `thread_root_2` (`thread_root`), - KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), - KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), - KEY `thread_article` (`thread_article_id`,`thread_sortkey`), - KEY `thread_modified` (`thread_modified`), - KEY `thread_created` (`thread_created`), - KEY `thread_summary_page` (`thread_summary_page`), - KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), - KEY `thread_sortkey` (`thread_sortkey`), - KEY `thread_parent` (`thread_parent`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_history` ( - `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `th_thread` int(10) unsigned NOT NULL, - `th_timestamp` varbinary(14) NOT NULL, - `th_user` int(10) unsigned NOT NULL, - `th_user_text` varchar(255) NOT NULL, - `th_change_type` int(10) unsigned NOT NULL, - `th_change_object` int(10) unsigned NOT NULL, - `th_change_comment` tinytext NOT NULL, - `th_content` longblob NOT NULL, - PRIMARY KEY (`th_id`), - KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), - KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), - KEY `th_user_text` (`th_user`,`th_user_text`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( - `tpr_thread` int(10) unsigned NOT NULL, - `tpr_relationship` varbinary(64) NOT NULL, - `tpr_title` varbinary(255) NOT NULL, - `tpr_type` varbinary(32) NOT NULL, - PRIMARY KEY (`tpr_thread`,`tpr_relationship`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_reaction` ( - `tr_thread` int(10) unsigned NOT NULL, - `tr_user` int(10) unsigned NOT NULL, - `tr_user_text` varbinary(255) NOT NULL, - `tr_type` varbinary(64) NOT NULL, - `tr_value` int(11) NOT NULL, - PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), - KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `transcache` ( - `tc_url` varbinary(255) NOT NULL, - `tc_contents` text, - `tc_time` binary(14) DEFAULT NULL, - UNIQUE KEY `tc_url_idx` (`tc_url`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `updatelog` ( - `ul_key` varchar(255) NOT NULL, - `ul_value` blob, - PRIMARY KEY (`ul_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uploadstash` ( - `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `us_user` int(10) unsigned NOT NULL, - `us_key` varchar(255) NOT NULL, - `us_orig_path` varchar(255) NOT NULL, - `us_path` varchar(255) NOT NULL, - `us_source_type` varchar(50) DEFAULT NULL, - `us_timestamp` varbinary(14) NOT NULL, - `us_status` varchar(50) NOT NULL, - `us_chunk_inx` int(10) unsigned DEFAULT NULL, - `us_props` blob, - `us_size` int(10) unsigned NOT NULL, - `us_sha1` varchar(31) NOT NULL, - `us_mime` varchar(255) DEFAULT NULL, - `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `us_image_width` int(10) unsigned DEFAULT NULL, - `us_image_height` int(10) unsigned DEFAULT NULL, - `us_image_bits` smallint(5) unsigned DEFAULT NULL, - PRIMARY KEY (`us_id`), - UNIQUE KEY `us_key` (`us_key`), - KEY `us_user` (`us_user`), - KEY `us_timestamp` (`us_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user` ( - `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_password` tinyblob NOT NULL, - `user_newpassword` tinyblob NOT NULL, - `user_newpass_time` binary(14) DEFAULT NULL, - `user_email` tinytext NOT NULL, - `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `user_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', - `user_email_authenticated` binary(14) DEFAULT NULL, - `user_email_token` binary(32) DEFAULT NULL, - `user_email_token_expires` binary(14) DEFAULT NULL, - `user_registration` binary(14) DEFAULT NULL, - `user_editcount` int(11) DEFAULT NULL, - PRIMARY KEY (`user_id`), - UNIQUE KEY `user_name` (`user_name`), - KEY `user_email_token` (`user_email_token`), - KEY `user_email` (`user_email`(50)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_former_groups` ( - `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', - `ufg_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_groups` ( - `ug_user` int(10) unsigned NOT NULL DEFAULT '0', - `ug_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), - KEY `ug_group` (`ug_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_message_state` ( - `ums_user` int(10) unsigned NOT NULL, - `ums_thread` int(8) unsigned NOT NULL, - `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', - `ums_read_timestamp` varbinary(14) DEFAULT NULL, - PRIMARY KEY (`ums_user`,`ums_thread`), - KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_newtalk` ( - `user_id` int(10) unsigned NOT NULL DEFAULT '0', - `user_ip` varbinary(40) NOT NULL DEFAULT '', - `user_last_timestamp` varbinary(14) DEFAULT NULL, - KEY `un_user_id` (`user_id`), - KEY `un_user_ip` (`user_ip`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_properties` ( - `up_user` int(11) NOT NULL, - `up_property` varbinary(255) NOT NULL, - `up_value` blob, - UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), - KEY `user_properties_property` (`up_property`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `valid_tag` ( - `vt_tag` varchar(255) NOT NULL, - PRIMARY KEY (`vt_tag`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `watchlist` ( - `wl_user` int(10) unsigned NOT NULL, - `wl_namespace` int(11) NOT NULL DEFAULT '0', - `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, - UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), - KEY `namespace_title` (`wl_namespace`,`wl_title`), - KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - -DROP INDEX flow_ext_ref_idx_v2 ON flow_ext_ref; DROP INDEX flow_ext_ref_revision_v2 ON flow_ext_ref; ALTER TABLE flow_ext_ref CHANGE ref_target ref_target BLOB NOT NULL; CREATE INDEX flow_ext_ref_idx_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_type, ref_target(255), ref_src_object_type, ref_src_object_id); CREATE INDEX flow_ext_ref_revision_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_src_object_type, ref_src_object_id, ref_type, ref_target(255)); + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `archive` ( + `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `ar_namespace` int(11) NOT NULL DEFAULT '0', + `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ar_text` mediumblob NOT NULL, + `ar_comment` varbinary(767) NOT NULL, + `ar_user` int(10) unsigned NOT NULL DEFAULT '0', + `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', + `ar_flags` tinyblob NOT NULL, + `ar_rev_id` int(10) unsigned DEFAULT NULL, + `ar_text_id` int(10) unsigned DEFAULT NULL, + `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `ar_len` int(10) unsigned DEFAULT NULL, + `ar_page_id` int(10) unsigned DEFAULT NULL, + `ar_parent_id` int(10) unsigned DEFAULT NULL, + `ar_sha1` varbinary(32) NOT NULL DEFAULT '', + `ar_content_format` varbinary(64) DEFAULT NULL, + `ar_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`ar_id`), + KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), + KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), + KEY `ar_revid` (`ar_rev_id`), + KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_commentmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `comment_id` (`comment_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_comments` ( + `comment_ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_post_ID` bigint(20) unsigned NOT NULL DEFAULT '0', + `comment_author` tinytext NOT NULL, + `comment_author_email` varchar(100) NOT NULL DEFAULT '', + `comment_author_url` varchar(200) NOT NULL DEFAULT '', + `comment_author_IP` varchar(100) NOT NULL DEFAULT '', + `comment_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_content` text NOT NULL, + `comment_karma` int(11) NOT NULL DEFAULT '0', + `comment_approved` varchar(20) NOT NULL DEFAULT '1', + `comment_agent` varchar(255) NOT NULL DEFAULT '', + `comment_type` varchar(20) NOT NULL DEFAULT '', + `comment_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`comment_ID`), + KEY `comment_post_ID` (`comment_post_ID`), + KEY `comment_approved_date_gmt` (`comment_approved`,`comment_date_gmt`), + KEY `comment_date_gmt` (`comment_date_gmt`), + KEY `comment_parent` (`comment_parent`), + KEY `comment_author_email` (`comment_author_email`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_links` ( + `link_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `link_url` varchar(255) NOT NULL DEFAULT '', + `link_name` varchar(255) NOT NULL DEFAULT '', + `link_image` varchar(255) NOT NULL DEFAULT '', + `link_target` varchar(25) NOT NULL DEFAULT '', + `link_description` varchar(255) NOT NULL DEFAULT '', + `link_visible` varchar(20) NOT NULL DEFAULT 'Y', + `link_owner` bigint(20) unsigned NOT NULL DEFAULT '1', + `link_rating` int(11) NOT NULL DEFAULT '0', + `link_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `link_rel` varchar(255) NOT NULL DEFAULT '', + `link_notes` mediumtext NOT NULL, + `link_rss` varchar(255) NOT NULL DEFAULT '', + PRIMARY KEY (`link_id`), + KEY `link_visible` (`link_visible`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_options` ( + `option_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `option_name` varchar(64) NOT NULL DEFAULT '', + `option_value` longtext NOT NULL, + `autoload` varchar(20) NOT NULL DEFAULT 'yes', + PRIMARY KEY (`option_id`), + UNIQUE KEY `option_name` (`option_name`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_postmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `post_id` (`post_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_posts` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_author` bigint(20) unsigned NOT NULL DEFAULT '0', + `post_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content` longtext NOT NULL, + `post_title` text NOT NULL, + `post_excerpt` text NOT NULL, + `post_status` varchar(20) NOT NULL DEFAULT 'publish', + `comment_status` varchar(20) NOT NULL DEFAULT 'open', + `ping_status` varchar(20) NOT NULL DEFAULT 'open', + `post_password` varchar(20) NOT NULL DEFAULT '', + `post_name` varchar(200) NOT NULL DEFAULT '', + `to_ping` text NOT NULL, + `pinged` text NOT NULL, + `post_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_modified_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content_filtered` longtext NOT NULL, + `post_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `guid` varchar(255) NOT NULL DEFAULT '', + `menu_order` int(11) NOT NULL DEFAULT '0', + `post_type` varchar(20) NOT NULL DEFAULT 'post', + `post_mime_type` varchar(100) NOT NULL DEFAULT '', + `comment_count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`), + KEY `post_name` (`post_name`), + KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`ID`), + KEY `post_parent` (`post_parent`), + KEY `post_author` (`post_author`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_relationships` ( + `object_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_taxonomy_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`object_id`,`term_taxonomy_id`), + KEY `term_taxonomy_id` (`term_taxonomy_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_taxonomy` ( + `term_taxonomy_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `term_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `taxonomy` varchar(32) NOT NULL DEFAULT '', + `description` longtext NOT NULL, + `parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_taxonomy_id`), + UNIQUE KEY `term_id_taxonomy` (`term_id`,`taxonomy`), + KEY `taxonomy` (`taxonomy`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_terms` ( + `term_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(200) NOT NULL DEFAULT '', + `slug` varchar(200) NOT NULL DEFAULT '', + `term_group` bigint(10) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_id`), + KEY `name` (`name`), + KEY `slug` (`slug`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_usermeta` ( + `umeta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`umeta_id`), + KEY `user_id` (`user_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_users` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_login` varchar(60) NOT NULL DEFAULT '', + `user_pass` varchar(64) NOT NULL DEFAULT '', + `user_nicename` varchar(50) NOT NULL DEFAULT '', + `user_email` varchar(100) NOT NULL DEFAULT '', + `user_url` varchar(100) NOT NULL DEFAULT '', + `user_registered` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `user_activation_key` varchar(60) NOT NULL DEFAULT '', + `user_status` int(11) NOT NULL DEFAULT '0', + `display_name` varchar(250) NOT NULL DEFAULT '', + PRIMARY KEY (`ID`), + KEY `user_login_key` (`user_login`), + KEY `user_nicename` (`user_nicename`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `bot_passwords` ( + `bp_user` int(11) NOT NULL, + `bp_app_id` varbinary(32) 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_restrictions` blob NOT NULL, + `bp_grants` blob NOT NULL, + PRIMARY KEY (`bp_user`,`bp_app_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `category` ( + `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `cat_pages` int(11) NOT NULL DEFAULT '0', + `cat_subcats` int(11) NOT NULL DEFAULT '0', + `cat_files` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`cat_id`), + UNIQUE KEY `cat_title` (`cat_title`), + KEY `cat_pages` (`cat_pages`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `categorylinks` ( + `cl_from` int(10) unsigned NOT NULL DEFAULT '0', + `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', + `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `cl_collation` varbinary(32) NOT NULL DEFAULT '', + `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', + UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), + KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), + KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), + KEY `cl_collation_ext` (`cl_collation`,`cl_to`,`cl_type`,`cl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `change_tag` ( + `ct_rc_id` int(11) DEFAULT NULL, + `ct_log_id` int(11) DEFAULT NULL, + `ct_rev_id` int(11) DEFAULT NULL, + `ct_tag` varchar(255) NOT NULL, + `ct_params` blob, + UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), + UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), + UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), + KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_email_batch` ( + `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `eeb_user_id` int(10) unsigned NOT NULL, + `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', + `eeb_event_id` int(10) unsigned NOT NULL, + `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eeb_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`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_event` ( + `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_agent_id` int(10) unsigned DEFAULT NULL, + `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_page_namespace` int(10) unsigned DEFAULT NULL, + `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_extra` blob, + `event_page_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`event_id`), + KEY `echo_event_type` (`event_type`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_notification` ( + `notification_event` int(10) unsigned NOT NULL, + `notification_user` int(10) unsigned NOT NULL, + `notification_timestamp` binary(14) NOT NULL, + `notification_read_timestamp` binary(14) DEFAULT NULL, + `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', + `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `user_event` (`notification_user`,`notification_event`), + KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), + KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), + KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), + KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), + KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_target_page` ( + `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`etp_id`), + KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), + KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `external_user` ( + `eu_local_id` int(10) unsigned NOT NULL, + `eu_external_id` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eu_local_id`), + UNIQUE KEY `eu_external_id` (`eu_external_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `externallinks` ( + `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `el_from` int(10) unsigned NOT NULL DEFAULT '0', + `el_to` blob NOT NULL, + `el_index` blob NOT NULL, + PRIMARY KEY (`el_id`), + KEY `el_from` (`el_from`,`el_to`(40)), + KEY `el_to` (`el_to`(60),`el_from`), + KEY `el_index` (`el_index`(60)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `filearchive` ( + `fa_id` int(11) NOT NULL AUTO_INCREMENT, + `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', + `fa_storage_group` varbinary(16) DEFAULT NULL, + `fa_storage_key` varbinary(64) DEFAULT '', + `fa_deleted_user` int(11) DEFAULT NULL, + `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted_reason` varbinary(767) DEFAULT '', + `fa_size` int(10) unsigned DEFAULT '0', + `fa_width` int(11) DEFAULT '0', + `fa_height` int(11) DEFAULT '0', + `fa_metadata` mediumblob, + `fa_bits` int(11) DEFAULT '0', + `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `fa_minor_mime` varbinary(100) DEFAULT 'unknown', + `fa_description` varbinary(767) DEFAULT NULL, + `fa_user` int(10) unsigned DEFAULT '0', + `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `fa_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fa_id`), + KEY `fa_name` (`fa_name`,`fa_timestamp`), + KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), + KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), + KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), + KEY `fa_sha1` (`fa_sha1`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedimages` ( + `fi_rev_id` int(10) unsigned NOT NULL, + `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fi_img_timestamp` varbinary(14) DEFAULT NULL, + `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fi_rev_id`,`fi_name`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( + `fpc_page_id` int(10) unsigned NOT NULL, + `fpc_select` int(11) NOT NULL, + `fpc_override` tinyint(1) NOT NULL, + `fpc_level` varbinary(60) DEFAULT NULL, + `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', + PRIMARY KEY (`fpc_page_id`), + KEY `fpc_expiry` (`fpc_expiry`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( + `fpp_page_id` int(10) unsigned NOT NULL, + `fpp_quality` tinyint(1) NOT NULL, + `fpp_rev_id` int(10) unsigned NOT NULL, + `fpp_pending_since` varbinary(14) NOT NULL, + PRIMARY KEY (`fpp_page_id`,`fpp_quality`), + KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpages` ( + `fp_page_id` int(10) unsigned NOT NULL, + `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', + `fp_pending_since` varbinary(14) DEFAULT NULL, + `fp_stable` int(10) unsigned NOT NULL, + `fp_quality` tinyint(1) DEFAULT NULL, + PRIMARY KEY (`fp_page_id`), + KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), + KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), + KEY `fp_pending_since` (`fp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs` ( + `fr_rev_id` int(10) unsigned NOT NULL, + `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', + `fr_page_id` int(10) unsigned NOT NULL, + `fr_user` int(10) unsigned NOT NULL, + `fr_timestamp` varbinary(14) NOT NULL, + `fr_quality` tinyint(1) NOT NULL DEFAULT '0', + `fr_tags` mediumblob NOT NULL, + `fr_flags` tinyblob NOT NULL, + `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fr_img_timestamp` varbinary(14) DEFAULT NULL, + `fr_img_sha1` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`fr_rev_id`), + KEY `page_rev` (`fr_page_id`,`fr_rev_id`), + KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), + KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), + KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), + KEY `fr_img_sha1` (`fr_img_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( + `frp_user_id` int(10) unsigned NOT NULL, + `frp_user_params` mediumblob NOT NULL, + PRIMARY KEY (`frp_user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( + `frs_timestamp` varbinary(14) NOT NULL, + `frs_stat_key` varchar(255) NOT NULL, + `frs_stat_val` bigint(20) NOT NULL, + PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), + KEY `frs_timestamp` (`frs_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( + `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', + `ftr_namespace` int(11) NOT NULL DEFAULT '0', + `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), + KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( + `ft_rev_id` int(10) unsigned NOT NULL, + `ft_namespace` int(11) NOT NULL DEFAULT '0', + `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target` blob NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`(255),`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`(255)) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_revision` ( + `rev_id` binary(11) NOT NULL, + `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', + `rev_user_id` bigint(20) unsigned NOT NULL, + `rev_user_ip` varbinary(39) DEFAULT NULL, + `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_parent_id` binary(11) DEFAULT NULL, + `rev_flags` tinyblob NOT NULL, + `rev_content` mediumblob NOT NULL, + `rev_change_type` varbinary(255) DEFAULT NULL, + `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_mod_user_ip` varbinary(39) DEFAULT NULL, + `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_last_edit_id` binary(11) DEFAULT NULL, + `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_edit_user_ip` varbinary(39) DEFAULT NULL, + `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_content_length` int(11) NOT NULL DEFAULT '0', + `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`rev_id`), + UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), + KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), + KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_subscription` ( + `subscription_workflow_id` int(10) unsigned NOT NULL, + `subscription_user_id` bigint(20) unsigned NOT NULL, + `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), + KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_topic_list` ( + `topic_list_id` binary(11) NOT NULL, + `topic_id` binary(11) DEFAULT NULL, + UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), + KEY `flow_topic_list_topic_id` (`topic_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_node` ( + `tree_ancestor_id` binary(11) NOT NULL, + `tree_descendant_id` binary(11) NOT NULL, + `tree_depth` smallint(6) NOT NULL, + UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), + UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( + `tree_rev_descendant_id` binary(11) NOT NULL, + `tree_rev_id` binary(11) NOT NULL, + `tree_orig_user_id` bigint(20) unsigned NOT NULL, + `tree_orig_user_ip` varbinary(39) DEFAULT NULL, + `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `tree_parent_id` binary(11) DEFAULT NULL, + PRIMARY KEY (`tree_rev_id`), + KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target_namespace` int(11) NOT NULL, + `ref_target_title` varbinary(255) NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_workflow` ( + `workflow_id` binary(11) NOT NULL, + `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_namespace` int(11) NOT NULL, + `workflow_page_id` int(10) unsigned NOT NULL, + `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_last_update_timestamp` binary(14) NOT NULL, + `workflow_lock_state` int(10) unsigned NOT NULL, + `workflow_type` varbinary(16) NOT NULL, + PRIMARY KEY (`workflow_id`), + KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), + KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `historical_thread` ( + `hthread_id` int(8) unsigned NOT NULL, + `hthread_revision` int(8) unsigned NOT NULL, + `hthread_contents` blob NOT NULL, + `hthread_change_type` int(4) unsigned NOT NULL, + `hthread_change_object` int(8) unsigned DEFAULT NULL, + PRIMARY KEY (`hthread_id`,`hthread_revision`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `image` ( + `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `img_size` int(10) unsigned NOT NULL DEFAULT '0', + `img_width` int(11) NOT NULL DEFAULT '0', + `img_height` int(11) NOT NULL DEFAULT '0', + `img_metadata` mediumblob NOT NULL, + `img_bits` int(11) NOT NULL DEFAULT '0', + `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `img_description` varbinary(767) NOT NULL, + `img_user` int(10) unsigned NOT NULL DEFAULT '0', + `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `img_timestamp` varbinary(14) NOT NULL DEFAULT '', + `img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`img_name`), + KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), + KEY `img_size` (`img_size`), + KEY `img_timestamp` (`img_timestamp`), + KEY `img_sha1` (`img_sha1`), + KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `imagelinks` ( + `il_from` int(10) unsigned NOT NULL DEFAULT '0', + `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `il_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `il_from` (`il_from`,`il_to`), + UNIQUE KEY `il_to` (`il_to`,`il_from`), + KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `interwiki` ( + `iw_prefix` varchar(32) NOT NULL, + `iw_url` blob NOT NULL, + `iw_api` blob NOT NULL, + `iw_wikiid` varchar(64) NOT NULL, + `iw_local` tinyint(1) NOT NULL, + `iw_trans` tinyint(4) NOT NULL DEFAULT '0', + UNIQUE KEY `iw_prefix` (`iw_prefix`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `ipblocks` ( + `ipb_id` int(11) NOT NULL AUTO_INCREMENT, + `ipb_address` tinyblob NOT NULL, + `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ipb_reason` varbinary(767) NOT NULL, + `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `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 DEFAULT '', + `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(11) DEFAULT NULL, + PRIMARY KEY (`ipb_id`), + UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), + 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 AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `iwlinks` ( + `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', + `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', + `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), + 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=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `job` ( + `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `job_cmd` varbinary(60) NOT NULL DEFAULT '', + `job_namespace` int(11) NOT NULL, + `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `job_params` blob NOT NULL, + `job_timestamp` varbinary(14) DEFAULT NULL, + `job_random` int(10) unsigned NOT NULL DEFAULT '0', + `job_token` varbinary(32) NOT NULL DEFAULT '', + `job_token_timestamp` varbinary(14) DEFAULT NULL, + `job_sha1` varbinary(32) NOT NULL DEFAULT '', + `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`job_id`), + KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), + KEY `job_timestamp` (`job_timestamp`), + KEY `job_sha1` (`job_sha1`), + KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), + KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `l10n_cache` ( + `lc_lang` varbinary(32) NOT NULL, + `lc_key` varchar(255) NOT NULL, + `lc_value` mediumblob NOT NULL, + KEY `lc_lang_key` (`lc_lang`,`lc_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `langlinks` ( + `ll_from` int(10) unsigned NOT NULL DEFAULT '0', + `ll_lang` varbinary(20) NOT NULL DEFAULT '', + `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), + KEY `ll_lang` (`ll_lang`,`ll_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `log_search` ( + `ls_field` varbinary(32) NOT NULL, + `ls_value` varchar(255) NOT NULL, + `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', + UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), + KEY `ls_log_id` (`ls_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `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_user` int(10) unsigned NOT NULL DEFAULT '0', + `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_namespace` int(11) NOT NULL DEFAULT '0', + `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_page` int(10) unsigned DEFAULT NULL, + `log_comment` varbinary(767) NOT NULL DEFAULT '', + `log_params` blob NOT NULL, + `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`log_id`), + KEY `type_time` (`log_type`,`log_timestamp`), + KEY `user_time` (`log_user`,`log_timestamp`), + KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), + KEY `times` (`log_timestamp`), + KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), + KEY `log_page_id_time` (`log_page`,`log_timestamp`), + KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), + KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), + KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `math` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_outputhash` varbinary(16) NOT NULL, + `math_html_conservativeness` tinyint(4) NOT NULL, + `math_html` text, + `math_mathml` text, + UNIQUE KEY `math_inputhash` (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `mathoid` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_input` text NOT NULL, + `math_tex` text, + `math_mathml` text, + `math_svg` text, + `math_style` tinyint(4) DEFAULT NULL, + `math_input_type` tinyint(4) DEFAULT NULL, + PRIMARY KEY (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `module_deps` ( + `md_module` varbinary(255) NOT NULL, + `md_skin` varbinary(32) NOT NULL, + `md_deps` mediumblob NOT NULL, + UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `objectcache` ( + `keyname` varbinary(255) NOT NULL DEFAULT '', + `value` mediumblob, + `exptime` datetime DEFAULT NULL, + PRIMARY KEY (`keyname`), + KEY `exptime` (`exptime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `oldimage` ( + `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_size` int(10) unsigned NOT NULL DEFAULT '0', + `oi_width` int(11) NOT NULL DEFAULT '0', + `oi_height` int(11) NOT NULL DEFAULT '0', + `oi_bits` int(11) NOT NULL DEFAULT '0', + `oi_description` varbinary(767) NOT NULL, + `oi_user` int(10) unsigned NOT NULL DEFAULT '0', + `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `oi_metadata` mediumblob NOT NULL, + `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `oi_sha1` varbinary(32) NOT NULL DEFAULT '', + KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), + KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), + KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), + KEY `oi_sha1` (`oi_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page` ( + `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `page_namespace` int(11) NOT NULL, + `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `page_restrictions` tinyblob NOT NULL, + `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_random` double unsigned NOT NULL, + `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `page_latest` int(10) unsigned NOT NULL, + `page_len` int(10) unsigned NOT NULL, + `page_content_model` varbinary(32) DEFAULT NULL, + `page_links_updated` varbinary(14) DEFAULT NULL, + `page_lang` varbinary(35) DEFAULT NULL, + PRIMARY KEY (`page_id`), + UNIQUE KEY `name_title` (`page_namespace`,`page_title`), + KEY `page_random` (`page_random`), + KEY `page_len` (`page_len`), + KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_props` ( + `pp_page` int(11) NOT NULL, + `pp_propname` varbinary(60) NOT NULL, + `pp_value` blob NOT NULL, + `pp_sortkey` float DEFAULT NULL, + UNIQUE KEY `pp_page_propname` (`pp_page`,`pp_propname`), + UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), + UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_restrictions` ( + `pr_page` int(11) NOT NULL, + `pr_type` varbinary(60) NOT NULL, + `pr_level` varbinary(60) NOT NULL, + `pr_cascade` tinyint(4) NOT NULL, + `pr_user` int(11) DEFAULT NULL, + `pr_expiry` varbinary(14) DEFAULT NULL, + `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`pr_id`), + UNIQUE KEY `pr_pagetype` (`pr_page`,`pr_type`), + KEY `pr_typelevel` (`pr_type`,`pr_level`), + KEY `pr_level` (`pr_level`), + KEY `pr_cascade` (`pr_cascade`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `pagelinks` ( + `pl_from` int(10) unsigned NOT NULL DEFAULT '0', + `pl_namespace` int(11) NOT NULL DEFAULT '0', + `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `pl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), + UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), + KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `protected_titles` ( + `pt_namespace` int(11) NOT NULL, + `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `pt_user` int(10) unsigned NOT NULL, + `pt_reason` varbinary(767) DEFAULT NULL, + `pt_timestamp` binary(14) NOT NULL, + `pt_expiry` varbinary(14) NOT NULL DEFAULT '', + `pt_create_perm` varbinary(60) NOT NULL, + UNIQUE KEY `pt_namespace_title` (`pt_namespace`,`pt_title`), + KEY `pt_timestamp` (`pt_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache` ( + `qc_type` varbinary(32) NOT NULL, + `qc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qc_namespace` int(11) NOT NULL DEFAULT '0', + `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qc_type` (`qc_type`,`qc_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache_info` ( + `qci_type` varbinary(32) NOT NULL DEFAULT '', + `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', + UNIQUE KEY `qci_type` (`qci_type`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycachetwo` ( + `qcc_type` varbinary(32) NOT NULL, + `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qcc_namespace` int(11) NOT NULL DEFAULT '0', + `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', + `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qcc_type` (`qcc_type`,`qcc_value`), + KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), + KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `recentchanges` ( + `rc_id` int(11) NOT NULL AUTO_INCREMENT, + `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', + `rc_user` int(10) unsigned NOT NULL DEFAULT '0', + `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rc_namespace` int(11) NOT NULL DEFAULT '0', + `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rc_comment` varbinary(767) NOT NULL DEFAULT '', + `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', + `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_ip` varbinary(40) NOT NULL DEFAULT '', + `rc_old_len` int(11) DEFAULT NULL, + `rc_new_len` int(11) DEFAULT NULL, + `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_log_type` varbinary(255) DEFAULT NULL, + `rc_log_action` varbinary(255) DEFAULT NULL, + `rc_params` blob, + `rc_source` varbinary(16) NOT NULL DEFAULT '', + PRIMARY KEY (`rc_id`), + KEY `rc_timestamp` (`rc_timestamp`), + KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), + KEY `rc_cur_id` (`rc_cur_id`), + KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), + KEY `rc_ip` (`rc_ip`), + KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), + KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `redirect` ( + `rd_from` int(10) unsigned NOT NULL DEFAULT '0', + `rd_namespace` int(11) NOT NULL DEFAULT '0', + `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rd_interwiki` varchar(32) DEFAULT NULL, + `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + PRIMARY KEY (`rd_from`), + KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `revision` ( + `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `rev_page` int(10) unsigned NOT NULL, + `rev_text_id` int(10) unsigned NOT NULL, + `rev_comment` varbinary(767) NOT NULL, + `rev_user` int(10) unsigned NOT NULL DEFAULT '0', + `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_len` int(10) unsigned DEFAULT NULL, + `rev_parent_id` int(10) unsigned DEFAULT NULL, + `rev_sha1` varbinary(32) NOT NULL DEFAULT '', + `rev_content_format` varbinary(64) DEFAULT NULL, + `rev_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`rev_id`), + UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), + KEY `rev_timestamp` (`rev_timestamp`), + KEY `page_timestamp` (`rev_page`,`rev_timestamp`), + KEY `user_timestamp` (`rev_user`,`rev_timestamp`), + KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), + KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `searchindex` ( + `si_page` int(10) unsigned NOT NULL, + `si_title` varchar(255) NOT NULL DEFAULT '', + `si_text` mediumtext NOT NULL, + UNIQUE KEY `si_page` (`si_page`), + FULLTEXT KEY `si_title` (`si_title`), + FULLTEXT KEY `si_text` (`si_text`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_identifiers` ( + `si_site` int(10) unsigned NOT NULL, + `si_type` varbinary(32) NOT NULL, + `si_key` varbinary(32) NOT NULL, + UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), + KEY `site_ids_site` (`si_site`), + KEY `site_ids_key` (`si_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_stats` ( + `ss_row_id` int(10) unsigned NOT NULL, + `ss_total_edits` bigint(20) unsigned DEFAULT '0', + `ss_good_articles` bigint(20) unsigned DEFAULT '0', + `ss_total_pages` bigint(20) DEFAULT '-1', + `ss_users` bigint(20) DEFAULT '-1', + `ss_active_users` bigint(20) DEFAULT '-1', + `ss_images` int(11) DEFAULT '0', + UNIQUE KEY `ss_row_id` (`ss_row_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `sites` ( + `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `site_global_key` varbinary(32) NOT NULL, + `site_type` varbinary(32) NOT NULL, + `site_group` varbinary(32) NOT NULL, + `site_source` varbinary(32) NOT NULL, + `site_language` varbinary(32) NOT NULL, + `site_protocol` varbinary(32) NOT NULL, + `site_domain` varchar(255) NOT NULL, + `site_data` blob NOT NULL, + `site_forward` tinyint(1) NOT NULL, + `site_config` blob NOT NULL, + PRIMARY KEY (`site_id`), + UNIQUE KEY `sites_global_key` (`site_global_key`), + KEY `sites_type` (`site_type`), + KEY `sites_group` (`site_group`), + KEY `sites_source` (`site_source`), + KEY `sites_language` (`site_language`), + KEY `sites_protocol` (`site_protocol`), + KEY `sites_domain` (`site_domain`), + KEY `sites_forward` (`site_forward`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `tag_summary` ( + `ts_rc_id` int(11) DEFAULT NULL, + `ts_log_id` int(11) DEFAULT NULL, + `ts_rev_id` int(11) DEFAULT NULL, + `ts_tags` blob NOT NULL, + UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), + UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), + UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `templatelinks` ( + `tl_from` int(10) unsigned NOT NULL DEFAULT '0', + `tl_namespace` int(11) NOT NULL DEFAULT '0', + `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `tl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), + UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), + KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `text` ( + `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `old_text` mediumblob NOT NULL, + `old_flags` tinyblob NOT NULL, + PRIMARY KEY (`old_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread` ( + `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, + `thread_root` int(8) unsigned NOT NULL, + `thread_ancestor` int(8) unsigned NOT NULL, + `thread_parent` int(8) unsigned DEFAULT NULL, + `thread_summary_page` int(8) unsigned DEFAULT NULL, + `thread_subject` varchar(255) DEFAULT NULL, + `thread_author_id` int(10) unsigned DEFAULT NULL, + `thread_author_name` varchar(255) DEFAULT NULL, + `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_editedness` int(1) NOT NULL DEFAULT '0', + `thread_article_namespace` int(11) NOT NULL, + `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `thread_article_id` int(8) unsigned NOT NULL, + `thread_type` int(4) unsigned NOT NULL DEFAULT '0', + `thread_sortkey` varchar(255) NOT NULL DEFAULT '', + `thread_replies` int(8) DEFAULT '-1', + `thread_signature` tinyblob, + PRIMARY KEY (`thread_id`), + UNIQUE KEY `thread_root` (`thread_root`), + UNIQUE KEY `thread_root_2` (`thread_root`), + KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), + KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), + KEY `thread_article` (`thread_article_id`,`thread_sortkey`), + KEY `thread_modified` (`thread_modified`), + KEY `thread_created` (`thread_created`), + KEY `thread_summary_page` (`thread_summary_page`), + KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), + KEY `thread_sortkey` (`thread_sortkey`), + KEY `thread_parent` (`thread_parent`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_history` ( + `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `th_thread` int(10) unsigned NOT NULL, + `th_timestamp` varbinary(14) NOT NULL, + `th_user` int(10) unsigned NOT NULL, + `th_user_text` varchar(255) NOT NULL, + `th_change_type` int(10) unsigned NOT NULL, + `th_change_object` int(10) unsigned NOT NULL, + `th_change_comment` tinytext NOT NULL, + `th_content` longblob NOT NULL, + PRIMARY KEY (`th_id`), + KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), + KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), + KEY `th_user_text` (`th_user`,`th_user_text`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( + `tpr_thread` int(10) unsigned NOT NULL, + `tpr_relationship` varbinary(64) NOT NULL, + `tpr_title` varbinary(255) NOT NULL, + `tpr_type` varbinary(32) NOT NULL, + PRIMARY KEY (`tpr_thread`,`tpr_relationship`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_reaction` ( + `tr_thread` int(10) unsigned NOT NULL, + `tr_user` int(10) unsigned NOT NULL, + `tr_user_text` varbinary(255) NOT NULL, + `tr_type` varbinary(64) NOT NULL, + `tr_value` int(11) NOT NULL, + PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), + KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `trackbacks` ( + `tb_id` int(11) NOT NULL AUTO_INCREMENT, + `tb_page` int(11) DEFAULT NULL, + `tb_title` varchar(255) NOT NULL, + `tb_url` blob NOT NULL, + `tb_ex` text, + `tb_name` varchar(255) DEFAULT NULL, + PRIMARY KEY (`tb_id`), + KEY `tb_page` (`tb_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `transcache` ( + `tc_url` varbinary(255) NOT NULL, + `tc_contents` text, + `tc_time` binary(14) DEFAULT NULL, + UNIQUE KEY `tc_url_idx` (`tc_url`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `updatelog` ( + `ul_key` varchar(255) NOT NULL, + `ul_value` blob, + PRIMARY KEY (`ul_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `uploadstash` ( + `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `us_user` int(10) unsigned NOT NULL, + `us_key` varchar(255) NOT NULL, + `us_orig_path` varchar(255) NOT NULL, + `us_path` varchar(255) NOT NULL, + `us_source_type` varchar(50) DEFAULT NULL, + `us_timestamp` varbinary(14) NOT NULL, + `us_status` varchar(50) NOT NULL, + `us_size` int(10) unsigned NOT NULL, + `us_sha1` varchar(31) NOT NULL, + `us_mime` varchar(255) DEFAULT NULL, + `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `us_image_width` int(10) unsigned DEFAULT NULL, + `us_image_height` int(10) unsigned DEFAULT NULL, + `us_image_bits` smallint(5) unsigned DEFAULT NULL, + `us_chunk_inx` int(10) unsigned DEFAULT NULL, + `us_props` blob, + PRIMARY KEY (`us_id`), + UNIQUE KEY `us_key` (`us_key`), + KEY `us_user` (`us_user`), + KEY `us_timestamp` (`us_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user` ( + `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_password` tinyblob NOT NULL, + `user_newpassword` tinyblob NOT NULL, + `user_newpass_time` binary(14) DEFAULT NULL, + `user_email` tinytext NOT NULL, + `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `user_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', + `user_email_authenticated` binary(14) DEFAULT NULL, + `user_email_token` binary(32) DEFAULT NULL, + `user_email_token_expires` binary(14) DEFAULT NULL, + `user_registration` binary(14) DEFAULT NULL, + `user_editcount` int(11) DEFAULT NULL, + PRIMARY KEY (`user_id`), + UNIQUE KEY `user_name` (`user_name`), + KEY `user_email_token` (`user_email_token`), + KEY `user_email` (`user_email`(50)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_former_groups` ( + `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', + `ufg_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_groups` ( + `ug_user` int(10) unsigned NOT NULL DEFAULT '0', + `ug_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), + KEY `ug_group` (`ug_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_message_state` ( + `ums_user` int(10) unsigned NOT NULL, + `ums_thread` int(8) unsigned NOT NULL, + `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', + `ums_read_timestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`ums_user`,`ums_thread`), + KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_newtalk` ( + `user_id` int(10) unsigned NOT NULL DEFAULT '0', + `user_ip` varbinary(40) NOT NULL DEFAULT '', + `user_last_timestamp` varbinary(14) DEFAULT NULL, + KEY `un_user_id` (`user_id`), + KEY `un_user_ip` (`user_ip`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_properties` ( + `up_user` int(11) NOT NULL, + `up_property` varbinary(255) DEFAULT NULL, + `up_value` blob, + UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), + KEY `user_properties_property` (`up_property`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `valid_tag` ( + `vt_tag` varchar(255) NOT NULL, + PRIMARY KEY (`vt_tag`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `watchlist` ( + `wl_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `wl_user` int(10) unsigned NOT NULL, + `wl_namespace` int(11) NOT NULL DEFAULT '0', + `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`wl_id`), + UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), + KEY `namespace_title` (`wl_namespace`,`wl_title`), + KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + diff --git a/DeveloperDump/eswikitolearn.struct.sql b/DeveloperDump/eswikitolearn.struct.sql index cd9504d..daa02f6 100644 --- a/DeveloperDump/eswikitolearn.struct.sql +++ b/DeveloperDump/eswikitolearn.struct.sql @@ -1,1178 +1,1380 @@ - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; -/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; -/*!40103 SET TIME_ZONE='+00:00' */; -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `archive` ( - `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `ar_namespace` int(11) NOT NULL DEFAULT '0', - `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ar_text` mediumblob NOT NULL, - `ar_comment` varbinary(767) NOT NULL, - `ar_user` int(10) unsigned NOT NULL DEFAULT '0', - `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', - `ar_flags` tinyblob NOT NULL, - `ar_rev_id` int(10) unsigned DEFAULT NULL, - `ar_text_id` int(10) unsigned DEFAULT NULL, - `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `ar_len` int(10) unsigned DEFAULT NULL, - `ar_page_id` int(10) unsigned DEFAULT NULL, - `ar_parent_id` int(10) unsigned DEFAULT NULL, - `ar_sha1` varbinary(32) NOT NULL DEFAULT '', - `ar_content_model` varbinary(32) DEFAULT NULL, - `ar_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`ar_id`), - KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), - KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), - KEY `ar_revid` (`ar_rev_id`), - KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `category` ( - `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `cat_pages` int(11) NOT NULL DEFAULT '0', - `cat_subcats` int(11) NOT NULL DEFAULT '0', - `cat_files` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`cat_id`), - UNIQUE KEY `cat_title` (`cat_title`), - KEY `cat_pages` (`cat_pages`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `categorylinks` ( - `cl_from` int(10) unsigned NOT NULL DEFAULT '0', - `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', - `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `cl_collation` varbinary(32) NOT NULL DEFAULT '', - `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', - UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), - KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), - KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), - KEY `cl_collation` (`cl_collation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `change_tag` ( - `ct_rc_id` int(11) DEFAULT NULL, - `ct_log_id` int(11) DEFAULT NULL, - `ct_rev_id` int(11) DEFAULT NULL, - `ct_tag` varchar(255) NOT NULL, - `ct_params` blob, - UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), - UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), - UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), - KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_email_batch` ( - `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `eeb_user_id` int(10) unsigned NOT NULL, - `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', - `eeb_event_id` int(10) unsigned NOT NULL, - `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - PRIMARY KEY (`eeb_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`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_event` ( - `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_agent_id` int(10) unsigned DEFAULT NULL, - `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_page_namespace` int(10) unsigned DEFAULT NULL, - `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_extra` blob, - `event_page_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`event_id`), - KEY `echo_event_type` (`event_type`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_notification` ( - `notification_event` int(10) unsigned NOT NULL, - `notification_user` int(10) unsigned NOT NULL, - `notification_timestamp` binary(14) NOT NULL, - `notification_read_timestamp` binary(14) DEFAULT NULL, - `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', - `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `user_event` (`notification_user`,`notification_event`), - KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), - KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), - KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), - KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), - KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_target_page` ( - `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`etp_id`), - KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), - KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `externallinks` ( - `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `el_from` int(10) unsigned NOT NULL DEFAULT '0', - `el_to` blob NOT NULL, - `el_index` blob NOT NULL, - PRIMARY KEY (`el_id`), - KEY `el_from` (`el_from`,`el_to`(40)), - KEY `el_to` (`el_to`(60),`el_from`), - KEY `el_index` (`el_index`(60)) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `filearchive` ( - `fa_id` int(11) NOT NULL AUTO_INCREMENT, - `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', - `fa_storage_group` varbinary(16) DEFAULT NULL, - `fa_storage_key` varbinary(64) DEFAULT '', - `fa_deleted_user` int(11) DEFAULT NULL, - `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted_reason` varbinary(767) DEFAULT '', - `fa_size` int(10) unsigned DEFAULT '0', - `fa_width` int(11) DEFAULT '0', - `fa_height` int(11) DEFAULT '0', - `fa_metadata` mediumblob, - `fa_bits` int(11) DEFAULT '0', - `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `fa_minor_mime` varbinary(100) DEFAULT 'unknown', - `fa_description` varbinary(767) DEFAULT NULL, - `fa_user` int(10) unsigned DEFAULT '0', - `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `fa_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fa_id`), - KEY `fa_name` (`fa_name`,`fa_timestamp`), - KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), - KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), - KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), - KEY `fa_sha1` (`fa_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedimages` ( - `fi_rev_id` int(10) unsigned NOT NULL, - `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fi_img_timestamp` varbinary(14) DEFAULT NULL, - `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fi_rev_id`,`fi_name`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( - `fpc_page_id` int(10) unsigned NOT NULL, - `fpc_select` int(11) NOT NULL, - `fpc_override` tinyint(1) NOT NULL, - `fpc_level` varbinary(60) DEFAULT NULL, - `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', - PRIMARY KEY (`fpc_page_id`), - KEY `fpc_expiry` (`fpc_expiry`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( - `fpp_page_id` int(10) unsigned NOT NULL, - `fpp_quality` tinyint(1) NOT NULL, - `fpp_rev_id` int(10) unsigned NOT NULL, - `fpp_pending_since` varbinary(14) NOT NULL, - PRIMARY KEY (`fpp_page_id`,`fpp_quality`), - KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpages` ( - `fp_page_id` int(10) unsigned NOT NULL, - `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', - `fp_pending_since` varbinary(14) DEFAULT NULL, - `fp_stable` int(10) unsigned NOT NULL, - `fp_quality` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`fp_page_id`), - KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), - KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), - KEY `fp_pending_since` (`fp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs` ( - `fr_rev_id` int(10) unsigned NOT NULL, - `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', - `fr_page_id` int(10) unsigned NOT NULL, - `fr_user` int(10) unsigned NOT NULL, - `fr_timestamp` varbinary(14) NOT NULL, - `fr_quality` tinyint(1) NOT NULL DEFAULT '0', - `fr_tags` mediumblob NOT NULL, - `fr_flags` tinyblob NOT NULL, - `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fr_img_timestamp` varbinary(14) DEFAULT NULL, - `fr_img_sha1` varbinary(32) DEFAULT NULL, - PRIMARY KEY (`fr_rev_id`), - KEY `page_rev` (`fr_page_id`,`fr_rev_id`), - KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), - KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), - KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), - KEY `fr_img_sha1` (`fr_img_sha1`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( - `frp_user_id` int(10) unsigned NOT NULL, - `frp_user_params` mediumblob NOT NULL, - PRIMARY KEY (`frp_user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( - `frs_timestamp` varbinary(14) NOT NULL, - `frs_stat_key` varchar(255) NOT NULL, - `frs_stat_val` bigint(20) NOT NULL, - PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), - KEY `frs_timestamp` (`frs_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( - `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', - `ftr_namespace` int(11) NOT NULL DEFAULT '0', - `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), - KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( - `ft_rev_id` int(10) unsigned NOT NULL, - `ft_namespace` int(11) NOT NULL DEFAULT '0', - `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_revision` ( - `rev_id` binary(11) NOT NULL, - `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', - `rev_user_id` bigint(20) unsigned NOT NULL, - `rev_user_ip` varbinary(39) DEFAULT NULL, - `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_parent_id` binary(11) DEFAULT NULL, - `rev_flags` tinyblob NOT NULL, - `rev_content` mediumblob NOT NULL, - `rev_change_type` varbinary(255) DEFAULT NULL, - `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_mod_user_ip` varbinary(39) DEFAULT NULL, - `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_last_edit_id` binary(11) DEFAULT NULL, - `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_edit_user_ip` varbinary(39) DEFAULT NULL, - `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_content_length` int(11) NOT NULL DEFAULT '0', - `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`rev_id`), - UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), - KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), - KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_subscription` ( - `subscription_workflow_id` int(10) unsigned NOT NULL, - `subscription_user_id` bigint(20) unsigned NOT NULL, - `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), - KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_topic_list` ( - `topic_list_id` binary(11) NOT NULL, - `topic_id` binary(11) DEFAULT NULL, - UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), - KEY `flow_topic_list_topic_id` (`topic_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_node` ( - `tree_ancestor_id` binary(11) NOT NULL, - `tree_descendant_id` binary(11) NOT NULL, - `tree_depth` smallint(6) NOT NULL, - UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), - UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( - `tree_rev_descendant_id` binary(11) NOT NULL, - `tree_rev_id` binary(11) NOT NULL, - `tree_orig_user_id` bigint(20) unsigned NOT NULL, - `tree_orig_user_ip` varbinary(39) DEFAULT NULL, - `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tree_parent_id` binary(11) DEFAULT NULL, - PRIMARY KEY (`tree_rev_id`), - KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target_namespace` int(11) NOT NULL, - `ref_target_title` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_workflow` ( - `workflow_id` binary(11) NOT NULL, - `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_namespace` int(11) NOT NULL, - `workflow_page_id` int(10) unsigned NOT NULL, - `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_last_update_timestamp` binary(14) NOT NULL, - `workflow_lock_state` int(10) unsigned NOT NULL, - `workflow_type` varbinary(16) NOT NULL, - PRIMARY KEY (`workflow_id`), - KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), - KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `historical_thread` ( - `hthread_id` int(8) unsigned NOT NULL, - `hthread_revision` int(8) unsigned NOT NULL, - `hthread_contents` blob NOT NULL, - `hthread_change_type` int(4) unsigned NOT NULL, - `hthread_change_object` int(8) unsigned DEFAULT NULL, - PRIMARY KEY (`hthread_id`,`hthread_revision`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `image` ( - `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `img_size` int(10) unsigned NOT NULL DEFAULT '0', - `img_width` int(11) NOT NULL DEFAULT '0', - `img_height` int(11) NOT NULL DEFAULT '0', - `img_metadata` mediumblob NOT NULL, - `img_bits` int(11) NOT NULL DEFAULT '0', - `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `img_description` varbinary(767) NOT NULL, - `img_user` int(10) unsigned NOT NULL DEFAULT '0', - `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `img_timestamp` varbinary(14) NOT NULL DEFAULT '', - `img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`img_name`), - KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), - KEY `img_size` (`img_size`), - KEY `img_timestamp` (`img_timestamp`), - KEY `img_sha1` (`img_sha1`(10)), - KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `imagelinks` ( - `il_from` int(10) unsigned NOT NULL DEFAULT '0', - `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `il_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `il_from` (`il_from`,`il_to`), - UNIQUE KEY `il_to` (`il_to`,`il_from`), - KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `interwiki` ( - `iw_prefix` varchar(32) NOT NULL, - `iw_url` blob NOT NULL, - `iw_local` tinyint(1) NOT NULL, - `iw_trans` tinyint(4) NOT NULL DEFAULT '0', - `iw_api` blob NOT NULL, - `iw_wikiid` varchar(64) NOT NULL, - UNIQUE KEY `iw_prefix` (`iw_prefix`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ipblocks` ( - `ipb_id` int(11) NOT NULL AUTO_INCREMENT, - `ipb_address` tinyblob NOT NULL, - `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ipb_reason` varbinary(767) NOT NULL, - `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `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 DEFAULT '', - `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(11) DEFAULT NULL, - PRIMARY KEY (`ipb_id`), - UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `iwlinks` ( - `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', - `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', - `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `job` ( - `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `job_cmd` varbinary(60) NOT NULL DEFAULT '', - `job_namespace` int(11) NOT NULL, - `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `job_params` blob NOT NULL, - `job_timestamp` varbinary(14) DEFAULT NULL, - `job_random` int(10) unsigned NOT NULL DEFAULT '0', - `job_token` varbinary(32) NOT NULL DEFAULT '', - `job_token_timestamp` varbinary(14) DEFAULT NULL, - `job_sha1` varbinary(32) NOT NULL DEFAULT '', - `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', - PRIMARY KEY (`job_id`), - KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), - KEY `job_timestamp` (`job_timestamp`), - KEY `job_sha1` (`job_sha1`), - KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), - KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `l10n_cache` ( - `lc_lang` varbinary(32) NOT NULL, - `lc_key` varchar(255) NOT NULL, - `lc_value` mediumblob NOT NULL, - KEY `lc_lang_key` (`lc_lang`,`lc_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `langlinks` ( - `ll_from` int(10) unsigned NOT NULL DEFAULT '0', - `ll_lang` varbinary(20) NOT NULL DEFAULT '', - `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), - KEY `ll_lang` (`ll_lang`,`ll_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `log_search` ( - `ls_field` varbinary(32) NOT NULL, - `ls_value` varchar(255) NOT NULL, - `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', - UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), - KEY `ls_log_id` (`ls_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `logging` ( - `log_type` varbinary(32) NOT NULL, - `log_action` varbinary(32) NOT NULL, - `log_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - `log_user` int(10) unsigned NOT NULL DEFAULT '0', - `log_namespace` int(11) NOT NULL DEFAULT '0', - `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_comment` varbinary(767) NOT NULL DEFAULT '', - `log_params` blob NOT NULL, - `log_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_page` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`log_id`), - KEY `type_time` (`log_type`,`log_timestamp`), - KEY `user_time` (`log_user`,`log_timestamp`), - KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), - KEY `times` (`log_timestamp`), - KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), - KEY `log_page_id_time` (`log_page`,`log_timestamp`), - KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), - KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), - KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `math` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_outputhash` varbinary(16) NOT NULL, - `math_html_conservativeness` tinyint(4) NOT NULL, - `math_html` text, - `math_mathml` text, - UNIQUE KEY `math_inputhash` (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mathoid` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_input` text NOT NULL, - `math_tex` text, - `math_mathml` text, - `math_svg` text, - `math_style` tinyint(4) DEFAULT NULL, - `math_input_type` tinyint(4) DEFAULT NULL, - PRIMARY KEY (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `module_deps` ( - `md_module` varbinary(255) NOT NULL, - `md_skin` varbinary(32) NOT NULL, - `md_deps` mediumblob NOT NULL, - UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource` ( - `mr_resource` varbinary(255) NOT NULL, - `mr_lang` varbinary(32) NOT NULL, - `mr_blob` mediumblob NOT NULL, - `mr_timestamp` binary(14) NOT NULL, - UNIQUE KEY `mr_resource_lang` (`mr_resource`,`mr_lang`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource_links` ( - `mrl_resource` varbinary(255) NOT NULL, - `mrl_message` varbinary(255) NOT NULL, - UNIQUE KEY `mrl_message_resource` (`mrl_message`,`mrl_resource`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `objectcache` ( - `keyname` varbinary(255) NOT NULL DEFAULT '', - `value` mediumblob, - `exptime` datetime DEFAULT NULL, - UNIQUE KEY `keyname` (`keyname`), - KEY `exptime` (`exptime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `oldimage` ( - `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_size` int(10) unsigned NOT NULL DEFAULT '0', - `oi_width` int(11) NOT NULL DEFAULT '0', - `oi_height` int(11) NOT NULL DEFAULT '0', - `oi_bits` int(11) NOT NULL DEFAULT '0', - `oi_description` varbinary(767) NOT NULL, - `oi_user` int(10) unsigned NOT NULL DEFAULT '0', - `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `oi_metadata` mediumblob NOT NULL, - `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `oi_sha1` varbinary(32) NOT NULL DEFAULT '', - KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), - KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), - KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), - KEY `oi_sha1` (`oi_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page` ( - `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `page_namespace` int(11) NOT NULL, - `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `page_restrictions` tinyblob NOT NULL, - `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_random` double unsigned NOT NULL, - `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `page_latest` int(10) unsigned NOT NULL, - `page_len` int(10) unsigned NOT NULL, - `page_content_model` varbinary(32) DEFAULT NULL, - `page_links_updated` varbinary(14) DEFAULT NULL, - `page_lang` varbinary(35) DEFAULT NULL, - PRIMARY KEY (`page_id`), - UNIQUE KEY `name_title` (`page_namespace`,`page_title`), - KEY `page_random` (`page_random`), - KEY `page_len` (`page_len`), - KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_props` ( - `pp_page` int(11) NOT NULL, - `pp_propname` varbinary(60) NOT NULL, - `pp_value` blob NOT NULL, - `pp_sortkey` float DEFAULT NULL, - PRIMARY KEY (`pp_page`,`pp_propname`), - UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), - UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_restrictions` ( - `pr_page` int(11) NOT NULL, - `pr_type` varbinary(60) NOT NULL, - `pr_level` varbinary(60) NOT NULL, - `pr_cascade` tinyint(4) NOT NULL, - `pr_user` int(11) DEFAULT NULL, - `pr_expiry` varbinary(14) DEFAULT NULL, - `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`pr_page`,`pr_type`), - UNIQUE KEY `pr_id` (`pr_id`), - KEY `pr_typelevel` (`pr_type`,`pr_level`), - KEY `pr_level` (`pr_level`), - KEY `pr_cascade` (`pr_cascade`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pagelinks` ( - `pl_from` int(10) unsigned NOT NULL DEFAULT '0', - `pl_namespace` int(11) NOT NULL DEFAULT '0', - `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `pl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), - UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), - KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `protected_titles` ( - `pt_namespace` int(11) NOT NULL, - `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `pt_user` int(10) unsigned NOT NULL, - `pt_reason` varbinary(767) DEFAULT NULL, - `pt_timestamp` binary(14) NOT NULL, - `pt_expiry` varbinary(14) NOT NULL DEFAULT '', - `pt_create_perm` varbinary(60) NOT NULL, - PRIMARY KEY (`pt_namespace`,`pt_title`), - KEY `pt_timestamp` (`pt_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache` ( - `qc_type` varbinary(32) NOT NULL, - `qc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qc_namespace` int(11) NOT NULL DEFAULT '0', - `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qc_type` (`qc_type`,`qc_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache_info` ( - `qci_type` varbinary(32) NOT NULL DEFAULT '', - `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - UNIQUE KEY `qci_type` (`qci_type`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycachetwo` ( - `qcc_type` varbinary(32) NOT NULL, - `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qcc_namespace` int(11) NOT NULL DEFAULT '0', - `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', - `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qcc_type` (`qcc_type`,`qcc_value`), - KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), - KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `recentchanges` ( - `rc_id` int(11) NOT NULL AUTO_INCREMENT, - `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', - `rc_user` int(10) unsigned NOT NULL DEFAULT '0', - `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rc_namespace` int(11) NOT NULL, - `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rc_comment` varbinary(767) NOT NULL DEFAULT '', - `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', - `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_ip` varbinary(40) NOT NULL DEFAULT '', - `rc_old_len` int(11) DEFAULT NULL, - `rc_new_len` int(11) DEFAULT NULL, - `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_log_type` varbinary(255) DEFAULT NULL, - `rc_log_action` varbinary(255) DEFAULT NULL, - `rc_params` blob, - `rc_source` varbinary(16) NOT NULL DEFAULT '', - PRIMARY KEY (`rc_id`), - KEY `rc_timestamp` (`rc_timestamp`), - KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), - KEY `rc_cur_id` (`rc_cur_id`), - KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), - KEY `rc_ip` (`rc_ip`), - KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), - KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `redirect` ( - `rd_from` int(10) unsigned NOT NULL DEFAULT '0', - `rd_namespace` int(11) NOT NULL DEFAULT '0', - `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rd_interwiki` varchar(32) DEFAULT NULL, - `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - PRIMARY KEY (`rd_from`), - KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `revision` ( - `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `rev_page` int(10) unsigned NOT NULL, - `rev_text_id` int(10) unsigned NOT NULL, - `rev_comment` varbinary(767) NOT NULL, - `rev_user` int(10) unsigned NOT NULL DEFAULT '0', - `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_len` int(10) unsigned DEFAULT NULL, - `rev_parent_id` int(10) unsigned DEFAULT NULL, - `rev_sha1` varbinary(32) NOT NULL DEFAULT '', - `rev_content_model` varbinary(32) DEFAULT NULL, - `rev_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`rev_id`), - UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), - KEY `rev_timestamp` (`rev_timestamp`), - KEY `page_timestamp` (`rev_page`,`rev_timestamp`), - KEY `user_timestamp` (`rev_user`,`rev_timestamp`), - KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), - KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `searchindex` ( - `si_page` int(10) unsigned NOT NULL, - `si_title` varchar(255) NOT NULL DEFAULT '', - `si_text` mediumtext NOT NULL, - FULLTEXT KEY `si_title` (`si_title`), - FULLTEXT KEY `si_text` (`si_text`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_identifiers` ( - `si_site` int(10) unsigned NOT NULL, - `si_type` varbinary(32) NOT NULL, - `si_key` varbinary(32) NOT NULL, - UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), - KEY `site_ids_site` (`si_site`), - KEY `site_ids_key` (`si_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_stats` ( - `ss_row_id` int(10) unsigned NOT NULL, - `ss_total_edits` bigint(20) unsigned DEFAULT '0', - `ss_good_articles` bigint(20) unsigned DEFAULT '0', - `ss_total_pages` bigint(20) DEFAULT '-1', - `ss_users` bigint(20) DEFAULT '-1', - `ss_active_users` bigint(20) DEFAULT '-1', - `ss_images` int(11) DEFAULT '0', - UNIQUE KEY `ss_row_id` (`ss_row_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `sites` ( - `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `site_global_key` varbinary(32) NOT NULL, - `site_type` varbinary(32) NOT NULL, - `site_group` varbinary(32) NOT NULL, - `site_source` varbinary(32) NOT NULL, - `site_language` varbinary(32) NOT NULL, - `site_protocol` varbinary(32) NOT NULL, - `site_domain` varchar(255) NOT NULL, - `site_data` blob NOT NULL, - `site_forward` tinyint(1) NOT NULL, - `site_config` blob NOT NULL, - PRIMARY KEY (`site_id`), - UNIQUE KEY `sites_global_key` (`site_global_key`), - KEY `sites_type` (`site_type`), - KEY `sites_group` (`site_group`), - KEY `sites_source` (`site_source`), - KEY `sites_language` (`site_language`), - KEY `sites_protocol` (`site_protocol`), - KEY `sites_domain` (`site_domain`), - KEY `sites_forward` (`site_forward`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `tag_summary` ( - `ts_rc_id` int(11) DEFAULT NULL, - `ts_log_id` int(11) DEFAULT NULL, - `ts_rev_id` int(11) DEFAULT NULL, - `ts_tags` blob NOT NULL, - UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), - UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), - UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `templatelinks` ( - `tl_from` int(10) unsigned NOT NULL DEFAULT '0', - `tl_namespace` int(11) NOT NULL DEFAULT '0', - `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `tl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), - UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), - KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `text` ( - `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `old_text` mediumblob NOT NULL, - `old_flags` tinyblob NOT NULL, - PRIMARY KEY (`old_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread` ( - `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, - `thread_root` int(8) unsigned NOT NULL, - `thread_ancestor` int(8) unsigned NOT NULL, - `thread_parent` int(8) unsigned DEFAULT NULL, - `thread_summary_page` int(8) unsigned DEFAULT NULL, - `thread_subject` varchar(255) DEFAULT NULL, - `thread_author_id` int(10) unsigned DEFAULT NULL, - `thread_author_name` varchar(255) DEFAULT NULL, - `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_editedness` int(1) NOT NULL DEFAULT '0', - `thread_article_namespace` int(11) NOT NULL, - `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `thread_article_id` int(8) unsigned NOT NULL, - `thread_type` int(4) unsigned NOT NULL DEFAULT '0', - `thread_sortkey` varchar(255) NOT NULL DEFAULT '', - `thread_replies` int(8) DEFAULT '-1', - `thread_signature` tinyblob, - PRIMARY KEY (`thread_id`), - UNIQUE KEY `thread_root` (`thread_root`), - UNIQUE KEY `thread_root_2` (`thread_root`), - KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), - KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), - KEY `thread_article` (`thread_article_id`,`thread_sortkey`), - KEY `thread_modified` (`thread_modified`), - KEY `thread_created` (`thread_created`), - KEY `thread_summary_page` (`thread_summary_page`), - KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), - KEY `thread_sortkey` (`thread_sortkey`), - KEY `thread_parent` (`thread_parent`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_history` ( - `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `th_thread` int(10) unsigned NOT NULL, - `th_timestamp` varbinary(14) NOT NULL, - `th_user` int(10) unsigned NOT NULL, - `th_user_text` varchar(255) NOT NULL, - `th_change_type` int(10) unsigned NOT NULL, - `th_change_object` int(10) unsigned NOT NULL, - `th_change_comment` tinytext NOT NULL, - `th_content` longblob NOT NULL, - PRIMARY KEY (`th_id`), - KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), - KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), - KEY `th_user_text` (`th_user`,`th_user_text`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( - `tpr_thread` int(10) unsigned NOT NULL, - `tpr_relationship` varbinary(64) NOT NULL, - `tpr_title` varbinary(255) NOT NULL, - `tpr_type` varbinary(32) NOT NULL, - PRIMARY KEY (`tpr_thread`,`tpr_relationship`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_reaction` ( - `tr_thread` int(10) unsigned NOT NULL, - `tr_user` int(10) unsigned NOT NULL, - `tr_user_text` varbinary(255) NOT NULL, - `tr_type` varbinary(64) NOT NULL, - `tr_value` int(11) NOT NULL, - PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), - KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `transcache` ( - `tc_url` varbinary(255) NOT NULL, - `tc_contents` text, - `tc_time` binary(14) DEFAULT NULL, - UNIQUE KEY `tc_url_idx` (`tc_url`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `updatelog` ( - `ul_key` varchar(255) NOT NULL, - `ul_value` blob, - PRIMARY KEY (`ul_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uploadstash` ( - `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `us_user` int(10) unsigned NOT NULL, - `us_key` varchar(255) NOT NULL, - `us_orig_path` varchar(255) NOT NULL, - `us_path` varchar(255) NOT NULL, - `us_source_type` varchar(50) DEFAULT NULL, - `us_timestamp` varbinary(14) NOT NULL, - `us_status` varchar(50) NOT NULL, - `us_chunk_inx` int(10) unsigned DEFAULT NULL, - `us_props` blob, - `us_size` int(10) unsigned NOT NULL, - `us_sha1` varchar(31) NOT NULL, - `us_mime` varchar(255) DEFAULT NULL, - `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `us_image_width` int(10) unsigned DEFAULT NULL, - `us_image_height` int(10) unsigned DEFAULT NULL, - `us_image_bits` smallint(5) unsigned DEFAULT NULL, - PRIMARY KEY (`us_id`), - UNIQUE KEY `us_key` (`us_key`), - KEY `us_user` (`us_user`), - KEY `us_timestamp` (`us_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user` ( - `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_password` tinyblob NOT NULL, - `user_newpassword` tinyblob NOT NULL, - `user_newpass_time` binary(14) DEFAULT NULL, - `user_email` tinytext NOT NULL, - `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `user_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', - `user_email_authenticated` binary(14) DEFAULT NULL, - `user_email_token` binary(32) DEFAULT NULL, - `user_email_token_expires` binary(14) DEFAULT NULL, - `user_registration` binary(14) DEFAULT NULL, - `user_editcount` int(11) DEFAULT NULL, - PRIMARY KEY (`user_id`), - UNIQUE KEY `user_name` (`user_name`), - KEY `user_email_token` (`user_email_token`), - KEY `user_email` (`user_email`(50)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_former_groups` ( - `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', - `ufg_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_groups` ( - `ug_user` int(10) unsigned NOT NULL DEFAULT '0', - `ug_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), - KEY `ug_group` (`ug_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_message_state` ( - `ums_user` int(10) unsigned NOT NULL, - `ums_thread` int(8) unsigned NOT NULL, - `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', - `ums_read_timestamp` varbinary(14) DEFAULT NULL, - PRIMARY KEY (`ums_user`,`ums_thread`), - KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_newtalk` ( - `user_id` int(10) unsigned NOT NULL DEFAULT '0', - `user_ip` varbinary(40) NOT NULL DEFAULT '', - `user_last_timestamp` varbinary(14) DEFAULT NULL, - KEY `un_user_id` (`user_id`), - KEY `un_user_ip` (`user_ip`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_properties` ( - `up_user` int(11) NOT NULL, - `up_property` varbinary(255) NOT NULL, - `up_value` blob, - UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), - KEY `user_properties_property` (`up_property`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `valid_tag` ( - `vt_tag` varchar(255) NOT NULL, - PRIMARY KEY (`vt_tag`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `watchlist` ( - `wl_user` int(10) unsigned NOT NULL, - `wl_namespace` int(11) NOT NULL DEFAULT '0', - `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, - UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), - KEY `namespace_title` (`wl_namespace`,`wl_title`), - KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - -DROP INDEX flow_ext_ref_idx_v2 ON flow_ext_ref; DROP INDEX flow_ext_ref_revision_v2 ON flow_ext_ref; ALTER TABLE flow_ext_ref CHANGE ref_target ref_target BLOB NOT NULL; CREATE INDEX flow_ext_ref_idx_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_type, ref_target(255), ref_src_object_type, ref_src_object_id); CREATE INDEX flow_ext_ref_revision_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_src_object_type, ref_src_object_id, ref_type, ref_target(255)); + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `archive` ( + `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `ar_namespace` int(11) NOT NULL DEFAULT '0', + `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ar_text` mediumblob NOT NULL, + `ar_comment` varbinary(767) NOT NULL, + `ar_user` int(10) unsigned NOT NULL DEFAULT '0', + `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', + `ar_flags` tinyblob NOT NULL, + `ar_rev_id` int(10) unsigned DEFAULT NULL, + `ar_text_id` int(10) unsigned DEFAULT NULL, + `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `ar_len` int(10) unsigned DEFAULT NULL, + `ar_page_id` int(10) unsigned DEFAULT NULL, + `ar_parent_id` int(10) unsigned DEFAULT NULL, + `ar_sha1` varbinary(32) NOT NULL DEFAULT '', + `ar_content_format` varbinary(64) DEFAULT NULL, + `ar_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`ar_id`), + KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), + KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), + KEY `ar_revid` (`ar_rev_id`), + KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_commentmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `comment_id` (`comment_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_comments` ( + `comment_ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_post_ID` bigint(20) unsigned NOT NULL DEFAULT '0', + `comment_author` tinytext NOT NULL, + `comment_author_email` varchar(100) NOT NULL DEFAULT '', + `comment_author_url` varchar(200) NOT NULL DEFAULT '', + `comment_author_IP` varchar(100) NOT NULL DEFAULT '', + `comment_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_content` text NOT NULL, + `comment_karma` int(11) NOT NULL DEFAULT '0', + `comment_approved` varchar(20) NOT NULL DEFAULT '1', + `comment_agent` varchar(255) NOT NULL DEFAULT '', + `comment_type` varchar(20) NOT NULL DEFAULT '', + `comment_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`comment_ID`), + KEY `comment_post_ID` (`comment_post_ID`), + KEY `comment_approved_date_gmt` (`comment_approved`,`comment_date_gmt`), + KEY `comment_date_gmt` (`comment_date_gmt`), + KEY `comment_parent` (`comment_parent`), + KEY `comment_author_email` (`comment_author_email`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_links` ( + `link_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `link_url` varchar(255) NOT NULL DEFAULT '', + `link_name` varchar(255) NOT NULL DEFAULT '', + `link_image` varchar(255) NOT NULL DEFAULT '', + `link_target` varchar(25) NOT NULL DEFAULT '', + `link_description` varchar(255) NOT NULL DEFAULT '', + `link_visible` varchar(20) NOT NULL DEFAULT 'Y', + `link_owner` bigint(20) unsigned NOT NULL DEFAULT '1', + `link_rating` int(11) NOT NULL DEFAULT '0', + `link_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `link_rel` varchar(255) NOT NULL DEFAULT '', + `link_notes` mediumtext NOT NULL, + `link_rss` varchar(255) NOT NULL DEFAULT '', + PRIMARY KEY (`link_id`), + KEY `link_visible` (`link_visible`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_options` ( + `option_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `option_name` varchar(64) NOT NULL DEFAULT '', + `option_value` longtext NOT NULL, + `autoload` varchar(20) NOT NULL DEFAULT 'yes', + PRIMARY KEY (`option_id`), + UNIQUE KEY `option_name` (`option_name`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_postmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `post_id` (`post_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_posts` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_author` bigint(20) unsigned NOT NULL DEFAULT '0', + `post_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content` longtext NOT NULL, + `post_title` text NOT NULL, + `post_excerpt` text NOT NULL, + `post_status` varchar(20) NOT NULL DEFAULT 'publish', + `comment_status` varchar(20) NOT NULL DEFAULT 'open', + `ping_status` varchar(20) NOT NULL DEFAULT 'open', + `post_password` varchar(20) NOT NULL DEFAULT '', + `post_name` varchar(200) NOT NULL DEFAULT '', + `to_ping` text NOT NULL, + `pinged` text NOT NULL, + `post_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_modified_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content_filtered` longtext NOT NULL, + `post_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `guid` varchar(255) NOT NULL DEFAULT '', + `menu_order` int(11) NOT NULL DEFAULT '0', + `post_type` varchar(20) NOT NULL DEFAULT 'post', + `post_mime_type` varchar(100) NOT NULL DEFAULT '', + `comment_count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`), + KEY `post_name` (`post_name`), + KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`ID`), + KEY `post_parent` (`post_parent`), + KEY `post_author` (`post_author`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_relationships` ( + `object_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_taxonomy_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`object_id`,`term_taxonomy_id`), + KEY `term_taxonomy_id` (`term_taxonomy_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_taxonomy` ( + `term_taxonomy_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `term_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `taxonomy` varchar(32) NOT NULL DEFAULT '', + `description` longtext NOT NULL, + `parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_taxonomy_id`), + UNIQUE KEY `term_id_taxonomy` (`term_id`,`taxonomy`), + KEY `taxonomy` (`taxonomy`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_terms` ( + `term_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(200) NOT NULL DEFAULT '', + `slug` varchar(200) NOT NULL DEFAULT '', + `term_group` bigint(10) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_id`), + KEY `name` (`name`), + KEY `slug` (`slug`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_usermeta` ( + `umeta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`umeta_id`), + KEY `user_id` (`user_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_users` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_login` varchar(60) NOT NULL DEFAULT '', + `user_pass` varchar(64) NOT NULL DEFAULT '', + `user_nicename` varchar(50) NOT NULL DEFAULT '', + `user_email` varchar(100) NOT NULL DEFAULT '', + `user_url` varchar(100) NOT NULL DEFAULT '', + `user_registered` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `user_activation_key` varchar(60) NOT NULL DEFAULT '', + `user_status` int(11) NOT NULL DEFAULT '0', + `display_name` varchar(250) NOT NULL DEFAULT '', + PRIMARY KEY (`ID`), + KEY `user_login_key` (`user_login`), + KEY `user_nicename` (`user_nicename`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `bot_passwords` ( + `bp_user` int(11) NOT NULL, + `bp_app_id` varbinary(32) 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_restrictions` blob NOT NULL, + `bp_grants` blob NOT NULL, + PRIMARY KEY (`bp_user`,`bp_app_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `category` ( + `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `cat_pages` int(11) NOT NULL DEFAULT '0', + `cat_subcats` int(11) NOT NULL DEFAULT '0', + `cat_files` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`cat_id`), + UNIQUE KEY `cat_title` (`cat_title`), + KEY `cat_pages` (`cat_pages`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `categorylinks` ( + `cl_from` int(10) unsigned NOT NULL DEFAULT '0', + `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', + `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `cl_collation` varbinary(32) NOT NULL DEFAULT '', + `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', + UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), + KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), + KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), + KEY `cl_collation_ext` (`cl_collation`,`cl_to`,`cl_type`,`cl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `change_tag` ( + `ct_rc_id` int(11) DEFAULT NULL, + `ct_log_id` int(11) DEFAULT NULL, + `ct_rev_id` int(11) DEFAULT NULL, + `ct_tag` varchar(255) NOT NULL, + `ct_params` blob, + UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), + UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), + UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), + KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_email_batch` ( + `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `eeb_user_id` int(10) unsigned NOT NULL, + `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', + `eeb_event_id` int(10) unsigned NOT NULL, + `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eeb_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`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_event` ( + `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_agent_id` int(10) unsigned DEFAULT NULL, + `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_page_namespace` int(10) unsigned DEFAULT NULL, + `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_extra` blob, + `event_page_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`event_id`), + KEY `echo_event_type` (`event_type`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_notification` ( + `notification_event` int(10) unsigned NOT NULL, + `notification_user` int(10) unsigned NOT NULL, + `notification_timestamp` binary(14) NOT NULL, + `notification_read_timestamp` binary(14) DEFAULT NULL, + `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', + `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `user_event` (`notification_user`,`notification_event`), + KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), + KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), + KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), + KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), + KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_target_page` ( + `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`etp_id`), + KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), + KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `external_user` ( + `eu_local_id` int(10) unsigned NOT NULL, + `eu_external_id` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eu_local_id`), + UNIQUE KEY `eu_external_id` (`eu_external_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `externallinks` ( + `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `el_from` int(10) unsigned NOT NULL DEFAULT '0', + `el_to` blob NOT NULL, + `el_index` blob NOT NULL, + PRIMARY KEY (`el_id`), + KEY `el_from` (`el_from`,`el_to`(40)), + KEY `el_to` (`el_to`(60),`el_from`), + KEY `el_index` (`el_index`(60)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `filearchive` ( + `fa_id` int(11) NOT NULL AUTO_INCREMENT, + `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', + `fa_storage_group` varbinary(16) DEFAULT NULL, + `fa_storage_key` varbinary(64) DEFAULT '', + `fa_deleted_user` int(11) DEFAULT NULL, + `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted_reason` varbinary(767) DEFAULT '', + `fa_size` int(10) unsigned DEFAULT '0', + `fa_width` int(11) DEFAULT '0', + `fa_height` int(11) DEFAULT '0', + `fa_metadata` mediumblob, + `fa_bits` int(11) DEFAULT '0', + `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `fa_minor_mime` varbinary(100) DEFAULT 'unknown', + `fa_description` varbinary(767) DEFAULT NULL, + `fa_user` int(10) unsigned DEFAULT '0', + `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `fa_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fa_id`), + KEY `fa_name` (`fa_name`,`fa_timestamp`), + KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), + KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), + KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), + KEY `fa_sha1` (`fa_sha1`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedimages` ( + `fi_rev_id` int(10) unsigned NOT NULL, + `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fi_img_timestamp` varbinary(14) DEFAULT NULL, + `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fi_rev_id`,`fi_name`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( + `fpc_page_id` int(10) unsigned NOT NULL, + `fpc_select` int(11) NOT NULL, + `fpc_override` tinyint(1) NOT NULL, + `fpc_level` varbinary(60) DEFAULT NULL, + `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', + PRIMARY KEY (`fpc_page_id`), + KEY `fpc_expiry` (`fpc_expiry`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( + `fpp_page_id` int(10) unsigned NOT NULL, + `fpp_quality` tinyint(1) NOT NULL, + `fpp_rev_id` int(10) unsigned NOT NULL, + `fpp_pending_since` varbinary(14) NOT NULL, + PRIMARY KEY (`fpp_page_id`,`fpp_quality`), + KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpages` ( + `fp_page_id` int(10) unsigned NOT NULL, + `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', + `fp_pending_since` varbinary(14) DEFAULT NULL, + `fp_stable` int(10) unsigned NOT NULL, + `fp_quality` tinyint(1) DEFAULT NULL, + PRIMARY KEY (`fp_page_id`), + KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), + KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), + KEY `fp_pending_since` (`fp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs` ( + `fr_rev_id` int(10) unsigned NOT NULL, + `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', + `fr_page_id` int(10) unsigned NOT NULL, + `fr_user` int(10) unsigned NOT NULL, + `fr_timestamp` varbinary(14) NOT NULL, + `fr_quality` tinyint(1) NOT NULL DEFAULT '0', + `fr_tags` mediumblob NOT NULL, + `fr_flags` tinyblob NOT NULL, + `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fr_img_timestamp` varbinary(14) DEFAULT NULL, + `fr_img_sha1` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`fr_rev_id`), + KEY `page_rev` (`fr_page_id`,`fr_rev_id`), + KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), + KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), + KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), + KEY `fr_img_sha1` (`fr_img_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( + `frp_user_id` int(10) unsigned NOT NULL, + `frp_user_params` mediumblob NOT NULL, + PRIMARY KEY (`frp_user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( + `frs_timestamp` varbinary(14) NOT NULL, + `frs_stat_key` varchar(255) NOT NULL, + `frs_stat_val` bigint(20) NOT NULL, + PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), + KEY `frs_timestamp` (`frs_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( + `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', + `ftr_namespace` int(11) NOT NULL DEFAULT '0', + `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), + KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( + `ft_rev_id` int(10) unsigned NOT NULL, + `ft_namespace` int(11) NOT NULL DEFAULT '0', + `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target` blob NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`(255),`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`(255)) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_revision` ( + `rev_id` binary(11) NOT NULL, + `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', + `rev_user_id` bigint(20) unsigned NOT NULL, + `rev_user_ip` varbinary(39) DEFAULT NULL, + `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_parent_id` binary(11) DEFAULT NULL, + `rev_flags` tinyblob NOT NULL, + `rev_content` mediumblob NOT NULL, + `rev_change_type` varbinary(255) DEFAULT NULL, + `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_mod_user_ip` varbinary(39) DEFAULT NULL, + `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_last_edit_id` binary(11) DEFAULT NULL, + `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_edit_user_ip` varbinary(39) DEFAULT NULL, + `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_content_length` int(11) NOT NULL DEFAULT '0', + `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`rev_id`), + UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), + KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), + KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_subscription` ( + `subscription_workflow_id` int(10) unsigned NOT NULL, + `subscription_user_id` bigint(20) unsigned NOT NULL, + `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), + KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_topic_list` ( + `topic_list_id` binary(11) NOT NULL, + `topic_id` binary(11) DEFAULT NULL, + UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), + KEY `flow_topic_list_topic_id` (`topic_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_node` ( + `tree_ancestor_id` binary(11) NOT NULL, + `tree_descendant_id` binary(11) NOT NULL, + `tree_depth` smallint(6) NOT NULL, + UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), + UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( + `tree_rev_descendant_id` binary(11) NOT NULL, + `tree_rev_id` binary(11) NOT NULL, + `tree_orig_user_id` bigint(20) unsigned NOT NULL, + `tree_orig_user_ip` varbinary(39) DEFAULT NULL, + `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `tree_parent_id` binary(11) DEFAULT NULL, + PRIMARY KEY (`tree_rev_id`), + KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target_namespace` int(11) NOT NULL, + `ref_target_title` varbinary(255) NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_workflow` ( + `workflow_id` binary(11) NOT NULL, + `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_namespace` int(11) NOT NULL, + `workflow_page_id` int(10) unsigned NOT NULL, + `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_last_update_timestamp` binary(14) NOT NULL, + `workflow_lock_state` int(10) unsigned NOT NULL, + `workflow_type` varbinary(16) NOT NULL, + PRIMARY KEY (`workflow_id`), + KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), + KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `historical_thread` ( + `hthread_id` int(8) unsigned NOT NULL, + `hthread_revision` int(8) unsigned NOT NULL, + `hthread_contents` blob NOT NULL, + `hthread_change_type` int(4) unsigned NOT NULL, + `hthread_change_object` int(8) unsigned DEFAULT NULL, + PRIMARY KEY (`hthread_id`,`hthread_revision`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `image` ( + `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `img_size` int(10) unsigned NOT NULL DEFAULT '0', + `img_width` int(11) NOT NULL DEFAULT '0', + `img_height` int(11) NOT NULL DEFAULT '0', + `img_metadata` mediumblob NOT NULL, + `img_bits` int(11) NOT NULL DEFAULT '0', + `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `img_description` varbinary(767) NOT NULL, + `img_user` int(10) unsigned NOT NULL DEFAULT '0', + `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `img_timestamp` varbinary(14) NOT NULL DEFAULT '', + `img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`img_name`), + KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), + KEY `img_size` (`img_size`), + KEY `img_timestamp` (`img_timestamp`), + KEY `img_sha1` (`img_sha1`), + KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `imagelinks` ( + `il_from` int(10) unsigned NOT NULL DEFAULT '0', + `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `il_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `il_from` (`il_from`,`il_to`), + UNIQUE KEY `il_to` (`il_to`,`il_from`), + KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `interwiki` ( + `iw_prefix` varchar(32) NOT NULL, + `iw_url` blob NOT NULL, + `iw_api` blob NOT NULL, + `iw_wikiid` varchar(64) NOT NULL, + `iw_local` tinyint(1) NOT NULL, + `iw_trans` tinyint(4) NOT NULL DEFAULT '0', + UNIQUE KEY `iw_prefix` (`iw_prefix`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `ipblocks` ( + `ipb_id` int(11) NOT NULL AUTO_INCREMENT, + `ipb_address` tinyblob NOT NULL, + `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ipb_reason` varbinary(767) NOT NULL, + `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `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 DEFAULT '', + `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(11) DEFAULT NULL, + PRIMARY KEY (`ipb_id`), + UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), + 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 AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `iwlinks` ( + `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', + `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', + `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), + 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=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `job` ( + `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `job_cmd` varbinary(60) NOT NULL DEFAULT '', + `job_namespace` int(11) NOT NULL, + `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `job_params` blob NOT NULL, + `job_timestamp` varbinary(14) DEFAULT NULL, + `job_random` int(10) unsigned NOT NULL DEFAULT '0', + `job_token` varbinary(32) NOT NULL DEFAULT '', + `job_token_timestamp` varbinary(14) DEFAULT NULL, + `job_sha1` varbinary(32) NOT NULL DEFAULT '', + `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`job_id`), + KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), + KEY `job_timestamp` (`job_timestamp`), + KEY `job_sha1` (`job_sha1`), + KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), + KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `l10n_cache` ( + `lc_lang` varbinary(32) NOT NULL, + `lc_key` varchar(255) NOT NULL, + `lc_value` mediumblob NOT NULL, + KEY `lc_lang_key` (`lc_lang`,`lc_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `langlinks` ( + `ll_from` int(10) unsigned NOT NULL DEFAULT '0', + `ll_lang` varbinary(20) NOT NULL DEFAULT '', + `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), + KEY `ll_lang` (`ll_lang`,`ll_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `log_search` ( + `ls_field` varbinary(32) NOT NULL, + `ls_value` varchar(255) NOT NULL, + `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', + UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), + KEY `ls_log_id` (`ls_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `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_user` int(10) unsigned NOT NULL DEFAULT '0', + `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_namespace` int(11) NOT NULL DEFAULT '0', + `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_page` int(10) unsigned DEFAULT NULL, + `log_comment` varbinary(767) NOT NULL DEFAULT '', + `log_params` blob NOT NULL, + `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`log_id`), + KEY `type_time` (`log_type`,`log_timestamp`), + KEY `user_time` (`log_user`,`log_timestamp`), + KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), + KEY `times` (`log_timestamp`), + KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), + KEY `log_page_id_time` (`log_page`,`log_timestamp`), + KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), + KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), + KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `math` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_outputhash` varbinary(16) NOT NULL, + `math_html_conservativeness` tinyint(4) NOT NULL, + `math_html` text, + `math_mathml` text, + UNIQUE KEY `math_inputhash` (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `mathoid` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_input` text NOT NULL, + `math_tex` text, + `math_mathml` text, + `math_svg` text, + `math_style` tinyint(4) DEFAULT NULL, + `math_input_type` tinyint(4) DEFAULT NULL, + PRIMARY KEY (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `module_deps` ( + `md_module` varbinary(255) NOT NULL, + `md_skin` varbinary(32) NOT NULL, + `md_deps` mediumblob NOT NULL, + UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `objectcache` ( + `keyname` varbinary(255) NOT NULL DEFAULT '', + `value` mediumblob, + `exptime` datetime DEFAULT NULL, + PRIMARY KEY (`keyname`), + KEY `exptime` (`exptime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `oldimage` ( + `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_size` int(10) unsigned NOT NULL DEFAULT '0', + `oi_width` int(11) NOT NULL DEFAULT '0', + `oi_height` int(11) NOT NULL DEFAULT '0', + `oi_bits` int(11) NOT NULL DEFAULT '0', + `oi_description` varbinary(767) NOT NULL, + `oi_user` int(10) unsigned NOT NULL DEFAULT '0', + `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `oi_metadata` mediumblob NOT NULL, + `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `oi_sha1` varbinary(32) NOT NULL DEFAULT '', + KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), + KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), + KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), + KEY `oi_sha1` (`oi_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page` ( + `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `page_namespace` int(11) NOT NULL, + `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `page_restrictions` tinyblob NOT NULL, + `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_random` double unsigned NOT NULL, + `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `page_latest` int(10) unsigned NOT NULL, + `page_len` int(10) unsigned NOT NULL, + `page_content_model` varbinary(32) DEFAULT NULL, + `page_links_updated` varbinary(14) DEFAULT NULL, + `page_lang` varbinary(35) DEFAULT NULL, + PRIMARY KEY (`page_id`), + UNIQUE KEY `name_title` (`page_namespace`,`page_title`), + KEY `page_random` (`page_random`), + KEY `page_len` (`page_len`), + KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_props` ( + `pp_page` int(11) NOT NULL, + `pp_propname` varbinary(60) NOT NULL, + `pp_value` blob NOT NULL, + `pp_sortkey` float DEFAULT NULL, + UNIQUE KEY `pp_page_propname` (`pp_page`,`pp_propname`), + UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), + UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_restrictions` ( + `pr_page` int(11) NOT NULL, + `pr_type` varbinary(60) NOT NULL, + `pr_level` varbinary(60) NOT NULL, + `pr_cascade` tinyint(4) NOT NULL, + `pr_user` int(11) DEFAULT NULL, + `pr_expiry` varbinary(14) DEFAULT NULL, + `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`pr_id`), + UNIQUE KEY `pr_pagetype` (`pr_page`,`pr_type`), + KEY `pr_typelevel` (`pr_type`,`pr_level`), + KEY `pr_level` (`pr_level`), + KEY `pr_cascade` (`pr_cascade`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `pagelinks` ( + `pl_from` int(10) unsigned NOT NULL DEFAULT '0', + `pl_namespace` int(11) NOT NULL DEFAULT '0', + `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `pl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), + UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), + KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `protected_titles` ( + `pt_namespace` int(11) NOT NULL, + `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `pt_user` int(10) unsigned NOT NULL, + `pt_reason` varbinary(767) DEFAULT NULL, + `pt_timestamp` binary(14) NOT NULL, + `pt_expiry` varbinary(14) NOT NULL DEFAULT '', + `pt_create_perm` varbinary(60) NOT NULL, + UNIQUE KEY `pt_namespace_title` (`pt_namespace`,`pt_title`), + KEY `pt_timestamp` (`pt_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache` ( + `qc_type` varbinary(32) NOT NULL, + `qc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qc_namespace` int(11) NOT NULL DEFAULT '0', + `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qc_type` (`qc_type`,`qc_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache_info` ( + `qci_type` varbinary(32) NOT NULL DEFAULT '', + `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', + UNIQUE KEY `qci_type` (`qci_type`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycachetwo` ( + `qcc_type` varbinary(32) NOT NULL, + `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qcc_namespace` int(11) NOT NULL DEFAULT '0', + `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', + `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qcc_type` (`qcc_type`,`qcc_value`), + KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), + KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `recentchanges` ( + `rc_id` int(11) NOT NULL AUTO_INCREMENT, + `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', + `rc_user` int(10) unsigned NOT NULL DEFAULT '0', + `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rc_namespace` int(11) NOT NULL DEFAULT '0', + `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rc_comment` varbinary(767) NOT NULL DEFAULT '', + `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', + `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_ip` varbinary(40) NOT NULL DEFAULT '', + `rc_old_len` int(11) DEFAULT NULL, + `rc_new_len` int(11) DEFAULT NULL, + `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_log_type` varbinary(255) DEFAULT NULL, + `rc_log_action` varbinary(255) DEFAULT NULL, + `rc_params` blob, + `rc_source` varbinary(16) NOT NULL DEFAULT '', + PRIMARY KEY (`rc_id`), + KEY `rc_timestamp` (`rc_timestamp`), + KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), + KEY `rc_cur_id` (`rc_cur_id`), + KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), + KEY `rc_ip` (`rc_ip`), + KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), + KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `redirect` ( + `rd_from` int(10) unsigned NOT NULL DEFAULT '0', + `rd_namespace` int(11) NOT NULL DEFAULT '0', + `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rd_interwiki` varchar(32) DEFAULT NULL, + `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + PRIMARY KEY (`rd_from`), + KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `revision` ( + `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `rev_page` int(10) unsigned NOT NULL, + `rev_text_id` int(10) unsigned NOT NULL, + `rev_comment` varbinary(767) NOT NULL, + `rev_user` int(10) unsigned NOT NULL DEFAULT '0', + `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_len` int(10) unsigned DEFAULT NULL, + `rev_parent_id` int(10) unsigned DEFAULT NULL, + `rev_sha1` varbinary(32) NOT NULL DEFAULT '', + `rev_content_format` varbinary(64) DEFAULT NULL, + `rev_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`rev_id`), + UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), + KEY `rev_timestamp` (`rev_timestamp`), + KEY `page_timestamp` (`rev_page`,`rev_timestamp`), + KEY `user_timestamp` (`rev_user`,`rev_timestamp`), + KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), + KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `searchindex` ( + `si_page` int(10) unsigned NOT NULL, + `si_title` varchar(255) NOT NULL DEFAULT '', + `si_text` mediumtext NOT NULL, + UNIQUE KEY `si_page` (`si_page`), + FULLTEXT KEY `si_title` (`si_title`), + FULLTEXT KEY `si_text` (`si_text`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_identifiers` ( + `si_site` int(10) unsigned NOT NULL, + `si_type` varbinary(32) NOT NULL, + `si_key` varbinary(32) NOT NULL, + UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), + KEY `site_ids_site` (`si_site`), + KEY `site_ids_key` (`si_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_stats` ( + `ss_row_id` int(10) unsigned NOT NULL, + `ss_total_edits` bigint(20) unsigned DEFAULT '0', + `ss_good_articles` bigint(20) unsigned DEFAULT '0', + `ss_total_pages` bigint(20) DEFAULT '-1', + `ss_users` bigint(20) DEFAULT '-1', + `ss_active_users` bigint(20) DEFAULT '-1', + `ss_images` int(11) DEFAULT '0', + UNIQUE KEY `ss_row_id` (`ss_row_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `sites` ( + `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `site_global_key` varbinary(32) NOT NULL, + `site_type` varbinary(32) NOT NULL, + `site_group` varbinary(32) NOT NULL, + `site_source` varbinary(32) NOT NULL, + `site_language` varbinary(32) NOT NULL, + `site_protocol` varbinary(32) NOT NULL, + `site_domain` varchar(255) NOT NULL, + `site_data` blob NOT NULL, + `site_forward` tinyint(1) NOT NULL, + `site_config` blob NOT NULL, + PRIMARY KEY (`site_id`), + UNIQUE KEY `sites_global_key` (`site_global_key`), + KEY `sites_type` (`site_type`), + KEY `sites_group` (`site_group`), + KEY `sites_source` (`site_source`), + KEY `sites_language` (`site_language`), + KEY `sites_protocol` (`site_protocol`), + KEY `sites_domain` (`site_domain`), + KEY `sites_forward` (`site_forward`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `tag_summary` ( + `ts_rc_id` int(11) DEFAULT NULL, + `ts_log_id` int(11) DEFAULT NULL, + `ts_rev_id` int(11) DEFAULT NULL, + `ts_tags` blob NOT NULL, + UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), + UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), + UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `templatelinks` ( + `tl_from` int(10) unsigned NOT NULL DEFAULT '0', + `tl_namespace` int(11) NOT NULL DEFAULT '0', + `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `tl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), + UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), + KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `text` ( + `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `old_text` mediumblob NOT NULL, + `old_flags` tinyblob NOT NULL, + PRIMARY KEY (`old_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread` ( + `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, + `thread_root` int(8) unsigned NOT NULL, + `thread_ancestor` int(8) unsigned NOT NULL, + `thread_parent` int(8) unsigned DEFAULT NULL, + `thread_summary_page` int(8) unsigned DEFAULT NULL, + `thread_subject` varchar(255) DEFAULT NULL, + `thread_author_id` int(10) unsigned DEFAULT NULL, + `thread_author_name` varchar(255) DEFAULT NULL, + `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_editedness` int(1) NOT NULL DEFAULT '0', + `thread_article_namespace` int(11) NOT NULL, + `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `thread_article_id` int(8) unsigned NOT NULL, + `thread_type` int(4) unsigned NOT NULL DEFAULT '0', + `thread_sortkey` varchar(255) NOT NULL DEFAULT '', + `thread_replies` int(8) DEFAULT '-1', + `thread_signature` tinyblob, + PRIMARY KEY (`thread_id`), + UNIQUE KEY `thread_root` (`thread_root`), + UNIQUE KEY `thread_root_2` (`thread_root`), + KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), + KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), + KEY `thread_article` (`thread_article_id`,`thread_sortkey`), + KEY `thread_modified` (`thread_modified`), + KEY `thread_created` (`thread_created`), + KEY `thread_summary_page` (`thread_summary_page`), + KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), + KEY `thread_sortkey` (`thread_sortkey`), + KEY `thread_parent` (`thread_parent`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_history` ( + `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `th_thread` int(10) unsigned NOT NULL, + `th_timestamp` varbinary(14) NOT NULL, + `th_user` int(10) unsigned NOT NULL, + `th_user_text` varchar(255) NOT NULL, + `th_change_type` int(10) unsigned NOT NULL, + `th_change_object` int(10) unsigned NOT NULL, + `th_change_comment` tinytext NOT NULL, + `th_content` longblob NOT NULL, + PRIMARY KEY (`th_id`), + KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), + KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), + KEY `th_user_text` (`th_user`,`th_user_text`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( + `tpr_thread` int(10) unsigned NOT NULL, + `tpr_relationship` varbinary(64) NOT NULL, + `tpr_title` varbinary(255) NOT NULL, + `tpr_type` varbinary(32) NOT NULL, + PRIMARY KEY (`tpr_thread`,`tpr_relationship`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_reaction` ( + `tr_thread` int(10) unsigned NOT NULL, + `tr_user` int(10) unsigned NOT NULL, + `tr_user_text` varbinary(255) NOT NULL, + `tr_type` varbinary(64) NOT NULL, + `tr_value` int(11) NOT NULL, + PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), + KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `trackbacks` ( + `tb_id` int(11) NOT NULL AUTO_INCREMENT, + `tb_page` int(11) DEFAULT NULL, + `tb_title` varchar(255) NOT NULL, + `tb_url` blob NOT NULL, + `tb_ex` text, + `tb_name` varchar(255) DEFAULT NULL, + PRIMARY KEY (`tb_id`), + KEY `tb_page` (`tb_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `transcache` ( + `tc_url` varbinary(255) NOT NULL, + `tc_contents` text, + `tc_time` binary(14) DEFAULT NULL, + UNIQUE KEY `tc_url_idx` (`tc_url`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `updatelog` ( + `ul_key` varchar(255) NOT NULL, + `ul_value` blob, + PRIMARY KEY (`ul_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `uploadstash` ( + `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `us_user` int(10) unsigned NOT NULL, + `us_key` varchar(255) NOT NULL, + `us_orig_path` varchar(255) NOT NULL, + `us_path` varchar(255) NOT NULL, + `us_source_type` varchar(50) DEFAULT NULL, + `us_timestamp` varbinary(14) NOT NULL, + `us_status` varchar(50) NOT NULL, + `us_size` int(10) unsigned NOT NULL, + `us_sha1` varchar(31) NOT NULL, + `us_mime` varchar(255) DEFAULT NULL, + `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `us_image_width` int(10) unsigned DEFAULT NULL, + `us_image_height` int(10) unsigned DEFAULT NULL, + `us_image_bits` smallint(5) unsigned DEFAULT NULL, + `us_chunk_inx` int(10) unsigned DEFAULT NULL, + `us_props` blob, + PRIMARY KEY (`us_id`), + UNIQUE KEY `us_key` (`us_key`), + KEY `us_user` (`us_user`), + KEY `us_timestamp` (`us_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user` ( + `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_password` tinyblob NOT NULL, + `user_newpassword` tinyblob NOT NULL, + `user_newpass_time` binary(14) DEFAULT NULL, + `user_email` tinytext NOT NULL, + `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `user_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', + `user_email_authenticated` binary(14) DEFAULT NULL, + `user_email_token` binary(32) DEFAULT NULL, + `user_email_token_expires` binary(14) DEFAULT NULL, + `user_registration` binary(14) DEFAULT NULL, + `user_editcount` int(11) DEFAULT NULL, + PRIMARY KEY (`user_id`), + UNIQUE KEY `user_name` (`user_name`), + KEY `user_email_token` (`user_email_token`), + KEY `user_email` (`user_email`(50)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_former_groups` ( + `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', + `ufg_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_groups` ( + `ug_user` int(10) unsigned NOT NULL DEFAULT '0', + `ug_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), + KEY `ug_group` (`ug_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_message_state` ( + `ums_user` int(10) unsigned NOT NULL, + `ums_thread` int(8) unsigned NOT NULL, + `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', + `ums_read_timestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`ums_user`,`ums_thread`), + KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_newtalk` ( + `user_id` int(10) unsigned NOT NULL DEFAULT '0', + `user_ip` varbinary(40) NOT NULL DEFAULT '', + `user_last_timestamp` varbinary(14) DEFAULT NULL, + KEY `un_user_id` (`user_id`), + KEY `un_user_ip` (`user_ip`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_properties` ( + `up_user` int(11) NOT NULL, + `up_property` varbinary(255) DEFAULT NULL, + `up_value` blob, + UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), + KEY `user_properties_property` (`up_property`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `valid_tag` ( + `vt_tag` varchar(255) NOT NULL, + PRIMARY KEY (`vt_tag`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `watchlist` ( + `wl_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `wl_user` int(10) unsigned NOT NULL, + `wl_namespace` int(11) NOT NULL DEFAULT '0', + `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`wl_id`), + UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), + KEY `namespace_title` (`wl_namespace`,`wl_title`), + KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + diff --git a/DeveloperDump/frwikitolearn.struct.sql b/DeveloperDump/frwikitolearn.struct.sql index cd9504d..daa02f6 100644 --- a/DeveloperDump/frwikitolearn.struct.sql +++ b/DeveloperDump/frwikitolearn.struct.sql @@ -1,1178 +1,1380 @@ - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; -/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; -/*!40103 SET TIME_ZONE='+00:00' */; -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `archive` ( - `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `ar_namespace` int(11) NOT NULL DEFAULT '0', - `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ar_text` mediumblob NOT NULL, - `ar_comment` varbinary(767) NOT NULL, - `ar_user` int(10) unsigned NOT NULL DEFAULT '0', - `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', - `ar_flags` tinyblob NOT NULL, - `ar_rev_id` int(10) unsigned DEFAULT NULL, - `ar_text_id` int(10) unsigned DEFAULT NULL, - `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `ar_len` int(10) unsigned DEFAULT NULL, - `ar_page_id` int(10) unsigned DEFAULT NULL, - `ar_parent_id` int(10) unsigned DEFAULT NULL, - `ar_sha1` varbinary(32) NOT NULL DEFAULT '', - `ar_content_model` varbinary(32) DEFAULT NULL, - `ar_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`ar_id`), - KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), - KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), - KEY `ar_revid` (`ar_rev_id`), - KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `category` ( - `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `cat_pages` int(11) NOT NULL DEFAULT '0', - `cat_subcats` int(11) NOT NULL DEFAULT '0', - `cat_files` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`cat_id`), - UNIQUE KEY `cat_title` (`cat_title`), - KEY `cat_pages` (`cat_pages`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `categorylinks` ( - `cl_from` int(10) unsigned NOT NULL DEFAULT '0', - `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', - `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `cl_collation` varbinary(32) NOT NULL DEFAULT '', - `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', - UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), - KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), - KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), - KEY `cl_collation` (`cl_collation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `change_tag` ( - `ct_rc_id` int(11) DEFAULT NULL, - `ct_log_id` int(11) DEFAULT NULL, - `ct_rev_id` int(11) DEFAULT NULL, - `ct_tag` varchar(255) NOT NULL, - `ct_params` blob, - UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), - UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), - UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), - KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_email_batch` ( - `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `eeb_user_id` int(10) unsigned NOT NULL, - `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', - `eeb_event_id` int(10) unsigned NOT NULL, - `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - PRIMARY KEY (`eeb_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`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_event` ( - `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_agent_id` int(10) unsigned DEFAULT NULL, - `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_page_namespace` int(10) unsigned DEFAULT NULL, - `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_extra` blob, - `event_page_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`event_id`), - KEY `echo_event_type` (`event_type`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_notification` ( - `notification_event` int(10) unsigned NOT NULL, - `notification_user` int(10) unsigned NOT NULL, - `notification_timestamp` binary(14) NOT NULL, - `notification_read_timestamp` binary(14) DEFAULT NULL, - `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', - `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `user_event` (`notification_user`,`notification_event`), - KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), - KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), - KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), - KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), - KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_target_page` ( - `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`etp_id`), - KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), - KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `externallinks` ( - `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `el_from` int(10) unsigned NOT NULL DEFAULT '0', - `el_to` blob NOT NULL, - `el_index` blob NOT NULL, - PRIMARY KEY (`el_id`), - KEY `el_from` (`el_from`,`el_to`(40)), - KEY `el_to` (`el_to`(60),`el_from`), - KEY `el_index` (`el_index`(60)) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `filearchive` ( - `fa_id` int(11) NOT NULL AUTO_INCREMENT, - `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', - `fa_storage_group` varbinary(16) DEFAULT NULL, - `fa_storage_key` varbinary(64) DEFAULT '', - `fa_deleted_user` int(11) DEFAULT NULL, - `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted_reason` varbinary(767) DEFAULT '', - `fa_size` int(10) unsigned DEFAULT '0', - `fa_width` int(11) DEFAULT '0', - `fa_height` int(11) DEFAULT '0', - `fa_metadata` mediumblob, - `fa_bits` int(11) DEFAULT '0', - `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `fa_minor_mime` varbinary(100) DEFAULT 'unknown', - `fa_description` varbinary(767) DEFAULT NULL, - `fa_user` int(10) unsigned DEFAULT '0', - `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `fa_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fa_id`), - KEY `fa_name` (`fa_name`,`fa_timestamp`), - KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), - KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), - KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), - KEY `fa_sha1` (`fa_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedimages` ( - `fi_rev_id` int(10) unsigned NOT NULL, - `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fi_img_timestamp` varbinary(14) DEFAULT NULL, - `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fi_rev_id`,`fi_name`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( - `fpc_page_id` int(10) unsigned NOT NULL, - `fpc_select` int(11) NOT NULL, - `fpc_override` tinyint(1) NOT NULL, - `fpc_level` varbinary(60) DEFAULT NULL, - `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', - PRIMARY KEY (`fpc_page_id`), - KEY `fpc_expiry` (`fpc_expiry`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( - `fpp_page_id` int(10) unsigned NOT NULL, - `fpp_quality` tinyint(1) NOT NULL, - `fpp_rev_id` int(10) unsigned NOT NULL, - `fpp_pending_since` varbinary(14) NOT NULL, - PRIMARY KEY (`fpp_page_id`,`fpp_quality`), - KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpages` ( - `fp_page_id` int(10) unsigned NOT NULL, - `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', - `fp_pending_since` varbinary(14) DEFAULT NULL, - `fp_stable` int(10) unsigned NOT NULL, - `fp_quality` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`fp_page_id`), - KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), - KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), - KEY `fp_pending_since` (`fp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs` ( - `fr_rev_id` int(10) unsigned NOT NULL, - `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', - `fr_page_id` int(10) unsigned NOT NULL, - `fr_user` int(10) unsigned NOT NULL, - `fr_timestamp` varbinary(14) NOT NULL, - `fr_quality` tinyint(1) NOT NULL DEFAULT '0', - `fr_tags` mediumblob NOT NULL, - `fr_flags` tinyblob NOT NULL, - `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fr_img_timestamp` varbinary(14) DEFAULT NULL, - `fr_img_sha1` varbinary(32) DEFAULT NULL, - PRIMARY KEY (`fr_rev_id`), - KEY `page_rev` (`fr_page_id`,`fr_rev_id`), - KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), - KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), - KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), - KEY `fr_img_sha1` (`fr_img_sha1`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( - `frp_user_id` int(10) unsigned NOT NULL, - `frp_user_params` mediumblob NOT NULL, - PRIMARY KEY (`frp_user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( - `frs_timestamp` varbinary(14) NOT NULL, - `frs_stat_key` varchar(255) NOT NULL, - `frs_stat_val` bigint(20) NOT NULL, - PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), - KEY `frs_timestamp` (`frs_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( - `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', - `ftr_namespace` int(11) NOT NULL DEFAULT '0', - `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), - KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( - `ft_rev_id` int(10) unsigned NOT NULL, - `ft_namespace` int(11) NOT NULL DEFAULT '0', - `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_revision` ( - `rev_id` binary(11) NOT NULL, - `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', - `rev_user_id` bigint(20) unsigned NOT NULL, - `rev_user_ip` varbinary(39) DEFAULT NULL, - `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_parent_id` binary(11) DEFAULT NULL, - `rev_flags` tinyblob NOT NULL, - `rev_content` mediumblob NOT NULL, - `rev_change_type` varbinary(255) DEFAULT NULL, - `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_mod_user_ip` varbinary(39) DEFAULT NULL, - `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_last_edit_id` binary(11) DEFAULT NULL, - `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_edit_user_ip` varbinary(39) DEFAULT NULL, - `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_content_length` int(11) NOT NULL DEFAULT '0', - `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`rev_id`), - UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), - KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), - KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_subscription` ( - `subscription_workflow_id` int(10) unsigned NOT NULL, - `subscription_user_id` bigint(20) unsigned NOT NULL, - `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), - KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_topic_list` ( - `topic_list_id` binary(11) NOT NULL, - `topic_id` binary(11) DEFAULT NULL, - UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), - KEY `flow_topic_list_topic_id` (`topic_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_node` ( - `tree_ancestor_id` binary(11) NOT NULL, - `tree_descendant_id` binary(11) NOT NULL, - `tree_depth` smallint(6) NOT NULL, - UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), - UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( - `tree_rev_descendant_id` binary(11) NOT NULL, - `tree_rev_id` binary(11) NOT NULL, - `tree_orig_user_id` bigint(20) unsigned NOT NULL, - `tree_orig_user_ip` varbinary(39) DEFAULT NULL, - `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tree_parent_id` binary(11) DEFAULT NULL, - PRIMARY KEY (`tree_rev_id`), - KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target_namespace` int(11) NOT NULL, - `ref_target_title` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_workflow` ( - `workflow_id` binary(11) NOT NULL, - `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_namespace` int(11) NOT NULL, - `workflow_page_id` int(10) unsigned NOT NULL, - `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_last_update_timestamp` binary(14) NOT NULL, - `workflow_lock_state` int(10) unsigned NOT NULL, - `workflow_type` varbinary(16) NOT NULL, - PRIMARY KEY (`workflow_id`), - KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), - KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `historical_thread` ( - `hthread_id` int(8) unsigned NOT NULL, - `hthread_revision` int(8) unsigned NOT NULL, - `hthread_contents` blob NOT NULL, - `hthread_change_type` int(4) unsigned NOT NULL, - `hthread_change_object` int(8) unsigned DEFAULT NULL, - PRIMARY KEY (`hthread_id`,`hthread_revision`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `image` ( - `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `img_size` int(10) unsigned NOT NULL DEFAULT '0', - `img_width` int(11) NOT NULL DEFAULT '0', - `img_height` int(11) NOT NULL DEFAULT '0', - `img_metadata` mediumblob NOT NULL, - `img_bits` int(11) NOT NULL DEFAULT '0', - `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `img_description` varbinary(767) NOT NULL, - `img_user` int(10) unsigned NOT NULL DEFAULT '0', - `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `img_timestamp` varbinary(14) NOT NULL DEFAULT '', - `img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`img_name`), - KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), - KEY `img_size` (`img_size`), - KEY `img_timestamp` (`img_timestamp`), - KEY `img_sha1` (`img_sha1`(10)), - KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `imagelinks` ( - `il_from` int(10) unsigned NOT NULL DEFAULT '0', - `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `il_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `il_from` (`il_from`,`il_to`), - UNIQUE KEY `il_to` (`il_to`,`il_from`), - KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `interwiki` ( - `iw_prefix` varchar(32) NOT NULL, - `iw_url` blob NOT NULL, - `iw_local` tinyint(1) NOT NULL, - `iw_trans` tinyint(4) NOT NULL DEFAULT '0', - `iw_api` blob NOT NULL, - `iw_wikiid` varchar(64) NOT NULL, - UNIQUE KEY `iw_prefix` (`iw_prefix`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ipblocks` ( - `ipb_id` int(11) NOT NULL AUTO_INCREMENT, - `ipb_address` tinyblob NOT NULL, - `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ipb_reason` varbinary(767) NOT NULL, - `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `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 DEFAULT '', - `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(11) DEFAULT NULL, - PRIMARY KEY (`ipb_id`), - UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `iwlinks` ( - `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', - `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', - `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `job` ( - `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `job_cmd` varbinary(60) NOT NULL DEFAULT '', - `job_namespace` int(11) NOT NULL, - `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `job_params` blob NOT NULL, - `job_timestamp` varbinary(14) DEFAULT NULL, - `job_random` int(10) unsigned NOT NULL DEFAULT '0', - `job_token` varbinary(32) NOT NULL DEFAULT '', - `job_token_timestamp` varbinary(14) DEFAULT NULL, - `job_sha1` varbinary(32) NOT NULL DEFAULT '', - `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', - PRIMARY KEY (`job_id`), - KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), - KEY `job_timestamp` (`job_timestamp`), - KEY `job_sha1` (`job_sha1`), - KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), - KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `l10n_cache` ( - `lc_lang` varbinary(32) NOT NULL, - `lc_key` varchar(255) NOT NULL, - `lc_value` mediumblob NOT NULL, - KEY `lc_lang_key` (`lc_lang`,`lc_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `langlinks` ( - `ll_from` int(10) unsigned NOT NULL DEFAULT '0', - `ll_lang` varbinary(20) NOT NULL DEFAULT '', - `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), - KEY `ll_lang` (`ll_lang`,`ll_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `log_search` ( - `ls_field` varbinary(32) NOT NULL, - `ls_value` varchar(255) NOT NULL, - `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', - UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), - KEY `ls_log_id` (`ls_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `logging` ( - `log_type` varbinary(32) NOT NULL, - `log_action` varbinary(32) NOT NULL, - `log_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - `log_user` int(10) unsigned NOT NULL DEFAULT '0', - `log_namespace` int(11) NOT NULL DEFAULT '0', - `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_comment` varbinary(767) NOT NULL DEFAULT '', - `log_params` blob NOT NULL, - `log_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_page` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`log_id`), - KEY `type_time` (`log_type`,`log_timestamp`), - KEY `user_time` (`log_user`,`log_timestamp`), - KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), - KEY `times` (`log_timestamp`), - KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), - KEY `log_page_id_time` (`log_page`,`log_timestamp`), - KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), - KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), - KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `math` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_outputhash` varbinary(16) NOT NULL, - `math_html_conservativeness` tinyint(4) NOT NULL, - `math_html` text, - `math_mathml` text, - UNIQUE KEY `math_inputhash` (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mathoid` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_input` text NOT NULL, - `math_tex` text, - `math_mathml` text, - `math_svg` text, - `math_style` tinyint(4) DEFAULT NULL, - `math_input_type` tinyint(4) DEFAULT NULL, - PRIMARY KEY (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `module_deps` ( - `md_module` varbinary(255) NOT NULL, - `md_skin` varbinary(32) NOT NULL, - `md_deps` mediumblob NOT NULL, - UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource` ( - `mr_resource` varbinary(255) NOT NULL, - `mr_lang` varbinary(32) NOT NULL, - `mr_blob` mediumblob NOT NULL, - `mr_timestamp` binary(14) NOT NULL, - UNIQUE KEY `mr_resource_lang` (`mr_resource`,`mr_lang`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource_links` ( - `mrl_resource` varbinary(255) NOT NULL, - `mrl_message` varbinary(255) NOT NULL, - UNIQUE KEY `mrl_message_resource` (`mrl_message`,`mrl_resource`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `objectcache` ( - `keyname` varbinary(255) NOT NULL DEFAULT '', - `value` mediumblob, - `exptime` datetime DEFAULT NULL, - UNIQUE KEY `keyname` (`keyname`), - KEY `exptime` (`exptime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `oldimage` ( - `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_size` int(10) unsigned NOT NULL DEFAULT '0', - `oi_width` int(11) NOT NULL DEFAULT '0', - `oi_height` int(11) NOT NULL DEFAULT '0', - `oi_bits` int(11) NOT NULL DEFAULT '0', - `oi_description` varbinary(767) NOT NULL, - `oi_user` int(10) unsigned NOT NULL DEFAULT '0', - `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `oi_metadata` mediumblob NOT NULL, - `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `oi_sha1` varbinary(32) NOT NULL DEFAULT '', - KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), - KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), - KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), - KEY `oi_sha1` (`oi_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page` ( - `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `page_namespace` int(11) NOT NULL, - `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `page_restrictions` tinyblob NOT NULL, - `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_random` double unsigned NOT NULL, - `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `page_latest` int(10) unsigned NOT NULL, - `page_len` int(10) unsigned NOT NULL, - `page_content_model` varbinary(32) DEFAULT NULL, - `page_links_updated` varbinary(14) DEFAULT NULL, - `page_lang` varbinary(35) DEFAULT NULL, - PRIMARY KEY (`page_id`), - UNIQUE KEY `name_title` (`page_namespace`,`page_title`), - KEY `page_random` (`page_random`), - KEY `page_len` (`page_len`), - KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_props` ( - `pp_page` int(11) NOT NULL, - `pp_propname` varbinary(60) NOT NULL, - `pp_value` blob NOT NULL, - `pp_sortkey` float DEFAULT NULL, - PRIMARY KEY (`pp_page`,`pp_propname`), - UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), - UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_restrictions` ( - `pr_page` int(11) NOT NULL, - `pr_type` varbinary(60) NOT NULL, - `pr_level` varbinary(60) NOT NULL, - `pr_cascade` tinyint(4) NOT NULL, - `pr_user` int(11) DEFAULT NULL, - `pr_expiry` varbinary(14) DEFAULT NULL, - `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`pr_page`,`pr_type`), - UNIQUE KEY `pr_id` (`pr_id`), - KEY `pr_typelevel` (`pr_type`,`pr_level`), - KEY `pr_level` (`pr_level`), - KEY `pr_cascade` (`pr_cascade`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pagelinks` ( - `pl_from` int(10) unsigned NOT NULL DEFAULT '0', - `pl_namespace` int(11) NOT NULL DEFAULT '0', - `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `pl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), - UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), - KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `protected_titles` ( - `pt_namespace` int(11) NOT NULL, - `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `pt_user` int(10) unsigned NOT NULL, - `pt_reason` varbinary(767) DEFAULT NULL, - `pt_timestamp` binary(14) NOT NULL, - `pt_expiry` varbinary(14) NOT NULL DEFAULT '', - `pt_create_perm` varbinary(60) NOT NULL, - PRIMARY KEY (`pt_namespace`,`pt_title`), - KEY `pt_timestamp` (`pt_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache` ( - `qc_type` varbinary(32) NOT NULL, - `qc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qc_namespace` int(11) NOT NULL DEFAULT '0', - `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qc_type` (`qc_type`,`qc_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache_info` ( - `qci_type` varbinary(32) NOT NULL DEFAULT '', - `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - UNIQUE KEY `qci_type` (`qci_type`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycachetwo` ( - `qcc_type` varbinary(32) NOT NULL, - `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qcc_namespace` int(11) NOT NULL DEFAULT '0', - `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', - `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qcc_type` (`qcc_type`,`qcc_value`), - KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), - KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `recentchanges` ( - `rc_id` int(11) NOT NULL AUTO_INCREMENT, - `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', - `rc_user` int(10) unsigned NOT NULL DEFAULT '0', - `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rc_namespace` int(11) NOT NULL, - `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rc_comment` varbinary(767) NOT NULL DEFAULT '', - `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', - `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_ip` varbinary(40) NOT NULL DEFAULT '', - `rc_old_len` int(11) DEFAULT NULL, - `rc_new_len` int(11) DEFAULT NULL, - `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_log_type` varbinary(255) DEFAULT NULL, - `rc_log_action` varbinary(255) DEFAULT NULL, - `rc_params` blob, - `rc_source` varbinary(16) NOT NULL DEFAULT '', - PRIMARY KEY (`rc_id`), - KEY `rc_timestamp` (`rc_timestamp`), - KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), - KEY `rc_cur_id` (`rc_cur_id`), - KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), - KEY `rc_ip` (`rc_ip`), - KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), - KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `redirect` ( - `rd_from` int(10) unsigned NOT NULL DEFAULT '0', - `rd_namespace` int(11) NOT NULL DEFAULT '0', - `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rd_interwiki` varchar(32) DEFAULT NULL, - `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - PRIMARY KEY (`rd_from`), - KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `revision` ( - `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `rev_page` int(10) unsigned NOT NULL, - `rev_text_id` int(10) unsigned NOT NULL, - `rev_comment` varbinary(767) NOT NULL, - `rev_user` int(10) unsigned NOT NULL DEFAULT '0', - `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_len` int(10) unsigned DEFAULT NULL, - `rev_parent_id` int(10) unsigned DEFAULT NULL, - `rev_sha1` varbinary(32) NOT NULL DEFAULT '', - `rev_content_model` varbinary(32) DEFAULT NULL, - `rev_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`rev_id`), - UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), - KEY `rev_timestamp` (`rev_timestamp`), - KEY `page_timestamp` (`rev_page`,`rev_timestamp`), - KEY `user_timestamp` (`rev_user`,`rev_timestamp`), - KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), - KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `searchindex` ( - `si_page` int(10) unsigned NOT NULL, - `si_title` varchar(255) NOT NULL DEFAULT '', - `si_text` mediumtext NOT NULL, - FULLTEXT KEY `si_title` (`si_title`), - FULLTEXT KEY `si_text` (`si_text`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_identifiers` ( - `si_site` int(10) unsigned NOT NULL, - `si_type` varbinary(32) NOT NULL, - `si_key` varbinary(32) NOT NULL, - UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), - KEY `site_ids_site` (`si_site`), - KEY `site_ids_key` (`si_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_stats` ( - `ss_row_id` int(10) unsigned NOT NULL, - `ss_total_edits` bigint(20) unsigned DEFAULT '0', - `ss_good_articles` bigint(20) unsigned DEFAULT '0', - `ss_total_pages` bigint(20) DEFAULT '-1', - `ss_users` bigint(20) DEFAULT '-1', - `ss_active_users` bigint(20) DEFAULT '-1', - `ss_images` int(11) DEFAULT '0', - UNIQUE KEY `ss_row_id` (`ss_row_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `sites` ( - `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `site_global_key` varbinary(32) NOT NULL, - `site_type` varbinary(32) NOT NULL, - `site_group` varbinary(32) NOT NULL, - `site_source` varbinary(32) NOT NULL, - `site_language` varbinary(32) NOT NULL, - `site_protocol` varbinary(32) NOT NULL, - `site_domain` varchar(255) NOT NULL, - `site_data` blob NOT NULL, - `site_forward` tinyint(1) NOT NULL, - `site_config` blob NOT NULL, - PRIMARY KEY (`site_id`), - UNIQUE KEY `sites_global_key` (`site_global_key`), - KEY `sites_type` (`site_type`), - KEY `sites_group` (`site_group`), - KEY `sites_source` (`site_source`), - KEY `sites_language` (`site_language`), - KEY `sites_protocol` (`site_protocol`), - KEY `sites_domain` (`site_domain`), - KEY `sites_forward` (`site_forward`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `tag_summary` ( - `ts_rc_id` int(11) DEFAULT NULL, - `ts_log_id` int(11) DEFAULT NULL, - `ts_rev_id` int(11) DEFAULT NULL, - `ts_tags` blob NOT NULL, - UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), - UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), - UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `templatelinks` ( - `tl_from` int(10) unsigned NOT NULL DEFAULT '0', - `tl_namespace` int(11) NOT NULL DEFAULT '0', - `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `tl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), - UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), - KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `text` ( - `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `old_text` mediumblob NOT NULL, - `old_flags` tinyblob NOT NULL, - PRIMARY KEY (`old_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread` ( - `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, - `thread_root` int(8) unsigned NOT NULL, - `thread_ancestor` int(8) unsigned NOT NULL, - `thread_parent` int(8) unsigned DEFAULT NULL, - `thread_summary_page` int(8) unsigned DEFAULT NULL, - `thread_subject` varchar(255) DEFAULT NULL, - `thread_author_id` int(10) unsigned DEFAULT NULL, - `thread_author_name` varchar(255) DEFAULT NULL, - `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_editedness` int(1) NOT NULL DEFAULT '0', - `thread_article_namespace` int(11) NOT NULL, - `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `thread_article_id` int(8) unsigned NOT NULL, - `thread_type` int(4) unsigned NOT NULL DEFAULT '0', - `thread_sortkey` varchar(255) NOT NULL DEFAULT '', - `thread_replies` int(8) DEFAULT '-1', - `thread_signature` tinyblob, - PRIMARY KEY (`thread_id`), - UNIQUE KEY `thread_root` (`thread_root`), - UNIQUE KEY `thread_root_2` (`thread_root`), - KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), - KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), - KEY `thread_article` (`thread_article_id`,`thread_sortkey`), - KEY `thread_modified` (`thread_modified`), - KEY `thread_created` (`thread_created`), - KEY `thread_summary_page` (`thread_summary_page`), - KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), - KEY `thread_sortkey` (`thread_sortkey`), - KEY `thread_parent` (`thread_parent`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_history` ( - `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `th_thread` int(10) unsigned NOT NULL, - `th_timestamp` varbinary(14) NOT NULL, - `th_user` int(10) unsigned NOT NULL, - `th_user_text` varchar(255) NOT NULL, - `th_change_type` int(10) unsigned NOT NULL, - `th_change_object` int(10) unsigned NOT NULL, - `th_change_comment` tinytext NOT NULL, - `th_content` longblob NOT NULL, - PRIMARY KEY (`th_id`), - KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), - KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), - KEY `th_user_text` (`th_user`,`th_user_text`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( - `tpr_thread` int(10) unsigned NOT NULL, - `tpr_relationship` varbinary(64) NOT NULL, - `tpr_title` varbinary(255) NOT NULL, - `tpr_type` varbinary(32) NOT NULL, - PRIMARY KEY (`tpr_thread`,`tpr_relationship`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_reaction` ( - `tr_thread` int(10) unsigned NOT NULL, - `tr_user` int(10) unsigned NOT NULL, - `tr_user_text` varbinary(255) NOT NULL, - `tr_type` varbinary(64) NOT NULL, - `tr_value` int(11) NOT NULL, - PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), - KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `transcache` ( - `tc_url` varbinary(255) NOT NULL, - `tc_contents` text, - `tc_time` binary(14) DEFAULT NULL, - UNIQUE KEY `tc_url_idx` (`tc_url`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `updatelog` ( - `ul_key` varchar(255) NOT NULL, - `ul_value` blob, - PRIMARY KEY (`ul_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uploadstash` ( - `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `us_user` int(10) unsigned NOT NULL, - `us_key` varchar(255) NOT NULL, - `us_orig_path` varchar(255) NOT NULL, - `us_path` varchar(255) NOT NULL, - `us_source_type` varchar(50) DEFAULT NULL, - `us_timestamp` varbinary(14) NOT NULL, - `us_status` varchar(50) NOT NULL, - `us_chunk_inx` int(10) unsigned DEFAULT NULL, - `us_props` blob, - `us_size` int(10) unsigned NOT NULL, - `us_sha1` varchar(31) NOT NULL, - `us_mime` varchar(255) DEFAULT NULL, - `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `us_image_width` int(10) unsigned DEFAULT NULL, - `us_image_height` int(10) unsigned DEFAULT NULL, - `us_image_bits` smallint(5) unsigned DEFAULT NULL, - PRIMARY KEY (`us_id`), - UNIQUE KEY `us_key` (`us_key`), - KEY `us_user` (`us_user`), - KEY `us_timestamp` (`us_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user` ( - `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_password` tinyblob NOT NULL, - `user_newpassword` tinyblob NOT NULL, - `user_newpass_time` binary(14) DEFAULT NULL, - `user_email` tinytext NOT NULL, - `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `user_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', - `user_email_authenticated` binary(14) DEFAULT NULL, - `user_email_token` binary(32) DEFAULT NULL, - `user_email_token_expires` binary(14) DEFAULT NULL, - `user_registration` binary(14) DEFAULT NULL, - `user_editcount` int(11) DEFAULT NULL, - PRIMARY KEY (`user_id`), - UNIQUE KEY `user_name` (`user_name`), - KEY `user_email_token` (`user_email_token`), - KEY `user_email` (`user_email`(50)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_former_groups` ( - `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', - `ufg_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_groups` ( - `ug_user` int(10) unsigned NOT NULL DEFAULT '0', - `ug_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), - KEY `ug_group` (`ug_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_message_state` ( - `ums_user` int(10) unsigned NOT NULL, - `ums_thread` int(8) unsigned NOT NULL, - `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', - `ums_read_timestamp` varbinary(14) DEFAULT NULL, - PRIMARY KEY (`ums_user`,`ums_thread`), - KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_newtalk` ( - `user_id` int(10) unsigned NOT NULL DEFAULT '0', - `user_ip` varbinary(40) NOT NULL DEFAULT '', - `user_last_timestamp` varbinary(14) DEFAULT NULL, - KEY `un_user_id` (`user_id`), - KEY `un_user_ip` (`user_ip`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_properties` ( - `up_user` int(11) NOT NULL, - `up_property` varbinary(255) NOT NULL, - `up_value` blob, - UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), - KEY `user_properties_property` (`up_property`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `valid_tag` ( - `vt_tag` varchar(255) NOT NULL, - PRIMARY KEY (`vt_tag`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `watchlist` ( - `wl_user` int(10) unsigned NOT NULL, - `wl_namespace` int(11) NOT NULL DEFAULT '0', - `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, - UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), - KEY `namespace_title` (`wl_namespace`,`wl_title`), - KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - -DROP INDEX flow_ext_ref_idx_v2 ON flow_ext_ref; DROP INDEX flow_ext_ref_revision_v2 ON flow_ext_ref; ALTER TABLE flow_ext_ref CHANGE ref_target ref_target BLOB NOT NULL; CREATE INDEX flow_ext_ref_idx_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_type, ref_target(255), ref_src_object_type, ref_src_object_id); CREATE INDEX flow_ext_ref_revision_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_src_object_type, ref_src_object_id, ref_type, ref_target(255)); + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `archive` ( + `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `ar_namespace` int(11) NOT NULL DEFAULT '0', + `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ar_text` mediumblob NOT NULL, + `ar_comment` varbinary(767) NOT NULL, + `ar_user` int(10) unsigned NOT NULL DEFAULT '0', + `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', + `ar_flags` tinyblob NOT NULL, + `ar_rev_id` int(10) unsigned DEFAULT NULL, + `ar_text_id` int(10) unsigned DEFAULT NULL, + `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `ar_len` int(10) unsigned DEFAULT NULL, + `ar_page_id` int(10) unsigned DEFAULT NULL, + `ar_parent_id` int(10) unsigned DEFAULT NULL, + `ar_sha1` varbinary(32) NOT NULL DEFAULT '', + `ar_content_format` varbinary(64) DEFAULT NULL, + `ar_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`ar_id`), + KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), + KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), + KEY `ar_revid` (`ar_rev_id`), + KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_commentmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `comment_id` (`comment_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_comments` ( + `comment_ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_post_ID` bigint(20) unsigned NOT NULL DEFAULT '0', + `comment_author` tinytext NOT NULL, + `comment_author_email` varchar(100) NOT NULL DEFAULT '', + `comment_author_url` varchar(200) NOT NULL DEFAULT '', + `comment_author_IP` varchar(100) NOT NULL DEFAULT '', + `comment_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_content` text NOT NULL, + `comment_karma` int(11) NOT NULL DEFAULT '0', + `comment_approved` varchar(20) NOT NULL DEFAULT '1', + `comment_agent` varchar(255) NOT NULL DEFAULT '', + `comment_type` varchar(20) NOT NULL DEFAULT '', + `comment_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`comment_ID`), + KEY `comment_post_ID` (`comment_post_ID`), + KEY `comment_approved_date_gmt` (`comment_approved`,`comment_date_gmt`), + KEY `comment_date_gmt` (`comment_date_gmt`), + KEY `comment_parent` (`comment_parent`), + KEY `comment_author_email` (`comment_author_email`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_links` ( + `link_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `link_url` varchar(255) NOT NULL DEFAULT '', + `link_name` varchar(255) NOT NULL DEFAULT '', + `link_image` varchar(255) NOT NULL DEFAULT '', + `link_target` varchar(25) NOT NULL DEFAULT '', + `link_description` varchar(255) NOT NULL DEFAULT '', + `link_visible` varchar(20) NOT NULL DEFAULT 'Y', + `link_owner` bigint(20) unsigned NOT NULL DEFAULT '1', + `link_rating` int(11) NOT NULL DEFAULT '0', + `link_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `link_rel` varchar(255) NOT NULL DEFAULT '', + `link_notes` mediumtext NOT NULL, + `link_rss` varchar(255) NOT NULL DEFAULT '', + PRIMARY KEY (`link_id`), + KEY `link_visible` (`link_visible`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_options` ( + `option_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `option_name` varchar(64) NOT NULL DEFAULT '', + `option_value` longtext NOT NULL, + `autoload` varchar(20) NOT NULL DEFAULT 'yes', + PRIMARY KEY (`option_id`), + UNIQUE KEY `option_name` (`option_name`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_postmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `post_id` (`post_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_posts` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_author` bigint(20) unsigned NOT NULL DEFAULT '0', + `post_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content` longtext NOT NULL, + `post_title` text NOT NULL, + `post_excerpt` text NOT NULL, + `post_status` varchar(20) NOT NULL DEFAULT 'publish', + `comment_status` varchar(20) NOT NULL DEFAULT 'open', + `ping_status` varchar(20) NOT NULL DEFAULT 'open', + `post_password` varchar(20) NOT NULL DEFAULT '', + `post_name` varchar(200) NOT NULL DEFAULT '', + `to_ping` text NOT NULL, + `pinged` text NOT NULL, + `post_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_modified_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content_filtered` longtext NOT NULL, + `post_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `guid` varchar(255) NOT NULL DEFAULT '', + `menu_order` int(11) NOT NULL DEFAULT '0', + `post_type` varchar(20) NOT NULL DEFAULT 'post', + `post_mime_type` varchar(100) NOT NULL DEFAULT '', + `comment_count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`), + KEY `post_name` (`post_name`), + KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`ID`), + KEY `post_parent` (`post_parent`), + KEY `post_author` (`post_author`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_relationships` ( + `object_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_taxonomy_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`object_id`,`term_taxonomy_id`), + KEY `term_taxonomy_id` (`term_taxonomy_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_taxonomy` ( + `term_taxonomy_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `term_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `taxonomy` varchar(32) NOT NULL DEFAULT '', + `description` longtext NOT NULL, + `parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_taxonomy_id`), + UNIQUE KEY `term_id_taxonomy` (`term_id`,`taxonomy`), + KEY `taxonomy` (`taxonomy`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_terms` ( + `term_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(200) NOT NULL DEFAULT '', + `slug` varchar(200) NOT NULL DEFAULT '', + `term_group` bigint(10) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_id`), + KEY `name` (`name`), + KEY `slug` (`slug`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_usermeta` ( + `umeta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`umeta_id`), + KEY `user_id` (`user_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_users` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_login` varchar(60) NOT NULL DEFAULT '', + `user_pass` varchar(64) NOT NULL DEFAULT '', + `user_nicename` varchar(50) NOT NULL DEFAULT '', + `user_email` varchar(100) NOT NULL DEFAULT '', + `user_url` varchar(100) NOT NULL DEFAULT '', + `user_registered` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `user_activation_key` varchar(60) NOT NULL DEFAULT '', + `user_status` int(11) NOT NULL DEFAULT '0', + `display_name` varchar(250) NOT NULL DEFAULT '', + PRIMARY KEY (`ID`), + KEY `user_login_key` (`user_login`), + KEY `user_nicename` (`user_nicename`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `bot_passwords` ( + `bp_user` int(11) NOT NULL, + `bp_app_id` varbinary(32) 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_restrictions` blob NOT NULL, + `bp_grants` blob NOT NULL, + PRIMARY KEY (`bp_user`,`bp_app_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `category` ( + `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `cat_pages` int(11) NOT NULL DEFAULT '0', + `cat_subcats` int(11) NOT NULL DEFAULT '0', + `cat_files` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`cat_id`), + UNIQUE KEY `cat_title` (`cat_title`), + KEY `cat_pages` (`cat_pages`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `categorylinks` ( + `cl_from` int(10) unsigned NOT NULL DEFAULT '0', + `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', + `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `cl_collation` varbinary(32) NOT NULL DEFAULT '', + `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', + UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), + KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), + KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), + KEY `cl_collation_ext` (`cl_collation`,`cl_to`,`cl_type`,`cl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `change_tag` ( + `ct_rc_id` int(11) DEFAULT NULL, + `ct_log_id` int(11) DEFAULT NULL, + `ct_rev_id` int(11) DEFAULT NULL, + `ct_tag` varchar(255) NOT NULL, + `ct_params` blob, + UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), + UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), + UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), + KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_email_batch` ( + `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `eeb_user_id` int(10) unsigned NOT NULL, + `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', + `eeb_event_id` int(10) unsigned NOT NULL, + `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eeb_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`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_event` ( + `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_agent_id` int(10) unsigned DEFAULT NULL, + `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_page_namespace` int(10) unsigned DEFAULT NULL, + `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_extra` blob, + `event_page_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`event_id`), + KEY `echo_event_type` (`event_type`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_notification` ( + `notification_event` int(10) unsigned NOT NULL, + `notification_user` int(10) unsigned NOT NULL, + `notification_timestamp` binary(14) NOT NULL, + `notification_read_timestamp` binary(14) DEFAULT NULL, + `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', + `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `user_event` (`notification_user`,`notification_event`), + KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), + KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), + KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), + KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), + KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_target_page` ( + `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`etp_id`), + KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), + KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `external_user` ( + `eu_local_id` int(10) unsigned NOT NULL, + `eu_external_id` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eu_local_id`), + UNIQUE KEY `eu_external_id` (`eu_external_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `externallinks` ( + `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `el_from` int(10) unsigned NOT NULL DEFAULT '0', + `el_to` blob NOT NULL, + `el_index` blob NOT NULL, + PRIMARY KEY (`el_id`), + KEY `el_from` (`el_from`,`el_to`(40)), + KEY `el_to` (`el_to`(60),`el_from`), + KEY `el_index` (`el_index`(60)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `filearchive` ( + `fa_id` int(11) NOT NULL AUTO_INCREMENT, + `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', + `fa_storage_group` varbinary(16) DEFAULT NULL, + `fa_storage_key` varbinary(64) DEFAULT '', + `fa_deleted_user` int(11) DEFAULT NULL, + `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted_reason` varbinary(767) DEFAULT '', + `fa_size` int(10) unsigned DEFAULT '0', + `fa_width` int(11) DEFAULT '0', + `fa_height` int(11) DEFAULT '0', + `fa_metadata` mediumblob, + `fa_bits` int(11) DEFAULT '0', + `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `fa_minor_mime` varbinary(100) DEFAULT 'unknown', + `fa_description` varbinary(767) DEFAULT NULL, + `fa_user` int(10) unsigned DEFAULT '0', + `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `fa_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fa_id`), + KEY `fa_name` (`fa_name`,`fa_timestamp`), + KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), + KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), + KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), + KEY `fa_sha1` (`fa_sha1`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedimages` ( + `fi_rev_id` int(10) unsigned NOT NULL, + `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fi_img_timestamp` varbinary(14) DEFAULT NULL, + `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fi_rev_id`,`fi_name`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( + `fpc_page_id` int(10) unsigned NOT NULL, + `fpc_select` int(11) NOT NULL, + `fpc_override` tinyint(1) NOT NULL, + `fpc_level` varbinary(60) DEFAULT NULL, + `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', + PRIMARY KEY (`fpc_page_id`), + KEY `fpc_expiry` (`fpc_expiry`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( + `fpp_page_id` int(10) unsigned NOT NULL, + `fpp_quality` tinyint(1) NOT NULL, + `fpp_rev_id` int(10) unsigned NOT NULL, + `fpp_pending_since` varbinary(14) NOT NULL, + PRIMARY KEY (`fpp_page_id`,`fpp_quality`), + KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpages` ( + `fp_page_id` int(10) unsigned NOT NULL, + `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', + `fp_pending_since` varbinary(14) DEFAULT NULL, + `fp_stable` int(10) unsigned NOT NULL, + `fp_quality` tinyint(1) DEFAULT NULL, + PRIMARY KEY (`fp_page_id`), + KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), + KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), + KEY `fp_pending_since` (`fp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs` ( + `fr_rev_id` int(10) unsigned NOT NULL, + `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', + `fr_page_id` int(10) unsigned NOT NULL, + `fr_user` int(10) unsigned NOT NULL, + `fr_timestamp` varbinary(14) NOT NULL, + `fr_quality` tinyint(1) NOT NULL DEFAULT '0', + `fr_tags` mediumblob NOT NULL, + `fr_flags` tinyblob NOT NULL, + `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fr_img_timestamp` varbinary(14) DEFAULT NULL, + `fr_img_sha1` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`fr_rev_id`), + KEY `page_rev` (`fr_page_id`,`fr_rev_id`), + KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), + KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), + KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), + KEY `fr_img_sha1` (`fr_img_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( + `frp_user_id` int(10) unsigned NOT NULL, + `frp_user_params` mediumblob NOT NULL, + PRIMARY KEY (`frp_user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( + `frs_timestamp` varbinary(14) NOT NULL, + `frs_stat_key` varchar(255) NOT NULL, + `frs_stat_val` bigint(20) NOT NULL, + PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), + KEY `frs_timestamp` (`frs_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( + `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', + `ftr_namespace` int(11) NOT NULL DEFAULT '0', + `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), + KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( + `ft_rev_id` int(10) unsigned NOT NULL, + `ft_namespace` int(11) NOT NULL DEFAULT '0', + `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target` blob NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`(255),`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`(255)) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_revision` ( + `rev_id` binary(11) NOT NULL, + `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', + `rev_user_id` bigint(20) unsigned NOT NULL, + `rev_user_ip` varbinary(39) DEFAULT NULL, + `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_parent_id` binary(11) DEFAULT NULL, + `rev_flags` tinyblob NOT NULL, + `rev_content` mediumblob NOT NULL, + `rev_change_type` varbinary(255) DEFAULT NULL, + `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_mod_user_ip` varbinary(39) DEFAULT NULL, + `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_last_edit_id` binary(11) DEFAULT NULL, + `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_edit_user_ip` varbinary(39) DEFAULT NULL, + `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_content_length` int(11) NOT NULL DEFAULT '0', + `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`rev_id`), + UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), + KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), + KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_subscription` ( + `subscription_workflow_id` int(10) unsigned NOT NULL, + `subscription_user_id` bigint(20) unsigned NOT NULL, + `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), + KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_topic_list` ( + `topic_list_id` binary(11) NOT NULL, + `topic_id` binary(11) DEFAULT NULL, + UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), + KEY `flow_topic_list_topic_id` (`topic_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_node` ( + `tree_ancestor_id` binary(11) NOT NULL, + `tree_descendant_id` binary(11) NOT NULL, + `tree_depth` smallint(6) NOT NULL, + UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), + UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( + `tree_rev_descendant_id` binary(11) NOT NULL, + `tree_rev_id` binary(11) NOT NULL, + `tree_orig_user_id` bigint(20) unsigned NOT NULL, + `tree_orig_user_ip` varbinary(39) DEFAULT NULL, + `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `tree_parent_id` binary(11) DEFAULT NULL, + PRIMARY KEY (`tree_rev_id`), + KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target_namespace` int(11) NOT NULL, + `ref_target_title` varbinary(255) NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_workflow` ( + `workflow_id` binary(11) NOT NULL, + `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_namespace` int(11) NOT NULL, + `workflow_page_id` int(10) unsigned NOT NULL, + `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_last_update_timestamp` binary(14) NOT NULL, + `workflow_lock_state` int(10) unsigned NOT NULL, + `workflow_type` varbinary(16) NOT NULL, + PRIMARY KEY (`workflow_id`), + KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), + KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `historical_thread` ( + `hthread_id` int(8) unsigned NOT NULL, + `hthread_revision` int(8) unsigned NOT NULL, + `hthread_contents` blob NOT NULL, + `hthread_change_type` int(4) unsigned NOT NULL, + `hthread_change_object` int(8) unsigned DEFAULT NULL, + PRIMARY KEY (`hthread_id`,`hthread_revision`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `image` ( + `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `img_size` int(10) unsigned NOT NULL DEFAULT '0', + `img_width` int(11) NOT NULL DEFAULT '0', + `img_height` int(11) NOT NULL DEFAULT '0', + `img_metadata` mediumblob NOT NULL, + `img_bits` int(11) NOT NULL DEFAULT '0', + `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `img_description` varbinary(767) NOT NULL, + `img_user` int(10) unsigned NOT NULL DEFAULT '0', + `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `img_timestamp` varbinary(14) NOT NULL DEFAULT '', + `img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`img_name`), + KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), + KEY `img_size` (`img_size`), + KEY `img_timestamp` (`img_timestamp`), + KEY `img_sha1` (`img_sha1`), + KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `imagelinks` ( + `il_from` int(10) unsigned NOT NULL DEFAULT '0', + `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `il_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `il_from` (`il_from`,`il_to`), + UNIQUE KEY `il_to` (`il_to`,`il_from`), + KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `interwiki` ( + `iw_prefix` varchar(32) NOT NULL, + `iw_url` blob NOT NULL, + `iw_api` blob NOT NULL, + `iw_wikiid` varchar(64) NOT NULL, + `iw_local` tinyint(1) NOT NULL, + `iw_trans` tinyint(4) NOT NULL DEFAULT '0', + UNIQUE KEY `iw_prefix` (`iw_prefix`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `ipblocks` ( + `ipb_id` int(11) NOT NULL AUTO_INCREMENT, + `ipb_address` tinyblob NOT NULL, + `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ipb_reason` varbinary(767) NOT NULL, + `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `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 DEFAULT '', + `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(11) DEFAULT NULL, + PRIMARY KEY (`ipb_id`), + UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), + 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 AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `iwlinks` ( + `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', + `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', + `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), + 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=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `job` ( + `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `job_cmd` varbinary(60) NOT NULL DEFAULT '', + `job_namespace` int(11) NOT NULL, + `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `job_params` blob NOT NULL, + `job_timestamp` varbinary(14) DEFAULT NULL, + `job_random` int(10) unsigned NOT NULL DEFAULT '0', + `job_token` varbinary(32) NOT NULL DEFAULT '', + `job_token_timestamp` varbinary(14) DEFAULT NULL, + `job_sha1` varbinary(32) NOT NULL DEFAULT '', + `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`job_id`), + KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), + KEY `job_timestamp` (`job_timestamp`), + KEY `job_sha1` (`job_sha1`), + KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), + KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `l10n_cache` ( + `lc_lang` varbinary(32) NOT NULL, + `lc_key` varchar(255) NOT NULL, + `lc_value` mediumblob NOT NULL, + KEY `lc_lang_key` (`lc_lang`,`lc_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `langlinks` ( + `ll_from` int(10) unsigned NOT NULL DEFAULT '0', + `ll_lang` varbinary(20) NOT NULL DEFAULT '', + `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), + KEY `ll_lang` (`ll_lang`,`ll_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `log_search` ( + `ls_field` varbinary(32) NOT NULL, + `ls_value` varchar(255) NOT NULL, + `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', + UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), + KEY `ls_log_id` (`ls_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `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_user` int(10) unsigned NOT NULL DEFAULT '0', + `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_namespace` int(11) NOT NULL DEFAULT '0', + `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_page` int(10) unsigned DEFAULT NULL, + `log_comment` varbinary(767) NOT NULL DEFAULT '', + `log_params` blob NOT NULL, + `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`log_id`), + KEY `type_time` (`log_type`,`log_timestamp`), + KEY `user_time` (`log_user`,`log_timestamp`), + KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), + KEY `times` (`log_timestamp`), + KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), + KEY `log_page_id_time` (`log_page`,`log_timestamp`), + KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), + KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), + KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `math` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_outputhash` varbinary(16) NOT NULL, + `math_html_conservativeness` tinyint(4) NOT NULL, + `math_html` text, + `math_mathml` text, + UNIQUE KEY `math_inputhash` (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `mathoid` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_input` text NOT NULL, + `math_tex` text, + `math_mathml` text, + `math_svg` text, + `math_style` tinyint(4) DEFAULT NULL, + `math_input_type` tinyint(4) DEFAULT NULL, + PRIMARY KEY (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `module_deps` ( + `md_module` varbinary(255) NOT NULL, + `md_skin` varbinary(32) NOT NULL, + `md_deps` mediumblob NOT NULL, + UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `objectcache` ( + `keyname` varbinary(255) NOT NULL DEFAULT '', + `value` mediumblob, + `exptime` datetime DEFAULT NULL, + PRIMARY KEY (`keyname`), + KEY `exptime` (`exptime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `oldimage` ( + `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_size` int(10) unsigned NOT NULL DEFAULT '0', + `oi_width` int(11) NOT NULL DEFAULT '0', + `oi_height` int(11) NOT NULL DEFAULT '0', + `oi_bits` int(11) NOT NULL DEFAULT '0', + `oi_description` varbinary(767) NOT NULL, + `oi_user` int(10) unsigned NOT NULL DEFAULT '0', + `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `oi_metadata` mediumblob NOT NULL, + `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `oi_sha1` varbinary(32) NOT NULL DEFAULT '', + KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), + KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), + KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), + KEY `oi_sha1` (`oi_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page` ( + `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `page_namespace` int(11) NOT NULL, + `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `page_restrictions` tinyblob NOT NULL, + `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_random` double unsigned NOT NULL, + `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `page_latest` int(10) unsigned NOT NULL, + `page_len` int(10) unsigned NOT NULL, + `page_content_model` varbinary(32) DEFAULT NULL, + `page_links_updated` varbinary(14) DEFAULT NULL, + `page_lang` varbinary(35) DEFAULT NULL, + PRIMARY KEY (`page_id`), + UNIQUE KEY `name_title` (`page_namespace`,`page_title`), + KEY `page_random` (`page_random`), + KEY `page_len` (`page_len`), + KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_props` ( + `pp_page` int(11) NOT NULL, + `pp_propname` varbinary(60) NOT NULL, + `pp_value` blob NOT NULL, + `pp_sortkey` float DEFAULT NULL, + UNIQUE KEY `pp_page_propname` (`pp_page`,`pp_propname`), + UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), + UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_restrictions` ( + `pr_page` int(11) NOT NULL, + `pr_type` varbinary(60) NOT NULL, + `pr_level` varbinary(60) NOT NULL, + `pr_cascade` tinyint(4) NOT NULL, + `pr_user` int(11) DEFAULT NULL, + `pr_expiry` varbinary(14) DEFAULT NULL, + `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`pr_id`), + UNIQUE KEY `pr_pagetype` (`pr_page`,`pr_type`), + KEY `pr_typelevel` (`pr_type`,`pr_level`), + KEY `pr_level` (`pr_level`), + KEY `pr_cascade` (`pr_cascade`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `pagelinks` ( + `pl_from` int(10) unsigned NOT NULL DEFAULT '0', + `pl_namespace` int(11) NOT NULL DEFAULT '0', + `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `pl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), + UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), + KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `protected_titles` ( + `pt_namespace` int(11) NOT NULL, + `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `pt_user` int(10) unsigned NOT NULL, + `pt_reason` varbinary(767) DEFAULT NULL, + `pt_timestamp` binary(14) NOT NULL, + `pt_expiry` varbinary(14) NOT NULL DEFAULT '', + `pt_create_perm` varbinary(60) NOT NULL, + UNIQUE KEY `pt_namespace_title` (`pt_namespace`,`pt_title`), + KEY `pt_timestamp` (`pt_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache` ( + `qc_type` varbinary(32) NOT NULL, + `qc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qc_namespace` int(11) NOT NULL DEFAULT '0', + `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qc_type` (`qc_type`,`qc_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache_info` ( + `qci_type` varbinary(32) NOT NULL DEFAULT '', + `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', + UNIQUE KEY `qci_type` (`qci_type`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycachetwo` ( + `qcc_type` varbinary(32) NOT NULL, + `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qcc_namespace` int(11) NOT NULL DEFAULT '0', + `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', + `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qcc_type` (`qcc_type`,`qcc_value`), + KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), + KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `recentchanges` ( + `rc_id` int(11) NOT NULL AUTO_INCREMENT, + `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', + `rc_user` int(10) unsigned NOT NULL DEFAULT '0', + `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rc_namespace` int(11) NOT NULL DEFAULT '0', + `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rc_comment` varbinary(767) NOT NULL DEFAULT '', + `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', + `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_ip` varbinary(40) NOT NULL DEFAULT '', + `rc_old_len` int(11) DEFAULT NULL, + `rc_new_len` int(11) DEFAULT NULL, + `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_log_type` varbinary(255) DEFAULT NULL, + `rc_log_action` varbinary(255) DEFAULT NULL, + `rc_params` blob, + `rc_source` varbinary(16) NOT NULL DEFAULT '', + PRIMARY KEY (`rc_id`), + KEY `rc_timestamp` (`rc_timestamp`), + KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), + KEY `rc_cur_id` (`rc_cur_id`), + KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), + KEY `rc_ip` (`rc_ip`), + KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), + KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `redirect` ( + `rd_from` int(10) unsigned NOT NULL DEFAULT '0', + `rd_namespace` int(11) NOT NULL DEFAULT '0', + `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rd_interwiki` varchar(32) DEFAULT NULL, + `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + PRIMARY KEY (`rd_from`), + KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `revision` ( + `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `rev_page` int(10) unsigned NOT NULL, + `rev_text_id` int(10) unsigned NOT NULL, + `rev_comment` varbinary(767) NOT NULL, + `rev_user` int(10) unsigned NOT NULL DEFAULT '0', + `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_len` int(10) unsigned DEFAULT NULL, + `rev_parent_id` int(10) unsigned DEFAULT NULL, + `rev_sha1` varbinary(32) NOT NULL DEFAULT '', + `rev_content_format` varbinary(64) DEFAULT NULL, + `rev_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`rev_id`), + UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), + KEY `rev_timestamp` (`rev_timestamp`), + KEY `page_timestamp` (`rev_page`,`rev_timestamp`), + KEY `user_timestamp` (`rev_user`,`rev_timestamp`), + KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), + KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `searchindex` ( + `si_page` int(10) unsigned NOT NULL, + `si_title` varchar(255) NOT NULL DEFAULT '', + `si_text` mediumtext NOT NULL, + UNIQUE KEY `si_page` (`si_page`), + FULLTEXT KEY `si_title` (`si_title`), + FULLTEXT KEY `si_text` (`si_text`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_identifiers` ( + `si_site` int(10) unsigned NOT NULL, + `si_type` varbinary(32) NOT NULL, + `si_key` varbinary(32) NOT NULL, + UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), + KEY `site_ids_site` (`si_site`), + KEY `site_ids_key` (`si_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_stats` ( + `ss_row_id` int(10) unsigned NOT NULL, + `ss_total_edits` bigint(20) unsigned DEFAULT '0', + `ss_good_articles` bigint(20) unsigned DEFAULT '0', + `ss_total_pages` bigint(20) DEFAULT '-1', + `ss_users` bigint(20) DEFAULT '-1', + `ss_active_users` bigint(20) DEFAULT '-1', + `ss_images` int(11) DEFAULT '0', + UNIQUE KEY `ss_row_id` (`ss_row_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `sites` ( + `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `site_global_key` varbinary(32) NOT NULL, + `site_type` varbinary(32) NOT NULL, + `site_group` varbinary(32) NOT NULL, + `site_source` varbinary(32) NOT NULL, + `site_language` varbinary(32) NOT NULL, + `site_protocol` varbinary(32) NOT NULL, + `site_domain` varchar(255) NOT NULL, + `site_data` blob NOT NULL, + `site_forward` tinyint(1) NOT NULL, + `site_config` blob NOT NULL, + PRIMARY KEY (`site_id`), + UNIQUE KEY `sites_global_key` (`site_global_key`), + KEY `sites_type` (`site_type`), + KEY `sites_group` (`site_group`), + KEY `sites_source` (`site_source`), + KEY `sites_language` (`site_language`), + KEY `sites_protocol` (`site_protocol`), + KEY `sites_domain` (`site_domain`), + KEY `sites_forward` (`site_forward`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `tag_summary` ( + `ts_rc_id` int(11) DEFAULT NULL, + `ts_log_id` int(11) DEFAULT NULL, + `ts_rev_id` int(11) DEFAULT NULL, + `ts_tags` blob NOT NULL, + UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), + UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), + UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `templatelinks` ( + `tl_from` int(10) unsigned NOT NULL DEFAULT '0', + `tl_namespace` int(11) NOT NULL DEFAULT '0', + `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `tl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), + UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), + KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `text` ( + `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `old_text` mediumblob NOT NULL, + `old_flags` tinyblob NOT NULL, + PRIMARY KEY (`old_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread` ( + `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, + `thread_root` int(8) unsigned NOT NULL, + `thread_ancestor` int(8) unsigned NOT NULL, + `thread_parent` int(8) unsigned DEFAULT NULL, + `thread_summary_page` int(8) unsigned DEFAULT NULL, + `thread_subject` varchar(255) DEFAULT NULL, + `thread_author_id` int(10) unsigned DEFAULT NULL, + `thread_author_name` varchar(255) DEFAULT NULL, + `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_editedness` int(1) NOT NULL DEFAULT '0', + `thread_article_namespace` int(11) NOT NULL, + `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `thread_article_id` int(8) unsigned NOT NULL, + `thread_type` int(4) unsigned NOT NULL DEFAULT '0', + `thread_sortkey` varchar(255) NOT NULL DEFAULT '', + `thread_replies` int(8) DEFAULT '-1', + `thread_signature` tinyblob, + PRIMARY KEY (`thread_id`), + UNIQUE KEY `thread_root` (`thread_root`), + UNIQUE KEY `thread_root_2` (`thread_root`), + KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), + KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), + KEY `thread_article` (`thread_article_id`,`thread_sortkey`), + KEY `thread_modified` (`thread_modified`), + KEY `thread_created` (`thread_created`), + KEY `thread_summary_page` (`thread_summary_page`), + KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), + KEY `thread_sortkey` (`thread_sortkey`), + KEY `thread_parent` (`thread_parent`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_history` ( + `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `th_thread` int(10) unsigned NOT NULL, + `th_timestamp` varbinary(14) NOT NULL, + `th_user` int(10) unsigned NOT NULL, + `th_user_text` varchar(255) NOT NULL, + `th_change_type` int(10) unsigned NOT NULL, + `th_change_object` int(10) unsigned NOT NULL, + `th_change_comment` tinytext NOT NULL, + `th_content` longblob NOT NULL, + PRIMARY KEY (`th_id`), + KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), + KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), + KEY `th_user_text` (`th_user`,`th_user_text`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( + `tpr_thread` int(10) unsigned NOT NULL, + `tpr_relationship` varbinary(64) NOT NULL, + `tpr_title` varbinary(255) NOT NULL, + `tpr_type` varbinary(32) NOT NULL, + PRIMARY KEY (`tpr_thread`,`tpr_relationship`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_reaction` ( + `tr_thread` int(10) unsigned NOT NULL, + `tr_user` int(10) unsigned NOT NULL, + `tr_user_text` varbinary(255) NOT NULL, + `tr_type` varbinary(64) NOT NULL, + `tr_value` int(11) NOT NULL, + PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), + KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `trackbacks` ( + `tb_id` int(11) NOT NULL AUTO_INCREMENT, + `tb_page` int(11) DEFAULT NULL, + `tb_title` varchar(255) NOT NULL, + `tb_url` blob NOT NULL, + `tb_ex` text, + `tb_name` varchar(255) DEFAULT NULL, + PRIMARY KEY (`tb_id`), + KEY `tb_page` (`tb_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `transcache` ( + `tc_url` varbinary(255) NOT NULL, + `tc_contents` text, + `tc_time` binary(14) DEFAULT NULL, + UNIQUE KEY `tc_url_idx` (`tc_url`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `updatelog` ( + `ul_key` varchar(255) NOT NULL, + `ul_value` blob, + PRIMARY KEY (`ul_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `uploadstash` ( + `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `us_user` int(10) unsigned NOT NULL, + `us_key` varchar(255) NOT NULL, + `us_orig_path` varchar(255) NOT NULL, + `us_path` varchar(255) NOT NULL, + `us_source_type` varchar(50) DEFAULT NULL, + `us_timestamp` varbinary(14) NOT NULL, + `us_status` varchar(50) NOT NULL, + `us_size` int(10) unsigned NOT NULL, + `us_sha1` varchar(31) NOT NULL, + `us_mime` varchar(255) DEFAULT NULL, + `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `us_image_width` int(10) unsigned DEFAULT NULL, + `us_image_height` int(10) unsigned DEFAULT NULL, + `us_image_bits` smallint(5) unsigned DEFAULT NULL, + `us_chunk_inx` int(10) unsigned DEFAULT NULL, + `us_props` blob, + PRIMARY KEY (`us_id`), + UNIQUE KEY `us_key` (`us_key`), + KEY `us_user` (`us_user`), + KEY `us_timestamp` (`us_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user` ( + `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_password` tinyblob NOT NULL, + `user_newpassword` tinyblob NOT NULL, + `user_newpass_time` binary(14) DEFAULT NULL, + `user_email` tinytext NOT NULL, + `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `user_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', + `user_email_authenticated` binary(14) DEFAULT NULL, + `user_email_token` binary(32) DEFAULT NULL, + `user_email_token_expires` binary(14) DEFAULT NULL, + `user_registration` binary(14) DEFAULT NULL, + `user_editcount` int(11) DEFAULT NULL, + PRIMARY KEY (`user_id`), + UNIQUE KEY `user_name` (`user_name`), + KEY `user_email_token` (`user_email_token`), + KEY `user_email` (`user_email`(50)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_former_groups` ( + `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', + `ufg_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_groups` ( + `ug_user` int(10) unsigned NOT NULL DEFAULT '0', + `ug_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), + KEY `ug_group` (`ug_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_message_state` ( + `ums_user` int(10) unsigned NOT NULL, + `ums_thread` int(8) unsigned NOT NULL, + `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', + `ums_read_timestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`ums_user`,`ums_thread`), + KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_newtalk` ( + `user_id` int(10) unsigned NOT NULL DEFAULT '0', + `user_ip` varbinary(40) NOT NULL DEFAULT '', + `user_last_timestamp` varbinary(14) DEFAULT NULL, + KEY `un_user_id` (`user_id`), + KEY `un_user_ip` (`user_ip`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_properties` ( + `up_user` int(11) NOT NULL, + `up_property` varbinary(255) DEFAULT NULL, + `up_value` blob, + UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), + KEY `user_properties_property` (`up_property`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `valid_tag` ( + `vt_tag` varchar(255) NOT NULL, + PRIMARY KEY (`vt_tag`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `watchlist` ( + `wl_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `wl_user` int(10) unsigned NOT NULL, + `wl_namespace` int(11) NOT NULL DEFAULT '0', + `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`wl_id`), + UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), + KEY `namespace_title` (`wl_namespace`,`wl_title`), + KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + diff --git a/DeveloperDump/itwikitolearn.struct.sql b/DeveloperDump/itwikitolearn.struct.sql index cd9504d..daa02f6 100644 --- a/DeveloperDump/itwikitolearn.struct.sql +++ b/DeveloperDump/itwikitolearn.struct.sql @@ -1,1178 +1,1380 @@ - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; -/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; -/*!40103 SET TIME_ZONE='+00:00' */; -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `archive` ( - `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `ar_namespace` int(11) NOT NULL DEFAULT '0', - `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ar_text` mediumblob NOT NULL, - `ar_comment` varbinary(767) NOT NULL, - `ar_user` int(10) unsigned NOT NULL DEFAULT '0', - `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', - `ar_flags` tinyblob NOT NULL, - `ar_rev_id` int(10) unsigned DEFAULT NULL, - `ar_text_id` int(10) unsigned DEFAULT NULL, - `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `ar_len` int(10) unsigned DEFAULT NULL, - `ar_page_id` int(10) unsigned DEFAULT NULL, - `ar_parent_id` int(10) unsigned DEFAULT NULL, - `ar_sha1` varbinary(32) NOT NULL DEFAULT '', - `ar_content_model` varbinary(32) DEFAULT NULL, - `ar_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`ar_id`), - KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), - KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), - KEY `ar_revid` (`ar_rev_id`), - KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `category` ( - `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `cat_pages` int(11) NOT NULL DEFAULT '0', - `cat_subcats` int(11) NOT NULL DEFAULT '0', - `cat_files` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`cat_id`), - UNIQUE KEY `cat_title` (`cat_title`), - KEY `cat_pages` (`cat_pages`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `categorylinks` ( - `cl_from` int(10) unsigned NOT NULL DEFAULT '0', - `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', - `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `cl_collation` varbinary(32) NOT NULL DEFAULT '', - `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', - UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), - KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), - KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), - KEY `cl_collation` (`cl_collation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `change_tag` ( - `ct_rc_id` int(11) DEFAULT NULL, - `ct_log_id` int(11) DEFAULT NULL, - `ct_rev_id` int(11) DEFAULT NULL, - `ct_tag` varchar(255) NOT NULL, - `ct_params` blob, - UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), - UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), - UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), - KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_email_batch` ( - `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `eeb_user_id` int(10) unsigned NOT NULL, - `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', - `eeb_event_id` int(10) unsigned NOT NULL, - `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - PRIMARY KEY (`eeb_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`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_event` ( - `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_agent_id` int(10) unsigned DEFAULT NULL, - `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_page_namespace` int(10) unsigned DEFAULT NULL, - `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_extra` blob, - `event_page_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`event_id`), - KEY `echo_event_type` (`event_type`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_notification` ( - `notification_event` int(10) unsigned NOT NULL, - `notification_user` int(10) unsigned NOT NULL, - `notification_timestamp` binary(14) NOT NULL, - `notification_read_timestamp` binary(14) DEFAULT NULL, - `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', - `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `user_event` (`notification_user`,`notification_event`), - KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), - KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), - KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), - KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), - KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_target_page` ( - `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`etp_id`), - KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), - KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `externallinks` ( - `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `el_from` int(10) unsigned NOT NULL DEFAULT '0', - `el_to` blob NOT NULL, - `el_index` blob NOT NULL, - PRIMARY KEY (`el_id`), - KEY `el_from` (`el_from`,`el_to`(40)), - KEY `el_to` (`el_to`(60),`el_from`), - KEY `el_index` (`el_index`(60)) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `filearchive` ( - `fa_id` int(11) NOT NULL AUTO_INCREMENT, - `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', - `fa_storage_group` varbinary(16) DEFAULT NULL, - `fa_storage_key` varbinary(64) DEFAULT '', - `fa_deleted_user` int(11) DEFAULT NULL, - `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted_reason` varbinary(767) DEFAULT '', - `fa_size` int(10) unsigned DEFAULT '0', - `fa_width` int(11) DEFAULT '0', - `fa_height` int(11) DEFAULT '0', - `fa_metadata` mediumblob, - `fa_bits` int(11) DEFAULT '0', - `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `fa_minor_mime` varbinary(100) DEFAULT 'unknown', - `fa_description` varbinary(767) DEFAULT NULL, - `fa_user` int(10) unsigned DEFAULT '0', - `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `fa_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fa_id`), - KEY `fa_name` (`fa_name`,`fa_timestamp`), - KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), - KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), - KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), - KEY `fa_sha1` (`fa_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedimages` ( - `fi_rev_id` int(10) unsigned NOT NULL, - `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fi_img_timestamp` varbinary(14) DEFAULT NULL, - `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fi_rev_id`,`fi_name`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( - `fpc_page_id` int(10) unsigned NOT NULL, - `fpc_select` int(11) NOT NULL, - `fpc_override` tinyint(1) NOT NULL, - `fpc_level` varbinary(60) DEFAULT NULL, - `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', - PRIMARY KEY (`fpc_page_id`), - KEY `fpc_expiry` (`fpc_expiry`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( - `fpp_page_id` int(10) unsigned NOT NULL, - `fpp_quality` tinyint(1) NOT NULL, - `fpp_rev_id` int(10) unsigned NOT NULL, - `fpp_pending_since` varbinary(14) NOT NULL, - PRIMARY KEY (`fpp_page_id`,`fpp_quality`), - KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpages` ( - `fp_page_id` int(10) unsigned NOT NULL, - `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', - `fp_pending_since` varbinary(14) DEFAULT NULL, - `fp_stable` int(10) unsigned NOT NULL, - `fp_quality` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`fp_page_id`), - KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), - KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), - KEY `fp_pending_since` (`fp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs` ( - `fr_rev_id` int(10) unsigned NOT NULL, - `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', - `fr_page_id` int(10) unsigned NOT NULL, - `fr_user` int(10) unsigned NOT NULL, - `fr_timestamp` varbinary(14) NOT NULL, - `fr_quality` tinyint(1) NOT NULL DEFAULT '0', - `fr_tags` mediumblob NOT NULL, - `fr_flags` tinyblob NOT NULL, - `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fr_img_timestamp` varbinary(14) DEFAULT NULL, - `fr_img_sha1` varbinary(32) DEFAULT NULL, - PRIMARY KEY (`fr_rev_id`), - KEY `page_rev` (`fr_page_id`,`fr_rev_id`), - KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), - KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), - KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), - KEY `fr_img_sha1` (`fr_img_sha1`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( - `frp_user_id` int(10) unsigned NOT NULL, - `frp_user_params` mediumblob NOT NULL, - PRIMARY KEY (`frp_user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( - `frs_timestamp` varbinary(14) NOT NULL, - `frs_stat_key` varchar(255) NOT NULL, - `frs_stat_val` bigint(20) NOT NULL, - PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), - KEY `frs_timestamp` (`frs_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( - `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', - `ftr_namespace` int(11) NOT NULL DEFAULT '0', - `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), - KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( - `ft_rev_id` int(10) unsigned NOT NULL, - `ft_namespace` int(11) NOT NULL DEFAULT '0', - `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_revision` ( - `rev_id` binary(11) NOT NULL, - `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', - `rev_user_id` bigint(20) unsigned NOT NULL, - `rev_user_ip` varbinary(39) DEFAULT NULL, - `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_parent_id` binary(11) DEFAULT NULL, - `rev_flags` tinyblob NOT NULL, - `rev_content` mediumblob NOT NULL, - `rev_change_type` varbinary(255) DEFAULT NULL, - `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_mod_user_ip` varbinary(39) DEFAULT NULL, - `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_last_edit_id` binary(11) DEFAULT NULL, - `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_edit_user_ip` varbinary(39) DEFAULT NULL, - `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_content_length` int(11) NOT NULL DEFAULT '0', - `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`rev_id`), - UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), - KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), - KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_subscription` ( - `subscription_workflow_id` int(10) unsigned NOT NULL, - `subscription_user_id` bigint(20) unsigned NOT NULL, - `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), - KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_topic_list` ( - `topic_list_id` binary(11) NOT NULL, - `topic_id` binary(11) DEFAULT NULL, - UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), - KEY `flow_topic_list_topic_id` (`topic_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_node` ( - `tree_ancestor_id` binary(11) NOT NULL, - `tree_descendant_id` binary(11) NOT NULL, - `tree_depth` smallint(6) NOT NULL, - UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), - UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( - `tree_rev_descendant_id` binary(11) NOT NULL, - `tree_rev_id` binary(11) NOT NULL, - `tree_orig_user_id` bigint(20) unsigned NOT NULL, - `tree_orig_user_ip` varbinary(39) DEFAULT NULL, - `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tree_parent_id` binary(11) DEFAULT NULL, - PRIMARY KEY (`tree_rev_id`), - KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target_namespace` int(11) NOT NULL, - `ref_target_title` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_workflow` ( - `workflow_id` binary(11) NOT NULL, - `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_namespace` int(11) NOT NULL, - `workflow_page_id` int(10) unsigned NOT NULL, - `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_last_update_timestamp` binary(14) NOT NULL, - `workflow_lock_state` int(10) unsigned NOT NULL, - `workflow_type` varbinary(16) NOT NULL, - PRIMARY KEY (`workflow_id`), - KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), - KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `historical_thread` ( - `hthread_id` int(8) unsigned NOT NULL, - `hthread_revision` int(8) unsigned NOT NULL, - `hthread_contents` blob NOT NULL, - `hthread_change_type` int(4) unsigned NOT NULL, - `hthread_change_object` int(8) unsigned DEFAULT NULL, - PRIMARY KEY (`hthread_id`,`hthread_revision`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `image` ( - `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `img_size` int(10) unsigned NOT NULL DEFAULT '0', - `img_width` int(11) NOT NULL DEFAULT '0', - `img_height` int(11) NOT NULL DEFAULT '0', - `img_metadata` mediumblob NOT NULL, - `img_bits` int(11) NOT NULL DEFAULT '0', - `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `img_description` varbinary(767) NOT NULL, - `img_user` int(10) unsigned NOT NULL DEFAULT '0', - `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `img_timestamp` varbinary(14) NOT NULL DEFAULT '', - `img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`img_name`), - KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), - KEY `img_size` (`img_size`), - KEY `img_timestamp` (`img_timestamp`), - KEY `img_sha1` (`img_sha1`(10)), - KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `imagelinks` ( - `il_from` int(10) unsigned NOT NULL DEFAULT '0', - `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `il_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `il_from` (`il_from`,`il_to`), - UNIQUE KEY `il_to` (`il_to`,`il_from`), - KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `interwiki` ( - `iw_prefix` varchar(32) NOT NULL, - `iw_url` blob NOT NULL, - `iw_local` tinyint(1) NOT NULL, - `iw_trans` tinyint(4) NOT NULL DEFAULT '0', - `iw_api` blob NOT NULL, - `iw_wikiid` varchar(64) NOT NULL, - UNIQUE KEY `iw_prefix` (`iw_prefix`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ipblocks` ( - `ipb_id` int(11) NOT NULL AUTO_INCREMENT, - `ipb_address` tinyblob NOT NULL, - `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ipb_reason` varbinary(767) NOT NULL, - `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `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 DEFAULT '', - `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(11) DEFAULT NULL, - PRIMARY KEY (`ipb_id`), - UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `iwlinks` ( - `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', - `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', - `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `job` ( - `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `job_cmd` varbinary(60) NOT NULL DEFAULT '', - `job_namespace` int(11) NOT NULL, - `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `job_params` blob NOT NULL, - `job_timestamp` varbinary(14) DEFAULT NULL, - `job_random` int(10) unsigned NOT NULL DEFAULT '0', - `job_token` varbinary(32) NOT NULL DEFAULT '', - `job_token_timestamp` varbinary(14) DEFAULT NULL, - `job_sha1` varbinary(32) NOT NULL DEFAULT '', - `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', - PRIMARY KEY (`job_id`), - KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), - KEY `job_timestamp` (`job_timestamp`), - KEY `job_sha1` (`job_sha1`), - KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), - KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `l10n_cache` ( - `lc_lang` varbinary(32) NOT NULL, - `lc_key` varchar(255) NOT NULL, - `lc_value` mediumblob NOT NULL, - KEY `lc_lang_key` (`lc_lang`,`lc_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `langlinks` ( - `ll_from` int(10) unsigned NOT NULL DEFAULT '0', - `ll_lang` varbinary(20) NOT NULL DEFAULT '', - `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), - KEY `ll_lang` (`ll_lang`,`ll_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `log_search` ( - `ls_field` varbinary(32) NOT NULL, - `ls_value` varchar(255) NOT NULL, - `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', - UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), - KEY `ls_log_id` (`ls_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `logging` ( - `log_type` varbinary(32) NOT NULL, - `log_action` varbinary(32) NOT NULL, - `log_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - `log_user` int(10) unsigned NOT NULL DEFAULT '0', - `log_namespace` int(11) NOT NULL DEFAULT '0', - `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_comment` varbinary(767) NOT NULL DEFAULT '', - `log_params` blob NOT NULL, - `log_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_page` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`log_id`), - KEY `type_time` (`log_type`,`log_timestamp`), - KEY `user_time` (`log_user`,`log_timestamp`), - KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), - KEY `times` (`log_timestamp`), - KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), - KEY `log_page_id_time` (`log_page`,`log_timestamp`), - KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), - KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), - KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `math` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_outputhash` varbinary(16) NOT NULL, - `math_html_conservativeness` tinyint(4) NOT NULL, - `math_html` text, - `math_mathml` text, - UNIQUE KEY `math_inputhash` (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mathoid` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_input` text NOT NULL, - `math_tex` text, - `math_mathml` text, - `math_svg` text, - `math_style` tinyint(4) DEFAULT NULL, - `math_input_type` tinyint(4) DEFAULT NULL, - PRIMARY KEY (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `module_deps` ( - `md_module` varbinary(255) NOT NULL, - `md_skin` varbinary(32) NOT NULL, - `md_deps` mediumblob NOT NULL, - UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource` ( - `mr_resource` varbinary(255) NOT NULL, - `mr_lang` varbinary(32) NOT NULL, - `mr_blob` mediumblob NOT NULL, - `mr_timestamp` binary(14) NOT NULL, - UNIQUE KEY `mr_resource_lang` (`mr_resource`,`mr_lang`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource_links` ( - `mrl_resource` varbinary(255) NOT NULL, - `mrl_message` varbinary(255) NOT NULL, - UNIQUE KEY `mrl_message_resource` (`mrl_message`,`mrl_resource`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `objectcache` ( - `keyname` varbinary(255) NOT NULL DEFAULT '', - `value` mediumblob, - `exptime` datetime DEFAULT NULL, - UNIQUE KEY `keyname` (`keyname`), - KEY `exptime` (`exptime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `oldimage` ( - `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_size` int(10) unsigned NOT NULL DEFAULT '0', - `oi_width` int(11) NOT NULL DEFAULT '0', - `oi_height` int(11) NOT NULL DEFAULT '0', - `oi_bits` int(11) NOT NULL DEFAULT '0', - `oi_description` varbinary(767) NOT NULL, - `oi_user` int(10) unsigned NOT NULL DEFAULT '0', - `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `oi_metadata` mediumblob NOT NULL, - `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `oi_sha1` varbinary(32) NOT NULL DEFAULT '', - KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), - KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), - KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), - KEY `oi_sha1` (`oi_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page` ( - `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `page_namespace` int(11) NOT NULL, - `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `page_restrictions` tinyblob NOT NULL, - `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_random` double unsigned NOT NULL, - `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `page_latest` int(10) unsigned NOT NULL, - `page_len` int(10) unsigned NOT NULL, - `page_content_model` varbinary(32) DEFAULT NULL, - `page_links_updated` varbinary(14) DEFAULT NULL, - `page_lang` varbinary(35) DEFAULT NULL, - PRIMARY KEY (`page_id`), - UNIQUE KEY `name_title` (`page_namespace`,`page_title`), - KEY `page_random` (`page_random`), - KEY `page_len` (`page_len`), - KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_props` ( - `pp_page` int(11) NOT NULL, - `pp_propname` varbinary(60) NOT NULL, - `pp_value` blob NOT NULL, - `pp_sortkey` float DEFAULT NULL, - PRIMARY KEY (`pp_page`,`pp_propname`), - UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), - UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_restrictions` ( - `pr_page` int(11) NOT NULL, - `pr_type` varbinary(60) NOT NULL, - `pr_level` varbinary(60) NOT NULL, - `pr_cascade` tinyint(4) NOT NULL, - `pr_user` int(11) DEFAULT NULL, - `pr_expiry` varbinary(14) DEFAULT NULL, - `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`pr_page`,`pr_type`), - UNIQUE KEY `pr_id` (`pr_id`), - KEY `pr_typelevel` (`pr_type`,`pr_level`), - KEY `pr_level` (`pr_level`), - KEY `pr_cascade` (`pr_cascade`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pagelinks` ( - `pl_from` int(10) unsigned NOT NULL DEFAULT '0', - `pl_namespace` int(11) NOT NULL DEFAULT '0', - `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `pl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), - UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), - KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `protected_titles` ( - `pt_namespace` int(11) NOT NULL, - `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `pt_user` int(10) unsigned NOT NULL, - `pt_reason` varbinary(767) DEFAULT NULL, - `pt_timestamp` binary(14) NOT NULL, - `pt_expiry` varbinary(14) NOT NULL DEFAULT '', - `pt_create_perm` varbinary(60) NOT NULL, - PRIMARY KEY (`pt_namespace`,`pt_title`), - KEY `pt_timestamp` (`pt_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache` ( - `qc_type` varbinary(32) NOT NULL, - `qc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qc_namespace` int(11) NOT NULL DEFAULT '0', - `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qc_type` (`qc_type`,`qc_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache_info` ( - `qci_type` varbinary(32) NOT NULL DEFAULT '', - `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - UNIQUE KEY `qci_type` (`qci_type`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycachetwo` ( - `qcc_type` varbinary(32) NOT NULL, - `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qcc_namespace` int(11) NOT NULL DEFAULT '0', - `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', - `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qcc_type` (`qcc_type`,`qcc_value`), - KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), - KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `recentchanges` ( - `rc_id` int(11) NOT NULL AUTO_INCREMENT, - `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', - `rc_user` int(10) unsigned NOT NULL DEFAULT '0', - `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rc_namespace` int(11) NOT NULL, - `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rc_comment` varbinary(767) NOT NULL DEFAULT '', - `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', - `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_ip` varbinary(40) NOT NULL DEFAULT '', - `rc_old_len` int(11) DEFAULT NULL, - `rc_new_len` int(11) DEFAULT NULL, - `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_log_type` varbinary(255) DEFAULT NULL, - `rc_log_action` varbinary(255) DEFAULT NULL, - `rc_params` blob, - `rc_source` varbinary(16) NOT NULL DEFAULT '', - PRIMARY KEY (`rc_id`), - KEY `rc_timestamp` (`rc_timestamp`), - KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), - KEY `rc_cur_id` (`rc_cur_id`), - KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), - KEY `rc_ip` (`rc_ip`), - KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), - KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `redirect` ( - `rd_from` int(10) unsigned NOT NULL DEFAULT '0', - `rd_namespace` int(11) NOT NULL DEFAULT '0', - `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rd_interwiki` varchar(32) DEFAULT NULL, - `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - PRIMARY KEY (`rd_from`), - KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `revision` ( - `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `rev_page` int(10) unsigned NOT NULL, - `rev_text_id` int(10) unsigned NOT NULL, - `rev_comment` varbinary(767) NOT NULL, - `rev_user` int(10) unsigned NOT NULL DEFAULT '0', - `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_len` int(10) unsigned DEFAULT NULL, - `rev_parent_id` int(10) unsigned DEFAULT NULL, - `rev_sha1` varbinary(32) NOT NULL DEFAULT '', - `rev_content_model` varbinary(32) DEFAULT NULL, - `rev_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`rev_id`), - UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), - KEY `rev_timestamp` (`rev_timestamp`), - KEY `page_timestamp` (`rev_page`,`rev_timestamp`), - KEY `user_timestamp` (`rev_user`,`rev_timestamp`), - KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), - KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `searchindex` ( - `si_page` int(10) unsigned NOT NULL, - `si_title` varchar(255) NOT NULL DEFAULT '', - `si_text` mediumtext NOT NULL, - FULLTEXT KEY `si_title` (`si_title`), - FULLTEXT KEY `si_text` (`si_text`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_identifiers` ( - `si_site` int(10) unsigned NOT NULL, - `si_type` varbinary(32) NOT NULL, - `si_key` varbinary(32) NOT NULL, - UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), - KEY `site_ids_site` (`si_site`), - KEY `site_ids_key` (`si_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_stats` ( - `ss_row_id` int(10) unsigned NOT NULL, - `ss_total_edits` bigint(20) unsigned DEFAULT '0', - `ss_good_articles` bigint(20) unsigned DEFAULT '0', - `ss_total_pages` bigint(20) DEFAULT '-1', - `ss_users` bigint(20) DEFAULT '-1', - `ss_active_users` bigint(20) DEFAULT '-1', - `ss_images` int(11) DEFAULT '0', - UNIQUE KEY `ss_row_id` (`ss_row_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `sites` ( - `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `site_global_key` varbinary(32) NOT NULL, - `site_type` varbinary(32) NOT NULL, - `site_group` varbinary(32) NOT NULL, - `site_source` varbinary(32) NOT NULL, - `site_language` varbinary(32) NOT NULL, - `site_protocol` varbinary(32) NOT NULL, - `site_domain` varchar(255) NOT NULL, - `site_data` blob NOT NULL, - `site_forward` tinyint(1) NOT NULL, - `site_config` blob NOT NULL, - PRIMARY KEY (`site_id`), - UNIQUE KEY `sites_global_key` (`site_global_key`), - KEY `sites_type` (`site_type`), - KEY `sites_group` (`site_group`), - KEY `sites_source` (`site_source`), - KEY `sites_language` (`site_language`), - KEY `sites_protocol` (`site_protocol`), - KEY `sites_domain` (`site_domain`), - KEY `sites_forward` (`site_forward`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `tag_summary` ( - `ts_rc_id` int(11) DEFAULT NULL, - `ts_log_id` int(11) DEFAULT NULL, - `ts_rev_id` int(11) DEFAULT NULL, - `ts_tags` blob NOT NULL, - UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), - UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), - UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `templatelinks` ( - `tl_from` int(10) unsigned NOT NULL DEFAULT '0', - `tl_namespace` int(11) NOT NULL DEFAULT '0', - `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `tl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), - UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), - KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `text` ( - `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `old_text` mediumblob NOT NULL, - `old_flags` tinyblob NOT NULL, - PRIMARY KEY (`old_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread` ( - `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, - `thread_root` int(8) unsigned NOT NULL, - `thread_ancestor` int(8) unsigned NOT NULL, - `thread_parent` int(8) unsigned DEFAULT NULL, - `thread_summary_page` int(8) unsigned DEFAULT NULL, - `thread_subject` varchar(255) DEFAULT NULL, - `thread_author_id` int(10) unsigned DEFAULT NULL, - `thread_author_name` varchar(255) DEFAULT NULL, - `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_editedness` int(1) NOT NULL DEFAULT '0', - `thread_article_namespace` int(11) NOT NULL, - `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `thread_article_id` int(8) unsigned NOT NULL, - `thread_type` int(4) unsigned NOT NULL DEFAULT '0', - `thread_sortkey` varchar(255) NOT NULL DEFAULT '', - `thread_replies` int(8) DEFAULT '-1', - `thread_signature` tinyblob, - PRIMARY KEY (`thread_id`), - UNIQUE KEY `thread_root` (`thread_root`), - UNIQUE KEY `thread_root_2` (`thread_root`), - KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), - KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), - KEY `thread_article` (`thread_article_id`,`thread_sortkey`), - KEY `thread_modified` (`thread_modified`), - KEY `thread_created` (`thread_created`), - KEY `thread_summary_page` (`thread_summary_page`), - KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), - KEY `thread_sortkey` (`thread_sortkey`), - KEY `thread_parent` (`thread_parent`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_history` ( - `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `th_thread` int(10) unsigned NOT NULL, - `th_timestamp` varbinary(14) NOT NULL, - `th_user` int(10) unsigned NOT NULL, - `th_user_text` varchar(255) NOT NULL, - `th_change_type` int(10) unsigned NOT NULL, - `th_change_object` int(10) unsigned NOT NULL, - `th_change_comment` tinytext NOT NULL, - `th_content` longblob NOT NULL, - PRIMARY KEY (`th_id`), - KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), - KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), - KEY `th_user_text` (`th_user`,`th_user_text`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( - `tpr_thread` int(10) unsigned NOT NULL, - `tpr_relationship` varbinary(64) NOT NULL, - `tpr_title` varbinary(255) NOT NULL, - `tpr_type` varbinary(32) NOT NULL, - PRIMARY KEY (`tpr_thread`,`tpr_relationship`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_reaction` ( - `tr_thread` int(10) unsigned NOT NULL, - `tr_user` int(10) unsigned NOT NULL, - `tr_user_text` varbinary(255) NOT NULL, - `tr_type` varbinary(64) NOT NULL, - `tr_value` int(11) NOT NULL, - PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), - KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `transcache` ( - `tc_url` varbinary(255) NOT NULL, - `tc_contents` text, - `tc_time` binary(14) DEFAULT NULL, - UNIQUE KEY `tc_url_idx` (`tc_url`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `updatelog` ( - `ul_key` varchar(255) NOT NULL, - `ul_value` blob, - PRIMARY KEY (`ul_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uploadstash` ( - `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `us_user` int(10) unsigned NOT NULL, - `us_key` varchar(255) NOT NULL, - `us_orig_path` varchar(255) NOT NULL, - `us_path` varchar(255) NOT NULL, - `us_source_type` varchar(50) DEFAULT NULL, - `us_timestamp` varbinary(14) NOT NULL, - `us_status` varchar(50) NOT NULL, - `us_chunk_inx` int(10) unsigned DEFAULT NULL, - `us_props` blob, - `us_size` int(10) unsigned NOT NULL, - `us_sha1` varchar(31) NOT NULL, - `us_mime` varchar(255) DEFAULT NULL, - `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `us_image_width` int(10) unsigned DEFAULT NULL, - `us_image_height` int(10) unsigned DEFAULT NULL, - `us_image_bits` smallint(5) unsigned DEFAULT NULL, - PRIMARY KEY (`us_id`), - UNIQUE KEY `us_key` (`us_key`), - KEY `us_user` (`us_user`), - KEY `us_timestamp` (`us_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user` ( - `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_password` tinyblob NOT NULL, - `user_newpassword` tinyblob NOT NULL, - `user_newpass_time` binary(14) DEFAULT NULL, - `user_email` tinytext NOT NULL, - `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `user_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', - `user_email_authenticated` binary(14) DEFAULT NULL, - `user_email_token` binary(32) DEFAULT NULL, - `user_email_token_expires` binary(14) DEFAULT NULL, - `user_registration` binary(14) DEFAULT NULL, - `user_editcount` int(11) DEFAULT NULL, - PRIMARY KEY (`user_id`), - UNIQUE KEY `user_name` (`user_name`), - KEY `user_email_token` (`user_email_token`), - KEY `user_email` (`user_email`(50)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_former_groups` ( - `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', - `ufg_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_groups` ( - `ug_user` int(10) unsigned NOT NULL DEFAULT '0', - `ug_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), - KEY `ug_group` (`ug_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_message_state` ( - `ums_user` int(10) unsigned NOT NULL, - `ums_thread` int(8) unsigned NOT NULL, - `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', - `ums_read_timestamp` varbinary(14) DEFAULT NULL, - PRIMARY KEY (`ums_user`,`ums_thread`), - KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_newtalk` ( - `user_id` int(10) unsigned NOT NULL DEFAULT '0', - `user_ip` varbinary(40) NOT NULL DEFAULT '', - `user_last_timestamp` varbinary(14) DEFAULT NULL, - KEY `un_user_id` (`user_id`), - KEY `un_user_ip` (`user_ip`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_properties` ( - `up_user` int(11) NOT NULL, - `up_property` varbinary(255) NOT NULL, - `up_value` blob, - UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), - KEY `user_properties_property` (`up_property`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `valid_tag` ( - `vt_tag` varchar(255) NOT NULL, - PRIMARY KEY (`vt_tag`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `watchlist` ( - `wl_user` int(10) unsigned NOT NULL, - `wl_namespace` int(11) NOT NULL DEFAULT '0', - `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, - UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), - KEY `namespace_title` (`wl_namespace`,`wl_title`), - KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - -DROP INDEX flow_ext_ref_idx_v2 ON flow_ext_ref; DROP INDEX flow_ext_ref_revision_v2 ON flow_ext_ref; ALTER TABLE flow_ext_ref CHANGE ref_target ref_target BLOB NOT NULL; CREATE INDEX flow_ext_ref_idx_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_type, ref_target(255), ref_src_object_type, ref_src_object_id); CREATE INDEX flow_ext_ref_revision_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_src_object_type, ref_src_object_id, ref_type, ref_target(255)); + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `archive` ( + `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `ar_namespace` int(11) NOT NULL DEFAULT '0', + `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ar_text` mediumblob NOT NULL, + `ar_comment` varbinary(767) NOT NULL, + `ar_user` int(10) unsigned NOT NULL DEFAULT '0', + `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', + `ar_flags` tinyblob NOT NULL, + `ar_rev_id` int(10) unsigned DEFAULT NULL, + `ar_text_id` int(10) unsigned DEFAULT NULL, + `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `ar_len` int(10) unsigned DEFAULT NULL, + `ar_page_id` int(10) unsigned DEFAULT NULL, + `ar_parent_id` int(10) unsigned DEFAULT NULL, + `ar_sha1` varbinary(32) NOT NULL DEFAULT '', + `ar_content_format` varbinary(64) DEFAULT NULL, + `ar_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`ar_id`), + KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), + KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), + KEY `ar_revid` (`ar_rev_id`), + KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_commentmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `comment_id` (`comment_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_comments` ( + `comment_ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_post_ID` bigint(20) unsigned NOT NULL DEFAULT '0', + `comment_author` tinytext NOT NULL, + `comment_author_email` varchar(100) NOT NULL DEFAULT '', + `comment_author_url` varchar(200) NOT NULL DEFAULT '', + `comment_author_IP` varchar(100) NOT NULL DEFAULT '', + `comment_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_content` text NOT NULL, + `comment_karma` int(11) NOT NULL DEFAULT '0', + `comment_approved` varchar(20) NOT NULL DEFAULT '1', + `comment_agent` varchar(255) NOT NULL DEFAULT '', + `comment_type` varchar(20) NOT NULL DEFAULT '', + `comment_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`comment_ID`), + KEY `comment_post_ID` (`comment_post_ID`), + KEY `comment_approved_date_gmt` (`comment_approved`,`comment_date_gmt`), + KEY `comment_date_gmt` (`comment_date_gmt`), + KEY `comment_parent` (`comment_parent`), + KEY `comment_author_email` (`comment_author_email`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_links` ( + `link_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `link_url` varchar(255) NOT NULL DEFAULT '', + `link_name` varchar(255) NOT NULL DEFAULT '', + `link_image` varchar(255) NOT NULL DEFAULT '', + `link_target` varchar(25) NOT NULL DEFAULT '', + `link_description` varchar(255) NOT NULL DEFAULT '', + `link_visible` varchar(20) NOT NULL DEFAULT 'Y', + `link_owner` bigint(20) unsigned NOT NULL DEFAULT '1', + `link_rating` int(11) NOT NULL DEFAULT '0', + `link_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `link_rel` varchar(255) NOT NULL DEFAULT '', + `link_notes` mediumtext NOT NULL, + `link_rss` varchar(255) NOT NULL DEFAULT '', + PRIMARY KEY (`link_id`), + KEY `link_visible` (`link_visible`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_options` ( + `option_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `option_name` varchar(64) NOT NULL DEFAULT '', + `option_value` longtext NOT NULL, + `autoload` varchar(20) NOT NULL DEFAULT 'yes', + PRIMARY KEY (`option_id`), + UNIQUE KEY `option_name` (`option_name`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_postmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `post_id` (`post_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_posts` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_author` bigint(20) unsigned NOT NULL DEFAULT '0', + `post_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content` longtext NOT NULL, + `post_title` text NOT NULL, + `post_excerpt` text NOT NULL, + `post_status` varchar(20) NOT NULL DEFAULT 'publish', + `comment_status` varchar(20) NOT NULL DEFAULT 'open', + `ping_status` varchar(20) NOT NULL DEFAULT 'open', + `post_password` varchar(20) NOT NULL DEFAULT '', + `post_name` varchar(200) NOT NULL DEFAULT '', + `to_ping` text NOT NULL, + `pinged` text NOT NULL, + `post_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_modified_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content_filtered` longtext NOT NULL, + `post_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `guid` varchar(255) NOT NULL DEFAULT '', + `menu_order` int(11) NOT NULL DEFAULT '0', + `post_type` varchar(20) NOT NULL DEFAULT 'post', + `post_mime_type` varchar(100) NOT NULL DEFAULT '', + `comment_count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`), + KEY `post_name` (`post_name`), + KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`ID`), + KEY `post_parent` (`post_parent`), + KEY `post_author` (`post_author`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_relationships` ( + `object_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_taxonomy_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`object_id`,`term_taxonomy_id`), + KEY `term_taxonomy_id` (`term_taxonomy_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_taxonomy` ( + `term_taxonomy_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `term_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `taxonomy` varchar(32) NOT NULL DEFAULT '', + `description` longtext NOT NULL, + `parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_taxonomy_id`), + UNIQUE KEY `term_id_taxonomy` (`term_id`,`taxonomy`), + KEY `taxonomy` (`taxonomy`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_terms` ( + `term_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(200) NOT NULL DEFAULT '', + `slug` varchar(200) NOT NULL DEFAULT '', + `term_group` bigint(10) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_id`), + KEY `name` (`name`), + KEY `slug` (`slug`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_usermeta` ( + `umeta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`umeta_id`), + KEY `user_id` (`user_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_users` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_login` varchar(60) NOT NULL DEFAULT '', + `user_pass` varchar(64) NOT NULL DEFAULT '', + `user_nicename` varchar(50) NOT NULL DEFAULT '', + `user_email` varchar(100) NOT NULL DEFAULT '', + `user_url` varchar(100) NOT NULL DEFAULT '', + `user_registered` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `user_activation_key` varchar(60) NOT NULL DEFAULT '', + `user_status` int(11) NOT NULL DEFAULT '0', + `display_name` varchar(250) NOT NULL DEFAULT '', + PRIMARY KEY (`ID`), + KEY `user_login_key` (`user_login`), + KEY `user_nicename` (`user_nicename`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `bot_passwords` ( + `bp_user` int(11) NOT NULL, + `bp_app_id` varbinary(32) 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_restrictions` blob NOT NULL, + `bp_grants` blob NOT NULL, + PRIMARY KEY (`bp_user`,`bp_app_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `category` ( + `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `cat_pages` int(11) NOT NULL DEFAULT '0', + `cat_subcats` int(11) NOT NULL DEFAULT '0', + `cat_files` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`cat_id`), + UNIQUE KEY `cat_title` (`cat_title`), + KEY `cat_pages` (`cat_pages`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `categorylinks` ( + `cl_from` int(10) unsigned NOT NULL DEFAULT '0', + `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', + `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `cl_collation` varbinary(32) NOT NULL DEFAULT '', + `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', + UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), + KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), + KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), + KEY `cl_collation_ext` (`cl_collation`,`cl_to`,`cl_type`,`cl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `change_tag` ( + `ct_rc_id` int(11) DEFAULT NULL, + `ct_log_id` int(11) DEFAULT NULL, + `ct_rev_id` int(11) DEFAULT NULL, + `ct_tag` varchar(255) NOT NULL, + `ct_params` blob, + UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), + UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), + UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), + KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_email_batch` ( + `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `eeb_user_id` int(10) unsigned NOT NULL, + `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', + `eeb_event_id` int(10) unsigned NOT NULL, + `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eeb_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`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_event` ( + `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_agent_id` int(10) unsigned DEFAULT NULL, + `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_page_namespace` int(10) unsigned DEFAULT NULL, + `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_extra` blob, + `event_page_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`event_id`), + KEY `echo_event_type` (`event_type`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_notification` ( + `notification_event` int(10) unsigned NOT NULL, + `notification_user` int(10) unsigned NOT NULL, + `notification_timestamp` binary(14) NOT NULL, + `notification_read_timestamp` binary(14) DEFAULT NULL, + `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', + `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `user_event` (`notification_user`,`notification_event`), + KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), + KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), + KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), + KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), + KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_target_page` ( + `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`etp_id`), + KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), + KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `external_user` ( + `eu_local_id` int(10) unsigned NOT NULL, + `eu_external_id` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eu_local_id`), + UNIQUE KEY `eu_external_id` (`eu_external_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `externallinks` ( + `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `el_from` int(10) unsigned NOT NULL DEFAULT '0', + `el_to` blob NOT NULL, + `el_index` blob NOT NULL, + PRIMARY KEY (`el_id`), + KEY `el_from` (`el_from`,`el_to`(40)), + KEY `el_to` (`el_to`(60),`el_from`), + KEY `el_index` (`el_index`(60)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `filearchive` ( + `fa_id` int(11) NOT NULL AUTO_INCREMENT, + `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', + `fa_storage_group` varbinary(16) DEFAULT NULL, + `fa_storage_key` varbinary(64) DEFAULT '', + `fa_deleted_user` int(11) DEFAULT NULL, + `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted_reason` varbinary(767) DEFAULT '', + `fa_size` int(10) unsigned DEFAULT '0', + `fa_width` int(11) DEFAULT '0', + `fa_height` int(11) DEFAULT '0', + `fa_metadata` mediumblob, + `fa_bits` int(11) DEFAULT '0', + `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `fa_minor_mime` varbinary(100) DEFAULT 'unknown', + `fa_description` varbinary(767) DEFAULT NULL, + `fa_user` int(10) unsigned DEFAULT '0', + `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `fa_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fa_id`), + KEY `fa_name` (`fa_name`,`fa_timestamp`), + KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), + KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), + KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), + KEY `fa_sha1` (`fa_sha1`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedimages` ( + `fi_rev_id` int(10) unsigned NOT NULL, + `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fi_img_timestamp` varbinary(14) DEFAULT NULL, + `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fi_rev_id`,`fi_name`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( + `fpc_page_id` int(10) unsigned NOT NULL, + `fpc_select` int(11) NOT NULL, + `fpc_override` tinyint(1) NOT NULL, + `fpc_level` varbinary(60) DEFAULT NULL, + `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', + PRIMARY KEY (`fpc_page_id`), + KEY `fpc_expiry` (`fpc_expiry`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( + `fpp_page_id` int(10) unsigned NOT NULL, + `fpp_quality` tinyint(1) NOT NULL, + `fpp_rev_id` int(10) unsigned NOT NULL, + `fpp_pending_since` varbinary(14) NOT NULL, + PRIMARY KEY (`fpp_page_id`,`fpp_quality`), + KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpages` ( + `fp_page_id` int(10) unsigned NOT NULL, + `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', + `fp_pending_since` varbinary(14) DEFAULT NULL, + `fp_stable` int(10) unsigned NOT NULL, + `fp_quality` tinyint(1) DEFAULT NULL, + PRIMARY KEY (`fp_page_id`), + KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), + KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), + KEY `fp_pending_since` (`fp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs` ( + `fr_rev_id` int(10) unsigned NOT NULL, + `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', + `fr_page_id` int(10) unsigned NOT NULL, + `fr_user` int(10) unsigned NOT NULL, + `fr_timestamp` varbinary(14) NOT NULL, + `fr_quality` tinyint(1) NOT NULL DEFAULT '0', + `fr_tags` mediumblob NOT NULL, + `fr_flags` tinyblob NOT NULL, + `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fr_img_timestamp` varbinary(14) DEFAULT NULL, + `fr_img_sha1` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`fr_rev_id`), + KEY `page_rev` (`fr_page_id`,`fr_rev_id`), + KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), + KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), + KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), + KEY `fr_img_sha1` (`fr_img_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( + `frp_user_id` int(10) unsigned NOT NULL, + `frp_user_params` mediumblob NOT NULL, + PRIMARY KEY (`frp_user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( + `frs_timestamp` varbinary(14) NOT NULL, + `frs_stat_key` varchar(255) NOT NULL, + `frs_stat_val` bigint(20) NOT NULL, + PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), + KEY `frs_timestamp` (`frs_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( + `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', + `ftr_namespace` int(11) NOT NULL DEFAULT '0', + `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), + KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( + `ft_rev_id` int(10) unsigned NOT NULL, + `ft_namespace` int(11) NOT NULL DEFAULT '0', + `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target` blob NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`(255),`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`(255)) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_revision` ( + `rev_id` binary(11) NOT NULL, + `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', + `rev_user_id` bigint(20) unsigned NOT NULL, + `rev_user_ip` varbinary(39) DEFAULT NULL, + `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_parent_id` binary(11) DEFAULT NULL, + `rev_flags` tinyblob NOT NULL, + `rev_content` mediumblob NOT NULL, + `rev_change_type` varbinary(255) DEFAULT NULL, + `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_mod_user_ip` varbinary(39) DEFAULT NULL, + `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_last_edit_id` binary(11) DEFAULT NULL, + `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_edit_user_ip` varbinary(39) DEFAULT NULL, + `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_content_length` int(11) NOT NULL DEFAULT '0', + `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`rev_id`), + UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), + KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), + KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_subscription` ( + `subscription_workflow_id` int(10) unsigned NOT NULL, + `subscription_user_id` bigint(20) unsigned NOT NULL, + `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), + KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_topic_list` ( + `topic_list_id` binary(11) NOT NULL, + `topic_id` binary(11) DEFAULT NULL, + UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), + KEY `flow_topic_list_topic_id` (`topic_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_node` ( + `tree_ancestor_id` binary(11) NOT NULL, + `tree_descendant_id` binary(11) NOT NULL, + `tree_depth` smallint(6) NOT NULL, + UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), + UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( + `tree_rev_descendant_id` binary(11) NOT NULL, + `tree_rev_id` binary(11) NOT NULL, + `tree_orig_user_id` bigint(20) unsigned NOT NULL, + `tree_orig_user_ip` varbinary(39) DEFAULT NULL, + `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `tree_parent_id` binary(11) DEFAULT NULL, + PRIMARY KEY (`tree_rev_id`), + KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target_namespace` int(11) NOT NULL, + `ref_target_title` varbinary(255) NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_workflow` ( + `workflow_id` binary(11) NOT NULL, + `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_namespace` int(11) NOT NULL, + `workflow_page_id` int(10) unsigned NOT NULL, + `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_last_update_timestamp` binary(14) NOT NULL, + `workflow_lock_state` int(10) unsigned NOT NULL, + `workflow_type` varbinary(16) NOT NULL, + PRIMARY KEY (`workflow_id`), + KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), + KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `historical_thread` ( + `hthread_id` int(8) unsigned NOT NULL, + `hthread_revision` int(8) unsigned NOT NULL, + `hthread_contents` blob NOT NULL, + `hthread_change_type` int(4) unsigned NOT NULL, + `hthread_change_object` int(8) unsigned DEFAULT NULL, + PRIMARY KEY (`hthread_id`,`hthread_revision`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `image` ( + `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `img_size` int(10) unsigned NOT NULL DEFAULT '0', + `img_width` int(11) NOT NULL DEFAULT '0', + `img_height` int(11) NOT NULL DEFAULT '0', + `img_metadata` mediumblob NOT NULL, + `img_bits` int(11) NOT NULL DEFAULT '0', + `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `img_description` varbinary(767) NOT NULL, + `img_user` int(10) unsigned NOT NULL DEFAULT '0', + `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `img_timestamp` varbinary(14) NOT NULL DEFAULT '', + `img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`img_name`), + KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), + KEY `img_size` (`img_size`), + KEY `img_timestamp` (`img_timestamp`), + KEY `img_sha1` (`img_sha1`), + KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `imagelinks` ( + `il_from` int(10) unsigned NOT NULL DEFAULT '0', + `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `il_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `il_from` (`il_from`,`il_to`), + UNIQUE KEY `il_to` (`il_to`,`il_from`), + KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `interwiki` ( + `iw_prefix` varchar(32) NOT NULL, + `iw_url` blob NOT NULL, + `iw_api` blob NOT NULL, + `iw_wikiid` varchar(64) NOT NULL, + `iw_local` tinyint(1) NOT NULL, + `iw_trans` tinyint(4) NOT NULL DEFAULT '0', + UNIQUE KEY `iw_prefix` (`iw_prefix`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `ipblocks` ( + `ipb_id` int(11) NOT NULL AUTO_INCREMENT, + `ipb_address` tinyblob NOT NULL, + `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ipb_reason` varbinary(767) NOT NULL, + `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `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 DEFAULT '', + `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(11) DEFAULT NULL, + PRIMARY KEY (`ipb_id`), + UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), + 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 AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `iwlinks` ( + `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', + `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', + `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), + 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=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `job` ( + `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `job_cmd` varbinary(60) NOT NULL DEFAULT '', + `job_namespace` int(11) NOT NULL, + `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `job_params` blob NOT NULL, + `job_timestamp` varbinary(14) DEFAULT NULL, + `job_random` int(10) unsigned NOT NULL DEFAULT '0', + `job_token` varbinary(32) NOT NULL DEFAULT '', + `job_token_timestamp` varbinary(14) DEFAULT NULL, + `job_sha1` varbinary(32) NOT NULL DEFAULT '', + `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`job_id`), + KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), + KEY `job_timestamp` (`job_timestamp`), + KEY `job_sha1` (`job_sha1`), + KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), + KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `l10n_cache` ( + `lc_lang` varbinary(32) NOT NULL, + `lc_key` varchar(255) NOT NULL, + `lc_value` mediumblob NOT NULL, + KEY `lc_lang_key` (`lc_lang`,`lc_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `langlinks` ( + `ll_from` int(10) unsigned NOT NULL DEFAULT '0', + `ll_lang` varbinary(20) NOT NULL DEFAULT '', + `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), + KEY `ll_lang` (`ll_lang`,`ll_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `log_search` ( + `ls_field` varbinary(32) NOT NULL, + `ls_value` varchar(255) NOT NULL, + `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', + UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), + KEY `ls_log_id` (`ls_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `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_user` int(10) unsigned NOT NULL DEFAULT '0', + `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_namespace` int(11) NOT NULL DEFAULT '0', + `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_page` int(10) unsigned DEFAULT NULL, + `log_comment` varbinary(767) NOT NULL DEFAULT '', + `log_params` blob NOT NULL, + `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`log_id`), + KEY `type_time` (`log_type`,`log_timestamp`), + KEY `user_time` (`log_user`,`log_timestamp`), + KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), + KEY `times` (`log_timestamp`), + KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), + KEY `log_page_id_time` (`log_page`,`log_timestamp`), + KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), + KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), + KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `math` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_outputhash` varbinary(16) NOT NULL, + `math_html_conservativeness` tinyint(4) NOT NULL, + `math_html` text, + `math_mathml` text, + UNIQUE KEY `math_inputhash` (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `mathoid` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_input` text NOT NULL, + `math_tex` text, + `math_mathml` text, + `math_svg` text, + `math_style` tinyint(4) DEFAULT NULL, + `math_input_type` tinyint(4) DEFAULT NULL, + PRIMARY KEY (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `module_deps` ( + `md_module` varbinary(255) NOT NULL, + `md_skin` varbinary(32) NOT NULL, + `md_deps` mediumblob NOT NULL, + UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `objectcache` ( + `keyname` varbinary(255) NOT NULL DEFAULT '', + `value` mediumblob, + `exptime` datetime DEFAULT NULL, + PRIMARY KEY (`keyname`), + KEY `exptime` (`exptime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `oldimage` ( + `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_size` int(10) unsigned NOT NULL DEFAULT '0', + `oi_width` int(11) NOT NULL DEFAULT '0', + `oi_height` int(11) NOT NULL DEFAULT '0', + `oi_bits` int(11) NOT NULL DEFAULT '0', + `oi_description` varbinary(767) NOT NULL, + `oi_user` int(10) unsigned NOT NULL DEFAULT '0', + `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `oi_metadata` mediumblob NOT NULL, + `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `oi_sha1` varbinary(32) NOT NULL DEFAULT '', + KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), + KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), + KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), + KEY `oi_sha1` (`oi_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page` ( + `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `page_namespace` int(11) NOT NULL, + `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `page_restrictions` tinyblob NOT NULL, + `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_random` double unsigned NOT NULL, + `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `page_latest` int(10) unsigned NOT NULL, + `page_len` int(10) unsigned NOT NULL, + `page_content_model` varbinary(32) DEFAULT NULL, + `page_links_updated` varbinary(14) DEFAULT NULL, + `page_lang` varbinary(35) DEFAULT NULL, + PRIMARY KEY (`page_id`), + UNIQUE KEY `name_title` (`page_namespace`,`page_title`), + KEY `page_random` (`page_random`), + KEY `page_len` (`page_len`), + KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_props` ( + `pp_page` int(11) NOT NULL, + `pp_propname` varbinary(60) NOT NULL, + `pp_value` blob NOT NULL, + `pp_sortkey` float DEFAULT NULL, + UNIQUE KEY `pp_page_propname` (`pp_page`,`pp_propname`), + UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), + UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_restrictions` ( + `pr_page` int(11) NOT NULL, + `pr_type` varbinary(60) NOT NULL, + `pr_level` varbinary(60) NOT NULL, + `pr_cascade` tinyint(4) NOT NULL, + `pr_user` int(11) DEFAULT NULL, + `pr_expiry` varbinary(14) DEFAULT NULL, + `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`pr_id`), + UNIQUE KEY `pr_pagetype` (`pr_page`,`pr_type`), + KEY `pr_typelevel` (`pr_type`,`pr_level`), + KEY `pr_level` (`pr_level`), + KEY `pr_cascade` (`pr_cascade`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `pagelinks` ( + `pl_from` int(10) unsigned NOT NULL DEFAULT '0', + `pl_namespace` int(11) NOT NULL DEFAULT '0', + `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `pl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), + UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), + KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `protected_titles` ( + `pt_namespace` int(11) NOT NULL, + `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `pt_user` int(10) unsigned NOT NULL, + `pt_reason` varbinary(767) DEFAULT NULL, + `pt_timestamp` binary(14) NOT NULL, + `pt_expiry` varbinary(14) NOT NULL DEFAULT '', + `pt_create_perm` varbinary(60) NOT NULL, + UNIQUE KEY `pt_namespace_title` (`pt_namespace`,`pt_title`), + KEY `pt_timestamp` (`pt_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache` ( + `qc_type` varbinary(32) NOT NULL, + `qc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qc_namespace` int(11) NOT NULL DEFAULT '0', + `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qc_type` (`qc_type`,`qc_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache_info` ( + `qci_type` varbinary(32) NOT NULL DEFAULT '', + `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', + UNIQUE KEY `qci_type` (`qci_type`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycachetwo` ( + `qcc_type` varbinary(32) NOT NULL, + `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qcc_namespace` int(11) NOT NULL DEFAULT '0', + `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', + `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qcc_type` (`qcc_type`,`qcc_value`), + KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), + KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `recentchanges` ( + `rc_id` int(11) NOT NULL AUTO_INCREMENT, + `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', + `rc_user` int(10) unsigned NOT NULL DEFAULT '0', + `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rc_namespace` int(11) NOT NULL DEFAULT '0', + `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rc_comment` varbinary(767) NOT NULL DEFAULT '', + `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', + `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_ip` varbinary(40) NOT NULL DEFAULT '', + `rc_old_len` int(11) DEFAULT NULL, + `rc_new_len` int(11) DEFAULT NULL, + `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_log_type` varbinary(255) DEFAULT NULL, + `rc_log_action` varbinary(255) DEFAULT NULL, + `rc_params` blob, + `rc_source` varbinary(16) NOT NULL DEFAULT '', + PRIMARY KEY (`rc_id`), + KEY `rc_timestamp` (`rc_timestamp`), + KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), + KEY `rc_cur_id` (`rc_cur_id`), + KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), + KEY `rc_ip` (`rc_ip`), + KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), + KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `redirect` ( + `rd_from` int(10) unsigned NOT NULL DEFAULT '0', + `rd_namespace` int(11) NOT NULL DEFAULT '0', + `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rd_interwiki` varchar(32) DEFAULT NULL, + `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + PRIMARY KEY (`rd_from`), + KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `revision` ( + `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `rev_page` int(10) unsigned NOT NULL, + `rev_text_id` int(10) unsigned NOT NULL, + `rev_comment` varbinary(767) NOT NULL, + `rev_user` int(10) unsigned NOT NULL DEFAULT '0', + `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_len` int(10) unsigned DEFAULT NULL, + `rev_parent_id` int(10) unsigned DEFAULT NULL, + `rev_sha1` varbinary(32) NOT NULL DEFAULT '', + `rev_content_format` varbinary(64) DEFAULT NULL, + `rev_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`rev_id`), + UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), + KEY `rev_timestamp` (`rev_timestamp`), + KEY `page_timestamp` (`rev_page`,`rev_timestamp`), + KEY `user_timestamp` (`rev_user`,`rev_timestamp`), + KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), + KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `searchindex` ( + `si_page` int(10) unsigned NOT NULL, + `si_title` varchar(255) NOT NULL DEFAULT '', + `si_text` mediumtext NOT NULL, + UNIQUE KEY `si_page` (`si_page`), + FULLTEXT KEY `si_title` (`si_title`), + FULLTEXT KEY `si_text` (`si_text`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_identifiers` ( + `si_site` int(10) unsigned NOT NULL, + `si_type` varbinary(32) NOT NULL, + `si_key` varbinary(32) NOT NULL, + UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), + KEY `site_ids_site` (`si_site`), + KEY `site_ids_key` (`si_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_stats` ( + `ss_row_id` int(10) unsigned NOT NULL, + `ss_total_edits` bigint(20) unsigned DEFAULT '0', + `ss_good_articles` bigint(20) unsigned DEFAULT '0', + `ss_total_pages` bigint(20) DEFAULT '-1', + `ss_users` bigint(20) DEFAULT '-1', + `ss_active_users` bigint(20) DEFAULT '-1', + `ss_images` int(11) DEFAULT '0', + UNIQUE KEY `ss_row_id` (`ss_row_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `sites` ( + `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `site_global_key` varbinary(32) NOT NULL, + `site_type` varbinary(32) NOT NULL, + `site_group` varbinary(32) NOT NULL, + `site_source` varbinary(32) NOT NULL, + `site_language` varbinary(32) NOT NULL, + `site_protocol` varbinary(32) NOT NULL, + `site_domain` varchar(255) NOT NULL, + `site_data` blob NOT NULL, + `site_forward` tinyint(1) NOT NULL, + `site_config` blob NOT NULL, + PRIMARY KEY (`site_id`), + UNIQUE KEY `sites_global_key` (`site_global_key`), + KEY `sites_type` (`site_type`), + KEY `sites_group` (`site_group`), + KEY `sites_source` (`site_source`), + KEY `sites_language` (`site_language`), + KEY `sites_protocol` (`site_protocol`), + KEY `sites_domain` (`site_domain`), + KEY `sites_forward` (`site_forward`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `tag_summary` ( + `ts_rc_id` int(11) DEFAULT NULL, + `ts_log_id` int(11) DEFAULT NULL, + `ts_rev_id` int(11) DEFAULT NULL, + `ts_tags` blob NOT NULL, + UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), + UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), + UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `templatelinks` ( + `tl_from` int(10) unsigned NOT NULL DEFAULT '0', + `tl_namespace` int(11) NOT NULL DEFAULT '0', + `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `tl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), + UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), + KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `text` ( + `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `old_text` mediumblob NOT NULL, + `old_flags` tinyblob NOT NULL, + PRIMARY KEY (`old_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread` ( + `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, + `thread_root` int(8) unsigned NOT NULL, + `thread_ancestor` int(8) unsigned NOT NULL, + `thread_parent` int(8) unsigned DEFAULT NULL, + `thread_summary_page` int(8) unsigned DEFAULT NULL, + `thread_subject` varchar(255) DEFAULT NULL, + `thread_author_id` int(10) unsigned DEFAULT NULL, + `thread_author_name` varchar(255) DEFAULT NULL, + `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_editedness` int(1) NOT NULL DEFAULT '0', + `thread_article_namespace` int(11) NOT NULL, + `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `thread_article_id` int(8) unsigned NOT NULL, + `thread_type` int(4) unsigned NOT NULL DEFAULT '0', + `thread_sortkey` varchar(255) NOT NULL DEFAULT '', + `thread_replies` int(8) DEFAULT '-1', + `thread_signature` tinyblob, + PRIMARY KEY (`thread_id`), + UNIQUE KEY `thread_root` (`thread_root`), + UNIQUE KEY `thread_root_2` (`thread_root`), + KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), + KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), + KEY `thread_article` (`thread_article_id`,`thread_sortkey`), + KEY `thread_modified` (`thread_modified`), + KEY `thread_created` (`thread_created`), + KEY `thread_summary_page` (`thread_summary_page`), + KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), + KEY `thread_sortkey` (`thread_sortkey`), + KEY `thread_parent` (`thread_parent`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_history` ( + `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `th_thread` int(10) unsigned NOT NULL, + `th_timestamp` varbinary(14) NOT NULL, + `th_user` int(10) unsigned NOT NULL, + `th_user_text` varchar(255) NOT NULL, + `th_change_type` int(10) unsigned NOT NULL, + `th_change_object` int(10) unsigned NOT NULL, + `th_change_comment` tinytext NOT NULL, + `th_content` longblob NOT NULL, + PRIMARY KEY (`th_id`), + KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), + KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), + KEY `th_user_text` (`th_user`,`th_user_text`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( + `tpr_thread` int(10) unsigned NOT NULL, + `tpr_relationship` varbinary(64) NOT NULL, + `tpr_title` varbinary(255) NOT NULL, + `tpr_type` varbinary(32) NOT NULL, + PRIMARY KEY (`tpr_thread`,`tpr_relationship`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_reaction` ( + `tr_thread` int(10) unsigned NOT NULL, + `tr_user` int(10) unsigned NOT NULL, + `tr_user_text` varbinary(255) NOT NULL, + `tr_type` varbinary(64) NOT NULL, + `tr_value` int(11) NOT NULL, + PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), + KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `trackbacks` ( + `tb_id` int(11) NOT NULL AUTO_INCREMENT, + `tb_page` int(11) DEFAULT NULL, + `tb_title` varchar(255) NOT NULL, + `tb_url` blob NOT NULL, + `tb_ex` text, + `tb_name` varchar(255) DEFAULT NULL, + PRIMARY KEY (`tb_id`), + KEY `tb_page` (`tb_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `transcache` ( + `tc_url` varbinary(255) NOT NULL, + `tc_contents` text, + `tc_time` binary(14) DEFAULT NULL, + UNIQUE KEY `tc_url_idx` (`tc_url`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `updatelog` ( + `ul_key` varchar(255) NOT NULL, + `ul_value` blob, + PRIMARY KEY (`ul_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `uploadstash` ( + `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `us_user` int(10) unsigned NOT NULL, + `us_key` varchar(255) NOT NULL, + `us_orig_path` varchar(255) NOT NULL, + `us_path` varchar(255) NOT NULL, + `us_source_type` varchar(50) DEFAULT NULL, + `us_timestamp` varbinary(14) NOT NULL, + `us_status` varchar(50) NOT NULL, + `us_size` int(10) unsigned NOT NULL, + `us_sha1` varchar(31) NOT NULL, + `us_mime` varchar(255) DEFAULT NULL, + `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `us_image_width` int(10) unsigned DEFAULT NULL, + `us_image_height` int(10) unsigned DEFAULT NULL, + `us_image_bits` smallint(5) unsigned DEFAULT NULL, + `us_chunk_inx` int(10) unsigned DEFAULT NULL, + `us_props` blob, + PRIMARY KEY (`us_id`), + UNIQUE KEY `us_key` (`us_key`), + KEY `us_user` (`us_user`), + KEY `us_timestamp` (`us_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user` ( + `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_password` tinyblob NOT NULL, + `user_newpassword` tinyblob NOT NULL, + `user_newpass_time` binary(14) DEFAULT NULL, + `user_email` tinytext NOT NULL, + `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `user_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', + `user_email_authenticated` binary(14) DEFAULT NULL, + `user_email_token` binary(32) DEFAULT NULL, + `user_email_token_expires` binary(14) DEFAULT NULL, + `user_registration` binary(14) DEFAULT NULL, + `user_editcount` int(11) DEFAULT NULL, + PRIMARY KEY (`user_id`), + UNIQUE KEY `user_name` (`user_name`), + KEY `user_email_token` (`user_email_token`), + KEY `user_email` (`user_email`(50)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_former_groups` ( + `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', + `ufg_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_groups` ( + `ug_user` int(10) unsigned NOT NULL DEFAULT '0', + `ug_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), + KEY `ug_group` (`ug_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_message_state` ( + `ums_user` int(10) unsigned NOT NULL, + `ums_thread` int(8) unsigned NOT NULL, + `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', + `ums_read_timestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`ums_user`,`ums_thread`), + KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_newtalk` ( + `user_id` int(10) unsigned NOT NULL DEFAULT '0', + `user_ip` varbinary(40) NOT NULL DEFAULT '', + `user_last_timestamp` varbinary(14) DEFAULT NULL, + KEY `un_user_id` (`user_id`), + KEY `un_user_ip` (`user_ip`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_properties` ( + `up_user` int(11) NOT NULL, + `up_property` varbinary(255) DEFAULT NULL, + `up_value` blob, + UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), + KEY `user_properties_property` (`up_property`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `valid_tag` ( + `vt_tag` varchar(255) NOT NULL, + PRIMARY KEY (`vt_tag`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `watchlist` ( + `wl_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `wl_user` int(10) unsigned NOT NULL, + `wl_namespace` int(11) NOT NULL DEFAULT '0', + `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`wl_id`), + UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), + KEY `namespace_title` (`wl_namespace`,`wl_title`), + KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + diff --git a/DeveloperDump/metawikitolearn.struct.sql b/DeveloperDump/metawikitolearn.struct.sql index 4160e46..daa02f6 100644 --- a/DeveloperDump/metawikitolearn.struct.sql +++ b/DeveloperDump/metawikitolearn.struct.sql @@ -1,1288 +1,1380 @@ - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; -/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; -/*!40103 SET TIME_ZONE='+00:00' */; -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `archive` ( - `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `ar_namespace` int(11) NOT NULL DEFAULT '0', - `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ar_text` mediumblob NOT NULL, - `ar_comment` varbinary(767) NOT NULL, - `ar_user` int(10) unsigned NOT NULL DEFAULT '0', - `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', - `ar_flags` tinyblob NOT NULL, - `ar_rev_id` int(10) unsigned DEFAULT NULL, - `ar_text_id` int(10) unsigned DEFAULT NULL, - `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `ar_len` int(10) unsigned DEFAULT NULL, - `ar_page_id` int(10) unsigned DEFAULT NULL, - `ar_parent_id` int(10) unsigned DEFAULT NULL, - `ar_sha1` varbinary(32) NOT NULL DEFAULT '', - `ar_content_model` varbinary(32) DEFAULT NULL, - `ar_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`ar_id`), - KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), - KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), - KEY `ar_revid` (`ar_rev_id`), - KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `category` ( - `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `cat_pages` int(11) NOT NULL DEFAULT '0', - `cat_subcats` int(11) NOT NULL DEFAULT '0', - `cat_files` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`cat_id`), - UNIQUE KEY `cat_title` (`cat_title`), - KEY `cat_pages` (`cat_pages`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `categorylinks` ( - `cl_from` int(10) unsigned NOT NULL DEFAULT '0', - `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', - `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `cl_collation` varbinary(32) NOT NULL DEFAULT '', - `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', - UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), - KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), - KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), - KEY `cl_collation` (`cl_collation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `change_tag` ( - `ct_rc_id` int(11) DEFAULT NULL, - `ct_log_id` int(11) DEFAULT NULL, - `ct_rev_id` int(11) DEFAULT NULL, - `ct_tag` varchar(255) NOT NULL, - `ct_params` blob, - UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), - UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), - UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), - KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_email_batch` ( - `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `eeb_user_id` int(10) unsigned NOT NULL, - `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', - `eeb_event_id` int(10) unsigned NOT NULL, - `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - PRIMARY KEY (`eeb_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`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_event` ( - `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_agent_id` int(10) unsigned DEFAULT NULL, - `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_page_namespace` int(10) unsigned DEFAULT NULL, - `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_extra` blob, - `event_page_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`event_id`), - KEY `echo_event_type` (`event_type`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_notification` ( - `notification_event` int(10) unsigned NOT NULL, - `notification_user` int(10) unsigned NOT NULL, - `notification_timestamp` binary(14) NOT NULL, - `notification_read_timestamp` binary(14) DEFAULT NULL, - `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', - `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `user_event` (`notification_user`,`notification_event`), - KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), - KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), - KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), - KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), - KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_target_page` ( - `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`etp_id`), - KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), - KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `externallinks` ( - `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `el_from` int(10) unsigned NOT NULL DEFAULT '0', - `el_to` blob NOT NULL, - `el_index` blob NOT NULL, - PRIMARY KEY (`el_id`), - KEY `el_from` (`el_from`,`el_to`(40)), - KEY `el_to` (`el_to`(60),`el_from`), - KEY `el_index` (`el_index`(60)) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `filearchive` ( - `fa_id` int(11) NOT NULL AUTO_INCREMENT, - `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', - `fa_storage_group` varbinary(16) DEFAULT NULL, - `fa_storage_key` varbinary(64) DEFAULT '', - `fa_deleted_user` int(11) DEFAULT NULL, - `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted_reason` varbinary(767) DEFAULT '', - `fa_size` int(10) unsigned DEFAULT '0', - `fa_width` int(11) DEFAULT '0', - `fa_height` int(11) DEFAULT '0', - `fa_metadata` mediumblob, - `fa_bits` int(11) DEFAULT '0', - `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `fa_minor_mime` varbinary(100) DEFAULT 'unknown', - `fa_description` varbinary(767) DEFAULT NULL, - `fa_user` int(10) unsigned DEFAULT '0', - `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `fa_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fa_id`), - KEY `fa_name` (`fa_name`,`fa_timestamp`), - KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), - KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), - KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), - KEY `fa_sha1` (`fa_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedimages` ( - `fi_rev_id` int(10) unsigned NOT NULL, - `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fi_img_timestamp` varbinary(14) DEFAULT NULL, - `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fi_rev_id`,`fi_name`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( - `fpc_page_id` int(10) unsigned NOT NULL, - `fpc_select` int(11) NOT NULL, - `fpc_override` tinyint(1) NOT NULL, - `fpc_level` varbinary(60) DEFAULT NULL, - `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', - PRIMARY KEY (`fpc_page_id`), - KEY `fpc_expiry` (`fpc_expiry`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( - `fpp_page_id` int(10) unsigned NOT NULL, - `fpp_quality` tinyint(1) NOT NULL, - `fpp_rev_id` int(10) unsigned NOT NULL, - `fpp_pending_since` varbinary(14) NOT NULL, - PRIMARY KEY (`fpp_page_id`,`fpp_quality`), - KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpages` ( - `fp_page_id` int(10) unsigned NOT NULL, - `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', - `fp_pending_since` varbinary(14) DEFAULT NULL, - `fp_stable` int(10) unsigned NOT NULL, - `fp_quality` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`fp_page_id`), - KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), - KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), - KEY `fp_pending_since` (`fp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs` ( - `fr_rev_id` int(10) unsigned NOT NULL, - `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', - `fr_page_id` int(10) unsigned NOT NULL, - `fr_user` int(10) unsigned NOT NULL, - `fr_timestamp` varbinary(14) NOT NULL, - `fr_quality` tinyint(1) NOT NULL DEFAULT '0', - `fr_tags` mediumblob NOT NULL, - `fr_flags` tinyblob NOT NULL, - `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fr_img_timestamp` varbinary(14) DEFAULT NULL, - `fr_img_sha1` varbinary(32) DEFAULT NULL, - PRIMARY KEY (`fr_rev_id`), - KEY `page_rev` (`fr_page_id`,`fr_rev_id`), - KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), - KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), - KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), - KEY `fr_img_sha1` (`fr_img_sha1`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( - `frp_user_id` int(10) unsigned NOT NULL, - `frp_user_params` mediumblob NOT NULL, - PRIMARY KEY (`frp_user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( - `frs_timestamp` varbinary(14) NOT NULL, - `frs_stat_key` varchar(255) NOT NULL, - `frs_stat_val` bigint(20) NOT NULL, - PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), - KEY `frs_timestamp` (`frs_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( - `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', - `ftr_namespace` int(11) NOT NULL DEFAULT '0', - `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), - KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( - `ft_rev_id` int(10) unsigned NOT NULL, - `ft_namespace` int(11) NOT NULL DEFAULT '0', - `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_revision` ( - `rev_id` binary(11) NOT NULL, - `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', - `rev_user_id` bigint(20) unsigned NOT NULL, - `rev_user_ip` varbinary(39) DEFAULT NULL, - `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_parent_id` binary(11) DEFAULT NULL, - `rev_flags` tinyblob NOT NULL, - `rev_content` mediumblob NOT NULL, - `rev_change_type` varbinary(255) DEFAULT NULL, - `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_mod_user_ip` varbinary(39) DEFAULT NULL, - `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_last_edit_id` binary(11) DEFAULT NULL, - `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_edit_user_ip` varbinary(39) DEFAULT NULL, - `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_content_length` int(11) NOT NULL DEFAULT '0', - `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`rev_id`), - UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), - KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), - KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_subscription` ( - `subscription_workflow_id` int(10) unsigned NOT NULL, - `subscription_user_id` bigint(20) unsigned NOT NULL, - `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), - KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_topic_list` ( - `topic_list_id` binary(11) NOT NULL, - `topic_id` binary(11) DEFAULT NULL, - UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), - KEY `flow_topic_list_topic_id` (`topic_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_node` ( - `tree_ancestor_id` binary(11) NOT NULL, - `tree_descendant_id` binary(11) NOT NULL, - `tree_depth` smallint(6) NOT NULL, - UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), - UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( - `tree_rev_descendant_id` binary(11) NOT NULL, - `tree_rev_id` binary(11) NOT NULL, - `tree_orig_user_id` bigint(20) unsigned NOT NULL, - `tree_orig_user_ip` varbinary(39) DEFAULT NULL, - `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tree_parent_id` binary(11) DEFAULT NULL, - PRIMARY KEY (`tree_rev_id`), - KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target_namespace` int(11) NOT NULL, - `ref_target_title` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_workflow` ( - `workflow_id` binary(11) NOT NULL, - `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_namespace` int(11) NOT NULL, - `workflow_page_id` int(10) unsigned NOT NULL, - `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_last_update_timestamp` binary(14) NOT NULL, - `workflow_lock_state` int(10) unsigned NOT NULL, - `workflow_type` varbinary(16) NOT NULL, - PRIMARY KEY (`workflow_id`), - KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), - KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `historical_thread` ( - `hthread_id` int(8) unsigned NOT NULL, - `hthread_revision` int(8) unsigned NOT NULL, - `hthread_contents` blob NOT NULL, - `hthread_change_type` int(4) unsigned NOT NULL, - `hthread_change_object` int(8) unsigned DEFAULT NULL, - PRIMARY KEY (`hthread_id`,`hthread_revision`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `image` ( - `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `img_size` int(10) unsigned NOT NULL DEFAULT '0', - `img_width` int(11) NOT NULL DEFAULT '0', - `img_height` int(11) NOT NULL DEFAULT '0', - `img_metadata` mediumblob NOT NULL, - `img_bits` int(11) NOT NULL DEFAULT '0', - `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `img_description` varbinary(767) NOT NULL, - `img_user` int(10) unsigned NOT NULL DEFAULT '0', - `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `img_timestamp` varbinary(14) NOT NULL DEFAULT '', - `img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`img_name`), - KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), - KEY `img_size` (`img_size`), - KEY `img_timestamp` (`img_timestamp`), - KEY `img_sha1` (`img_sha1`(10)), - KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `imagelinks` ( - `il_from` int(10) unsigned NOT NULL DEFAULT '0', - `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `il_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `il_from` (`il_from`,`il_to`), - UNIQUE KEY `il_to` (`il_to`,`il_from`), - KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `interwiki` ( - `iw_prefix` varchar(32) NOT NULL, - `iw_url` blob NOT NULL, - `iw_local` tinyint(1) NOT NULL, - `iw_trans` tinyint(4) NOT NULL DEFAULT '0', - `iw_api` blob NOT NULL, - `iw_wikiid` varchar(64) NOT NULL, - UNIQUE KEY `iw_prefix` (`iw_prefix`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ipblocks` ( - `ipb_id` int(11) NOT NULL AUTO_INCREMENT, - `ipb_address` tinyblob NOT NULL, - `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ipb_reason` varbinary(767) NOT NULL, - `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `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 DEFAULT '', - `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(11) DEFAULT NULL, - PRIMARY KEY (`ipb_id`), - UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `iwlinks` ( - `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', - `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', - `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `job` ( - `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `job_cmd` varbinary(60) NOT NULL DEFAULT '', - `job_namespace` int(11) NOT NULL, - `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `job_params` blob NOT NULL, - `job_timestamp` varbinary(14) DEFAULT NULL, - `job_random` int(10) unsigned NOT NULL DEFAULT '0', - `job_token` varbinary(32) NOT NULL DEFAULT '', - `job_token_timestamp` varbinary(14) DEFAULT NULL, - `job_sha1` varbinary(32) NOT NULL DEFAULT '', - `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', - PRIMARY KEY (`job_id`), - KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), - KEY `job_timestamp` (`job_timestamp`), - KEY `job_sha1` (`job_sha1`), - KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), - KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `l10n_cache` ( - `lc_lang` varbinary(32) NOT NULL, - `lc_key` varchar(255) NOT NULL, - `lc_value` mediumblob NOT NULL, - KEY `lc_lang_key` (`lc_lang`,`lc_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `langlinks` ( - `ll_from` int(10) unsigned NOT NULL DEFAULT '0', - `ll_lang` varbinary(20) NOT NULL DEFAULT '', - `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), - KEY `ll_lang` (`ll_lang`,`ll_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `log_search` ( - `ls_field` varbinary(32) NOT NULL, - `ls_value` varchar(255) NOT NULL, - `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', - UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), - KEY `ls_log_id` (`ls_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `logging` ( - `log_type` varbinary(32) NOT NULL, - `log_action` varbinary(32) NOT NULL, - `log_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - `log_user` int(10) unsigned NOT NULL DEFAULT '0', - `log_namespace` int(11) NOT NULL DEFAULT '0', - `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_comment` varbinary(767) NOT NULL DEFAULT '', - `log_params` blob NOT NULL, - `log_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_page` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`log_id`), - KEY `type_time` (`log_type`,`log_timestamp`), - KEY `user_time` (`log_user`,`log_timestamp`), - KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), - KEY `times` (`log_timestamp`), - KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), - KEY `log_page_id_time` (`log_page`,`log_timestamp`), - KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), - KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), - KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `math` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_outputhash` varbinary(16) NOT NULL, - `math_html_conservativeness` tinyint(4) NOT NULL, - `math_html` text, - `math_mathml` text, - UNIQUE KEY `math_inputhash` (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mathoid` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_input` text NOT NULL, - `math_tex` text, - `math_mathml` text, - `math_svg` text, - `math_style` tinyint(4) DEFAULT NULL, - `math_input_type` tinyint(4) DEFAULT NULL, - PRIMARY KEY (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `module_deps` ( - `md_module` varbinary(255) NOT NULL, - `md_skin` varbinary(32) NOT NULL, - `md_deps` mediumblob NOT NULL, - UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource` ( - `mr_resource` varbinary(255) NOT NULL, - `mr_lang` varbinary(32) NOT NULL, - `mr_blob` mediumblob NOT NULL, - `mr_timestamp` binary(14) NOT NULL, - UNIQUE KEY `mr_resource_lang` (`mr_resource`,`mr_lang`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource_links` ( - `mrl_resource` varbinary(255) NOT NULL, - `mrl_message` varbinary(255) NOT NULL, - UNIQUE KEY `mrl_message_resource` (`mrl_message`,`mrl_resource`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `objectcache` ( - `keyname` varbinary(255) NOT NULL DEFAULT '', - `value` mediumblob, - `exptime` datetime DEFAULT NULL, - UNIQUE KEY `keyname` (`keyname`), - KEY `exptime` (`exptime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `oldimage` ( - `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_size` int(10) unsigned NOT NULL DEFAULT '0', - `oi_width` int(11) NOT NULL DEFAULT '0', - `oi_height` int(11) NOT NULL DEFAULT '0', - `oi_bits` int(11) NOT NULL DEFAULT '0', - `oi_description` varbinary(767) NOT NULL, - `oi_user` int(10) unsigned NOT NULL DEFAULT '0', - `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `oi_metadata` mediumblob NOT NULL, - `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `oi_sha1` varbinary(32) NOT NULL DEFAULT '', - KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), - KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), - KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), - KEY `oi_sha1` (`oi_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page` ( - `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `page_namespace` int(11) NOT NULL, - `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `page_restrictions` tinyblob NOT NULL, - `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_random` double unsigned NOT NULL, - `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `page_latest` int(10) unsigned NOT NULL, - `page_len` int(10) unsigned NOT NULL, - `page_content_model` varbinary(32) DEFAULT NULL, - `page_links_updated` varbinary(14) DEFAULT NULL, - `page_lang` varbinary(35) DEFAULT NULL, - PRIMARY KEY (`page_id`), - UNIQUE KEY `name_title` (`page_namespace`,`page_title`), - KEY `page_random` (`page_random`), - KEY `page_len` (`page_len`), - KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_props` ( - `pp_page` int(11) NOT NULL, - `pp_propname` varbinary(60) NOT NULL, - `pp_value` blob NOT NULL, - `pp_sortkey` float DEFAULT NULL, - PRIMARY KEY (`pp_page`,`pp_propname`), - UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), - UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_restrictions` ( - `pr_page` int(11) NOT NULL, - `pr_type` varbinary(60) NOT NULL, - `pr_level` varbinary(60) NOT NULL, - `pr_cascade` tinyint(4) NOT NULL, - `pr_user` int(11) DEFAULT NULL, - `pr_expiry` varbinary(14) DEFAULT NULL, - `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`pr_page`,`pr_type`), - UNIQUE KEY `pr_id` (`pr_id`), - KEY `pr_typelevel` (`pr_type`,`pr_level`), - KEY `pr_level` (`pr_level`), - KEY `pr_cascade` (`pr_cascade`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pagelinks` ( - `pl_from` int(10) unsigned NOT NULL DEFAULT '0', - `pl_namespace` int(11) NOT NULL DEFAULT '0', - `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `pl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), - UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), - KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `protected_titles` ( - `pt_namespace` int(11) NOT NULL, - `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `pt_user` int(10) unsigned NOT NULL, - `pt_reason` varbinary(767) DEFAULT NULL, - `pt_timestamp` binary(14) NOT NULL, - `pt_expiry` varbinary(14) NOT NULL DEFAULT '', - `pt_create_perm` varbinary(60) NOT NULL, - PRIMARY KEY (`pt_namespace`,`pt_title`), - KEY `pt_timestamp` (`pt_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache` ( - `qc_type` varbinary(32) NOT NULL, - `qc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qc_namespace` int(11) NOT NULL DEFAULT '0', - `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qc_type` (`qc_type`,`qc_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache_info` ( - `qci_type` varbinary(32) NOT NULL DEFAULT '', - `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - UNIQUE KEY `qci_type` (`qci_type`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycachetwo` ( - `qcc_type` varbinary(32) NOT NULL, - `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qcc_namespace` int(11) NOT NULL DEFAULT '0', - `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', - `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qcc_type` (`qcc_type`,`qcc_value`), - KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), - KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `recentchanges` ( - `rc_id` int(11) NOT NULL AUTO_INCREMENT, - `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', - `rc_user` int(10) unsigned NOT NULL DEFAULT '0', - `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rc_namespace` int(11) NOT NULL, - `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rc_comment` varbinary(767) NOT NULL DEFAULT '', - `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', - `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_ip` varbinary(40) NOT NULL DEFAULT '', - `rc_old_len` int(11) DEFAULT NULL, - `rc_new_len` int(11) DEFAULT NULL, - `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_log_type` varbinary(255) DEFAULT NULL, - `rc_log_action` varbinary(255) DEFAULT NULL, - `rc_params` blob, - `rc_source` varbinary(16) NOT NULL DEFAULT '', - PRIMARY KEY (`rc_id`), - KEY `rc_timestamp` (`rc_timestamp`), - KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), - KEY `rc_cur_id` (`rc_cur_id`), - KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), - KEY `rc_ip` (`rc_ip`), - KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), - KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `redirect` ( - `rd_from` int(10) unsigned NOT NULL DEFAULT '0', - `rd_namespace` int(11) NOT NULL DEFAULT '0', - `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rd_interwiki` varchar(32) DEFAULT NULL, - `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - PRIMARY KEY (`rd_from`), - KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `revision` ( - `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `rev_page` int(10) unsigned NOT NULL, - `rev_text_id` int(10) unsigned NOT NULL, - `rev_comment` varbinary(767) NOT NULL, - `rev_user` int(10) unsigned NOT NULL DEFAULT '0', - `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_len` int(10) unsigned DEFAULT NULL, - `rev_parent_id` int(10) unsigned DEFAULT NULL, - `rev_sha1` varbinary(32) NOT NULL DEFAULT '', - `rev_content_model` varbinary(32) DEFAULT NULL, - `rev_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`rev_id`), - UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), - KEY `rev_timestamp` (`rev_timestamp`), - KEY `page_timestamp` (`rev_page`,`rev_timestamp`), - KEY `user_timestamp` (`rev_user`,`rev_timestamp`), - KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), - KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `revtag` ( - `rt_type` varbinary(60) NOT NULL, - `rt_page` int(11) NOT NULL, - `rt_revision` int(11) NOT NULL, - `rt_value` blob, - UNIQUE KEY `rt_type_page_revision` (`rt_type`,`rt_page`,`rt_revision`), - KEY `rt_revision_type` (`rt_revision`,`rt_type`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `searchindex` ( - `si_page` int(10) unsigned NOT NULL, - `si_title` varchar(255) NOT NULL DEFAULT '', - `si_text` mediumtext NOT NULL, - FULLTEXT KEY `si_title` (`si_title`), - FULLTEXT KEY `si_text` (`si_text`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_identifiers` ( - `si_site` int(10) unsigned NOT NULL, - `si_type` varbinary(32) NOT NULL, - `si_key` varbinary(32) NOT NULL, - UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), - KEY `site_ids_site` (`si_site`), - KEY `site_ids_key` (`si_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_stats` ( - `ss_row_id` int(10) unsigned NOT NULL, - `ss_total_edits` bigint(20) unsigned DEFAULT '0', - `ss_good_articles` bigint(20) unsigned DEFAULT '0', - `ss_total_pages` bigint(20) DEFAULT '-1', - `ss_users` bigint(20) DEFAULT '-1', - `ss_active_users` bigint(20) DEFAULT '-1', - `ss_images` int(11) DEFAULT '0', - UNIQUE KEY `ss_row_id` (`ss_row_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `sites` ( - `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `site_global_key` varbinary(32) NOT NULL, - `site_type` varbinary(32) NOT NULL, - `site_group` varbinary(32) NOT NULL, - `site_source` varbinary(32) NOT NULL, - `site_language` varbinary(32) NOT NULL, - `site_protocol` varbinary(32) NOT NULL, - `site_domain` varchar(255) NOT NULL, - `site_data` blob NOT NULL, - `site_forward` tinyint(1) NOT NULL, - `site_config` blob NOT NULL, - PRIMARY KEY (`site_id`), - UNIQUE KEY `sites_global_key` (`site_global_key`), - KEY `sites_type` (`site_type`), - KEY `sites_group` (`site_group`), - KEY `sites_source` (`site_source`), - KEY `sites_language` (`site_language`), - KEY `sites_protocol` (`site_protocol`), - KEY `sites_domain` (`site_domain`), - KEY `sites_forward` (`site_forward`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `tag_summary` ( - `ts_rc_id` int(11) DEFAULT NULL, - `ts_log_id` int(11) DEFAULT NULL, - `ts_rev_id` int(11) DEFAULT NULL, - `ts_tags` blob NOT NULL, - UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), - UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), - UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `templatelinks` ( - `tl_from` int(10) unsigned NOT NULL DEFAULT '0', - `tl_namespace` int(11) NOT NULL DEFAULT '0', - `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `tl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), - UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), - KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `text` ( - `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `old_text` mediumblob NOT NULL, - `old_flags` tinyblob NOT NULL, - PRIMARY KEY (`old_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread` ( - `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, - `thread_root` int(8) unsigned NOT NULL, - `thread_ancestor` int(8) unsigned NOT NULL, - `thread_parent` int(8) unsigned DEFAULT NULL, - `thread_summary_page` int(8) unsigned DEFAULT NULL, - `thread_subject` varchar(255) DEFAULT NULL, - `thread_author_id` int(10) unsigned DEFAULT NULL, - `thread_author_name` varchar(255) DEFAULT NULL, - `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_editedness` int(1) NOT NULL DEFAULT '0', - `thread_article_namespace` int(11) NOT NULL, - `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `thread_article_id` int(8) unsigned NOT NULL, - `thread_type` int(4) unsigned NOT NULL DEFAULT '0', - `thread_sortkey` varchar(255) NOT NULL DEFAULT '', - `thread_replies` int(8) DEFAULT '-1', - `thread_signature` tinyblob, - PRIMARY KEY (`thread_id`), - UNIQUE KEY `thread_root` (`thread_root`), - UNIQUE KEY `thread_root_2` (`thread_root`), - KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), - KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), - KEY `thread_article` (`thread_article_id`,`thread_sortkey`), - KEY `thread_modified` (`thread_modified`), - KEY `thread_created` (`thread_created`), - KEY `thread_summary_page` (`thread_summary_page`), - KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), - KEY `thread_sortkey` (`thread_sortkey`), - KEY `thread_parent` (`thread_parent`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_history` ( - `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `th_thread` int(10) unsigned NOT NULL, - `th_timestamp` varbinary(14) NOT NULL, - `th_user` int(10) unsigned NOT NULL, - `th_user_text` varchar(255) NOT NULL, - `th_change_type` int(10) unsigned NOT NULL, - `th_change_object` int(10) unsigned NOT NULL, - `th_change_comment` tinytext NOT NULL, - `th_content` longblob NOT NULL, - PRIMARY KEY (`th_id`), - KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), - KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), - KEY `th_user_text` (`th_user`,`th_user_text`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( - `tpr_thread` int(10) unsigned NOT NULL, - `tpr_relationship` varbinary(64) NOT NULL, - `tpr_title` varbinary(255) NOT NULL, - `tpr_type` varbinary(32) NOT NULL, - PRIMARY KEY (`tpr_thread`,`tpr_relationship`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_reaction` ( - `tr_thread` int(10) unsigned NOT NULL, - `tr_user` int(10) unsigned NOT NULL, - `tr_user_text` varbinary(255) NOT NULL, - `tr_type` varbinary(64) NOT NULL, - `tr_value` int(11) NOT NULL, - PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), - KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `transcache` ( - `tc_url` varbinary(255) NOT NULL, - `tc_contents` text, - `tc_time` binary(14) DEFAULT NULL, - UNIQUE KEY `tc_url_idx` (`tc_url`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_groupreviews` ( - `tgr_group` varchar(200) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tgr_lang` varchar(20) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tgr_state` varbinary(32) NOT NULL, - PRIMARY KEY (`tgr_group`,`tgr_lang`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_groupstats` ( - `tgs_group` varchar(100) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tgs_lang` varchar(20) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tgs_total` int(5) unsigned DEFAULT NULL, - `tgs_translated` int(5) unsigned DEFAULT NULL, - `tgs_fuzzy` int(5) unsigned DEFAULT NULL, - `tgs_proofread` int(5) unsigned DEFAULT NULL, - PRIMARY KEY (`tgs_group`,`tgs_lang`), - KEY `tgs_lang` (`tgs_lang`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_messageindex` ( - `tmi_key` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tmi_value` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `tmi_key` (`tmi_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_metadata` ( - `tmd_group` varchar(200) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tmd_key` varchar(20) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tmd_value` mediumblob NOT NULL, - PRIMARY KEY (`tmd_group`,`tmd_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_reviews` ( - `trr_user` int(11) NOT NULL, - `trr_page` int(11) NOT NULL, - `trr_revision` int(11) NOT NULL, - UNIQUE KEY `trr_user_page_revision` (`trr_user`,`trr_page`,`trr_revision`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_sections` ( - `trs_page` int(10) unsigned NOT NULL, - `trs_key` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `trs_text` mediumblob NOT NULL, - `trs_order` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`trs_page`,`trs_key`), - KEY `trs_page_order` (`trs_page`,`trs_order`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_stash` ( - `ts_user` int(11) NOT NULL, - `ts_namespace` int(11) NOT NULL, - `ts_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `ts_value` mediumblob NOT NULL, - `ts_metadata` mediumblob NOT NULL, - PRIMARY KEY (`ts_user`,`ts_namespace`,`ts_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_tmf` ( - `tmf_sid` int(10) unsigned NOT NULL, - `tmf_text` text, - FULLTEXT KEY `tmf_text` (`tmf_text`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_tms` ( - `tms_sid` int(10) unsigned NOT NULL AUTO_INCREMENT, - `tms_lang` varchar(20) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tms_len` int(10) unsigned NOT NULL, - `tms_text` mediumblob NOT NULL, - `tms_context` mediumblob NOT NULL, - PRIMARY KEY (`tms_sid`), - KEY `tms_lang_len` (`tms_lang`,`tms_len`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_tmt` ( - `tmt_sid` int(10) unsigned NOT NULL, - `tmt_lang` varchar(20) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tmt_text` mediumblob NOT NULL, - UNIQUE KEY `tmt_sid_lang` (`tmt_sid`,`tmt_lang`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `updatelog` ( - `ul_key` varchar(255) NOT NULL, - `ul_value` blob, - PRIMARY KEY (`ul_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uploadstash` ( - `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `us_user` int(10) unsigned NOT NULL, - `us_key` varchar(255) NOT NULL, - `us_orig_path` varchar(255) NOT NULL, - `us_path` varchar(255) NOT NULL, - `us_source_type` varchar(50) DEFAULT NULL, - `us_timestamp` varbinary(14) NOT NULL, - `us_status` varchar(50) NOT NULL, - `us_chunk_inx` int(10) unsigned DEFAULT NULL, - `us_props` blob, - `us_size` int(10) unsigned NOT NULL, - `us_sha1` varchar(31) NOT NULL, - `us_mime` varchar(255) DEFAULT NULL, - `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `us_image_width` int(10) unsigned DEFAULT NULL, - `us_image_height` int(10) unsigned DEFAULT NULL, - `us_image_bits` smallint(5) unsigned DEFAULT NULL, - PRIMARY KEY (`us_id`), - UNIQUE KEY `us_key` (`us_key`), - KEY `us_user` (`us_user`), - KEY `us_timestamp` (`us_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user` ( - `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_password` tinyblob NOT NULL, - `user_newpassword` tinyblob NOT NULL, - `user_newpass_time` binary(14) DEFAULT NULL, - `user_email` tinytext NOT NULL, - `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `user_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', - `user_email_authenticated` binary(14) DEFAULT NULL, - `user_email_token` binary(32) DEFAULT NULL, - `user_email_token_expires` binary(14) DEFAULT NULL, - `user_registration` binary(14) DEFAULT NULL, - `user_editcount` int(11) DEFAULT NULL, - PRIMARY KEY (`user_id`), - UNIQUE KEY `user_name` (`user_name`), - KEY `user_email_token` (`user_email_token`), - KEY `user_email` (`user_email`(50)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_former_groups` ( - `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', - `ufg_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_groups` ( - `ug_user` int(10) unsigned NOT NULL DEFAULT '0', - `ug_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), - KEY `ug_group` (`ug_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_message_state` ( - `ums_user` int(10) unsigned NOT NULL, - `ums_thread` int(8) unsigned NOT NULL, - `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', - `ums_read_timestamp` varbinary(14) DEFAULT NULL, - PRIMARY KEY (`ums_user`,`ums_thread`), - KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_newtalk` ( - `user_id` int(10) unsigned NOT NULL DEFAULT '0', - `user_ip` varbinary(40) NOT NULL DEFAULT '', - `user_last_timestamp` varbinary(14) DEFAULT NULL, - KEY `un_user_id` (`user_id`), - KEY `un_user_ip` (`user_ip`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_properties` ( - `up_user` int(11) NOT NULL, - `up_property` varbinary(255) NOT NULL, - `up_value` blob, - UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), - KEY `user_properties_property` (`up_property`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `valid_tag` ( - `vt_tag` varchar(255) NOT NULL, - PRIMARY KEY (`vt_tag`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `watchlist` ( - `wl_user` int(10) unsigned NOT NULL, - `wl_namespace` int(11) NOT NULL DEFAULT '0', - `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, - UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), - KEY `namespace_title` (`wl_namespace`,`wl_title`), - KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - -DROP INDEX flow_ext_ref_idx_v2 ON flow_ext_ref; DROP INDEX flow_ext_ref_revision_v2 ON flow_ext_ref; ALTER TABLE flow_ext_ref CHANGE ref_target ref_target BLOB NOT NULL; CREATE INDEX flow_ext_ref_idx_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_type, ref_target(255), ref_src_object_type, ref_src_object_id); CREATE INDEX flow_ext_ref_revision_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_src_object_type, ref_src_object_id, ref_type, ref_target(255)); + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `archive` ( + `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `ar_namespace` int(11) NOT NULL DEFAULT '0', + `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ar_text` mediumblob NOT NULL, + `ar_comment` varbinary(767) NOT NULL, + `ar_user` int(10) unsigned NOT NULL DEFAULT '0', + `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', + `ar_flags` tinyblob NOT NULL, + `ar_rev_id` int(10) unsigned DEFAULT NULL, + `ar_text_id` int(10) unsigned DEFAULT NULL, + `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `ar_len` int(10) unsigned DEFAULT NULL, + `ar_page_id` int(10) unsigned DEFAULT NULL, + `ar_parent_id` int(10) unsigned DEFAULT NULL, + `ar_sha1` varbinary(32) NOT NULL DEFAULT '', + `ar_content_format` varbinary(64) DEFAULT NULL, + `ar_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`ar_id`), + KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), + KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), + KEY `ar_revid` (`ar_rev_id`), + KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_commentmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `comment_id` (`comment_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_comments` ( + `comment_ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_post_ID` bigint(20) unsigned NOT NULL DEFAULT '0', + `comment_author` tinytext NOT NULL, + `comment_author_email` varchar(100) NOT NULL DEFAULT '', + `comment_author_url` varchar(200) NOT NULL DEFAULT '', + `comment_author_IP` varchar(100) NOT NULL DEFAULT '', + `comment_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_content` text NOT NULL, + `comment_karma` int(11) NOT NULL DEFAULT '0', + `comment_approved` varchar(20) NOT NULL DEFAULT '1', + `comment_agent` varchar(255) NOT NULL DEFAULT '', + `comment_type` varchar(20) NOT NULL DEFAULT '', + `comment_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`comment_ID`), + KEY `comment_post_ID` (`comment_post_ID`), + KEY `comment_approved_date_gmt` (`comment_approved`,`comment_date_gmt`), + KEY `comment_date_gmt` (`comment_date_gmt`), + KEY `comment_parent` (`comment_parent`), + KEY `comment_author_email` (`comment_author_email`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_links` ( + `link_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `link_url` varchar(255) NOT NULL DEFAULT '', + `link_name` varchar(255) NOT NULL DEFAULT '', + `link_image` varchar(255) NOT NULL DEFAULT '', + `link_target` varchar(25) NOT NULL DEFAULT '', + `link_description` varchar(255) NOT NULL DEFAULT '', + `link_visible` varchar(20) NOT NULL DEFAULT 'Y', + `link_owner` bigint(20) unsigned NOT NULL DEFAULT '1', + `link_rating` int(11) NOT NULL DEFAULT '0', + `link_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `link_rel` varchar(255) NOT NULL DEFAULT '', + `link_notes` mediumtext NOT NULL, + `link_rss` varchar(255) NOT NULL DEFAULT '', + PRIMARY KEY (`link_id`), + KEY `link_visible` (`link_visible`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_options` ( + `option_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `option_name` varchar(64) NOT NULL DEFAULT '', + `option_value` longtext NOT NULL, + `autoload` varchar(20) NOT NULL DEFAULT 'yes', + PRIMARY KEY (`option_id`), + UNIQUE KEY `option_name` (`option_name`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_postmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `post_id` (`post_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_posts` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_author` bigint(20) unsigned NOT NULL DEFAULT '0', + `post_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content` longtext NOT NULL, + `post_title` text NOT NULL, + `post_excerpt` text NOT NULL, + `post_status` varchar(20) NOT NULL DEFAULT 'publish', + `comment_status` varchar(20) NOT NULL DEFAULT 'open', + `ping_status` varchar(20) NOT NULL DEFAULT 'open', + `post_password` varchar(20) NOT NULL DEFAULT '', + `post_name` varchar(200) NOT NULL DEFAULT '', + `to_ping` text NOT NULL, + `pinged` text NOT NULL, + `post_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_modified_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content_filtered` longtext NOT NULL, + `post_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `guid` varchar(255) NOT NULL DEFAULT '', + `menu_order` int(11) NOT NULL DEFAULT '0', + `post_type` varchar(20) NOT NULL DEFAULT 'post', + `post_mime_type` varchar(100) NOT NULL DEFAULT '', + `comment_count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`), + KEY `post_name` (`post_name`), + KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`ID`), + KEY `post_parent` (`post_parent`), + KEY `post_author` (`post_author`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_relationships` ( + `object_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_taxonomy_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`object_id`,`term_taxonomy_id`), + KEY `term_taxonomy_id` (`term_taxonomy_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_taxonomy` ( + `term_taxonomy_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `term_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `taxonomy` varchar(32) NOT NULL DEFAULT '', + `description` longtext NOT NULL, + `parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_taxonomy_id`), + UNIQUE KEY `term_id_taxonomy` (`term_id`,`taxonomy`), + KEY `taxonomy` (`taxonomy`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_terms` ( + `term_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(200) NOT NULL DEFAULT '', + `slug` varchar(200) NOT NULL DEFAULT '', + `term_group` bigint(10) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_id`), + KEY `name` (`name`), + KEY `slug` (`slug`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_usermeta` ( + `umeta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`umeta_id`), + KEY `user_id` (`user_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_users` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_login` varchar(60) NOT NULL DEFAULT '', + `user_pass` varchar(64) NOT NULL DEFAULT '', + `user_nicename` varchar(50) NOT NULL DEFAULT '', + `user_email` varchar(100) NOT NULL DEFAULT '', + `user_url` varchar(100) NOT NULL DEFAULT '', + `user_registered` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `user_activation_key` varchar(60) NOT NULL DEFAULT '', + `user_status` int(11) NOT NULL DEFAULT '0', + `display_name` varchar(250) NOT NULL DEFAULT '', + PRIMARY KEY (`ID`), + KEY `user_login_key` (`user_login`), + KEY `user_nicename` (`user_nicename`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `bot_passwords` ( + `bp_user` int(11) NOT NULL, + `bp_app_id` varbinary(32) 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_restrictions` blob NOT NULL, + `bp_grants` blob NOT NULL, + PRIMARY KEY (`bp_user`,`bp_app_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `category` ( + `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `cat_pages` int(11) NOT NULL DEFAULT '0', + `cat_subcats` int(11) NOT NULL DEFAULT '0', + `cat_files` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`cat_id`), + UNIQUE KEY `cat_title` (`cat_title`), + KEY `cat_pages` (`cat_pages`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `categorylinks` ( + `cl_from` int(10) unsigned NOT NULL DEFAULT '0', + `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', + `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `cl_collation` varbinary(32) NOT NULL DEFAULT '', + `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', + UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), + KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), + KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), + KEY `cl_collation_ext` (`cl_collation`,`cl_to`,`cl_type`,`cl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `change_tag` ( + `ct_rc_id` int(11) DEFAULT NULL, + `ct_log_id` int(11) DEFAULT NULL, + `ct_rev_id` int(11) DEFAULT NULL, + `ct_tag` varchar(255) NOT NULL, + `ct_params` blob, + UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), + UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), + UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), + KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_email_batch` ( + `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `eeb_user_id` int(10) unsigned NOT NULL, + `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', + `eeb_event_id` int(10) unsigned NOT NULL, + `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eeb_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`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_event` ( + `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_agent_id` int(10) unsigned DEFAULT NULL, + `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_page_namespace` int(10) unsigned DEFAULT NULL, + `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_extra` blob, + `event_page_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`event_id`), + KEY `echo_event_type` (`event_type`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_notification` ( + `notification_event` int(10) unsigned NOT NULL, + `notification_user` int(10) unsigned NOT NULL, + `notification_timestamp` binary(14) NOT NULL, + `notification_read_timestamp` binary(14) DEFAULT NULL, + `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', + `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `user_event` (`notification_user`,`notification_event`), + KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), + KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), + KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), + KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), + KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_target_page` ( + `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`etp_id`), + KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), + KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `external_user` ( + `eu_local_id` int(10) unsigned NOT NULL, + `eu_external_id` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eu_local_id`), + UNIQUE KEY `eu_external_id` (`eu_external_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `externallinks` ( + `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `el_from` int(10) unsigned NOT NULL DEFAULT '0', + `el_to` blob NOT NULL, + `el_index` blob NOT NULL, + PRIMARY KEY (`el_id`), + KEY `el_from` (`el_from`,`el_to`(40)), + KEY `el_to` (`el_to`(60),`el_from`), + KEY `el_index` (`el_index`(60)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `filearchive` ( + `fa_id` int(11) NOT NULL AUTO_INCREMENT, + `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', + `fa_storage_group` varbinary(16) DEFAULT NULL, + `fa_storage_key` varbinary(64) DEFAULT '', + `fa_deleted_user` int(11) DEFAULT NULL, + `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted_reason` varbinary(767) DEFAULT '', + `fa_size` int(10) unsigned DEFAULT '0', + `fa_width` int(11) DEFAULT '0', + `fa_height` int(11) DEFAULT '0', + `fa_metadata` mediumblob, + `fa_bits` int(11) DEFAULT '0', + `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `fa_minor_mime` varbinary(100) DEFAULT 'unknown', + `fa_description` varbinary(767) DEFAULT NULL, + `fa_user` int(10) unsigned DEFAULT '0', + `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `fa_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fa_id`), + KEY `fa_name` (`fa_name`,`fa_timestamp`), + KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), + KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), + KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), + KEY `fa_sha1` (`fa_sha1`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedimages` ( + `fi_rev_id` int(10) unsigned NOT NULL, + `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fi_img_timestamp` varbinary(14) DEFAULT NULL, + `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fi_rev_id`,`fi_name`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( + `fpc_page_id` int(10) unsigned NOT NULL, + `fpc_select` int(11) NOT NULL, + `fpc_override` tinyint(1) NOT NULL, + `fpc_level` varbinary(60) DEFAULT NULL, + `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', + PRIMARY KEY (`fpc_page_id`), + KEY `fpc_expiry` (`fpc_expiry`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( + `fpp_page_id` int(10) unsigned NOT NULL, + `fpp_quality` tinyint(1) NOT NULL, + `fpp_rev_id` int(10) unsigned NOT NULL, + `fpp_pending_since` varbinary(14) NOT NULL, + PRIMARY KEY (`fpp_page_id`,`fpp_quality`), + KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpages` ( + `fp_page_id` int(10) unsigned NOT NULL, + `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', + `fp_pending_since` varbinary(14) DEFAULT NULL, + `fp_stable` int(10) unsigned NOT NULL, + `fp_quality` tinyint(1) DEFAULT NULL, + PRIMARY KEY (`fp_page_id`), + KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), + KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), + KEY `fp_pending_since` (`fp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs` ( + `fr_rev_id` int(10) unsigned NOT NULL, + `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', + `fr_page_id` int(10) unsigned NOT NULL, + `fr_user` int(10) unsigned NOT NULL, + `fr_timestamp` varbinary(14) NOT NULL, + `fr_quality` tinyint(1) NOT NULL DEFAULT '0', + `fr_tags` mediumblob NOT NULL, + `fr_flags` tinyblob NOT NULL, + `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fr_img_timestamp` varbinary(14) DEFAULT NULL, + `fr_img_sha1` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`fr_rev_id`), + KEY `page_rev` (`fr_page_id`,`fr_rev_id`), + KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), + KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), + KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), + KEY `fr_img_sha1` (`fr_img_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( + `frp_user_id` int(10) unsigned NOT NULL, + `frp_user_params` mediumblob NOT NULL, + PRIMARY KEY (`frp_user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( + `frs_timestamp` varbinary(14) NOT NULL, + `frs_stat_key` varchar(255) NOT NULL, + `frs_stat_val` bigint(20) NOT NULL, + PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), + KEY `frs_timestamp` (`frs_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( + `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', + `ftr_namespace` int(11) NOT NULL DEFAULT '0', + `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), + KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( + `ft_rev_id` int(10) unsigned NOT NULL, + `ft_namespace` int(11) NOT NULL DEFAULT '0', + `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target` blob NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`(255),`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`(255)) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_revision` ( + `rev_id` binary(11) NOT NULL, + `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', + `rev_user_id` bigint(20) unsigned NOT NULL, + `rev_user_ip` varbinary(39) DEFAULT NULL, + `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_parent_id` binary(11) DEFAULT NULL, + `rev_flags` tinyblob NOT NULL, + `rev_content` mediumblob NOT NULL, + `rev_change_type` varbinary(255) DEFAULT NULL, + `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_mod_user_ip` varbinary(39) DEFAULT NULL, + `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_last_edit_id` binary(11) DEFAULT NULL, + `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_edit_user_ip` varbinary(39) DEFAULT NULL, + `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_content_length` int(11) NOT NULL DEFAULT '0', + `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`rev_id`), + UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), + KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), + KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_subscription` ( + `subscription_workflow_id` int(10) unsigned NOT NULL, + `subscription_user_id` bigint(20) unsigned NOT NULL, + `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), + KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_topic_list` ( + `topic_list_id` binary(11) NOT NULL, + `topic_id` binary(11) DEFAULT NULL, + UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), + KEY `flow_topic_list_topic_id` (`topic_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_node` ( + `tree_ancestor_id` binary(11) NOT NULL, + `tree_descendant_id` binary(11) NOT NULL, + `tree_depth` smallint(6) NOT NULL, + UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), + UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( + `tree_rev_descendant_id` binary(11) NOT NULL, + `tree_rev_id` binary(11) NOT NULL, + `tree_orig_user_id` bigint(20) unsigned NOT NULL, + `tree_orig_user_ip` varbinary(39) DEFAULT NULL, + `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `tree_parent_id` binary(11) DEFAULT NULL, + PRIMARY KEY (`tree_rev_id`), + KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target_namespace` int(11) NOT NULL, + `ref_target_title` varbinary(255) NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_workflow` ( + `workflow_id` binary(11) NOT NULL, + `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_namespace` int(11) NOT NULL, + `workflow_page_id` int(10) unsigned NOT NULL, + `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_last_update_timestamp` binary(14) NOT NULL, + `workflow_lock_state` int(10) unsigned NOT NULL, + `workflow_type` varbinary(16) NOT NULL, + PRIMARY KEY (`workflow_id`), + KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), + KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `historical_thread` ( + `hthread_id` int(8) unsigned NOT NULL, + `hthread_revision` int(8) unsigned NOT NULL, + `hthread_contents` blob NOT NULL, + `hthread_change_type` int(4) unsigned NOT NULL, + `hthread_change_object` int(8) unsigned DEFAULT NULL, + PRIMARY KEY (`hthread_id`,`hthread_revision`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `image` ( + `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `img_size` int(10) unsigned NOT NULL DEFAULT '0', + `img_width` int(11) NOT NULL DEFAULT '0', + `img_height` int(11) NOT NULL DEFAULT '0', + `img_metadata` mediumblob NOT NULL, + `img_bits` int(11) NOT NULL DEFAULT '0', + `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `img_description` varbinary(767) NOT NULL, + `img_user` int(10) unsigned NOT NULL DEFAULT '0', + `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `img_timestamp` varbinary(14) NOT NULL DEFAULT '', + `img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`img_name`), + KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), + KEY `img_size` (`img_size`), + KEY `img_timestamp` (`img_timestamp`), + KEY `img_sha1` (`img_sha1`), + KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `imagelinks` ( + `il_from` int(10) unsigned NOT NULL DEFAULT '0', + `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `il_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `il_from` (`il_from`,`il_to`), + UNIQUE KEY `il_to` (`il_to`,`il_from`), + KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `interwiki` ( + `iw_prefix` varchar(32) NOT NULL, + `iw_url` blob NOT NULL, + `iw_api` blob NOT NULL, + `iw_wikiid` varchar(64) NOT NULL, + `iw_local` tinyint(1) NOT NULL, + `iw_trans` tinyint(4) NOT NULL DEFAULT '0', + UNIQUE KEY `iw_prefix` (`iw_prefix`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `ipblocks` ( + `ipb_id` int(11) NOT NULL AUTO_INCREMENT, + `ipb_address` tinyblob NOT NULL, + `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ipb_reason` varbinary(767) NOT NULL, + `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `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 DEFAULT '', + `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(11) DEFAULT NULL, + PRIMARY KEY (`ipb_id`), + UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), + 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 AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `iwlinks` ( + `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', + `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', + `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), + 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=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `job` ( + `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `job_cmd` varbinary(60) NOT NULL DEFAULT '', + `job_namespace` int(11) NOT NULL, + `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `job_params` blob NOT NULL, + `job_timestamp` varbinary(14) DEFAULT NULL, + `job_random` int(10) unsigned NOT NULL DEFAULT '0', + `job_token` varbinary(32) NOT NULL DEFAULT '', + `job_token_timestamp` varbinary(14) DEFAULT NULL, + `job_sha1` varbinary(32) NOT NULL DEFAULT '', + `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`job_id`), + KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), + KEY `job_timestamp` (`job_timestamp`), + KEY `job_sha1` (`job_sha1`), + KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), + KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `l10n_cache` ( + `lc_lang` varbinary(32) NOT NULL, + `lc_key` varchar(255) NOT NULL, + `lc_value` mediumblob NOT NULL, + KEY `lc_lang_key` (`lc_lang`,`lc_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `langlinks` ( + `ll_from` int(10) unsigned NOT NULL DEFAULT '0', + `ll_lang` varbinary(20) NOT NULL DEFAULT '', + `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), + KEY `ll_lang` (`ll_lang`,`ll_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `log_search` ( + `ls_field` varbinary(32) NOT NULL, + `ls_value` varchar(255) NOT NULL, + `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', + UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), + KEY `ls_log_id` (`ls_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `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_user` int(10) unsigned NOT NULL DEFAULT '0', + `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_namespace` int(11) NOT NULL DEFAULT '0', + `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_page` int(10) unsigned DEFAULT NULL, + `log_comment` varbinary(767) NOT NULL DEFAULT '', + `log_params` blob NOT NULL, + `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`log_id`), + KEY `type_time` (`log_type`,`log_timestamp`), + KEY `user_time` (`log_user`,`log_timestamp`), + KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), + KEY `times` (`log_timestamp`), + KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), + KEY `log_page_id_time` (`log_page`,`log_timestamp`), + KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), + KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), + KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `math` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_outputhash` varbinary(16) NOT NULL, + `math_html_conservativeness` tinyint(4) NOT NULL, + `math_html` text, + `math_mathml` text, + UNIQUE KEY `math_inputhash` (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `mathoid` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_input` text NOT NULL, + `math_tex` text, + `math_mathml` text, + `math_svg` text, + `math_style` tinyint(4) DEFAULT NULL, + `math_input_type` tinyint(4) DEFAULT NULL, + PRIMARY KEY (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `module_deps` ( + `md_module` varbinary(255) NOT NULL, + `md_skin` varbinary(32) NOT NULL, + `md_deps` mediumblob NOT NULL, + UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `objectcache` ( + `keyname` varbinary(255) NOT NULL DEFAULT '', + `value` mediumblob, + `exptime` datetime DEFAULT NULL, + PRIMARY KEY (`keyname`), + KEY `exptime` (`exptime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `oldimage` ( + `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_size` int(10) unsigned NOT NULL DEFAULT '0', + `oi_width` int(11) NOT NULL DEFAULT '0', + `oi_height` int(11) NOT NULL DEFAULT '0', + `oi_bits` int(11) NOT NULL DEFAULT '0', + `oi_description` varbinary(767) NOT NULL, + `oi_user` int(10) unsigned NOT NULL DEFAULT '0', + `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `oi_metadata` mediumblob NOT NULL, + `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `oi_sha1` varbinary(32) NOT NULL DEFAULT '', + KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), + KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), + KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), + KEY `oi_sha1` (`oi_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page` ( + `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `page_namespace` int(11) NOT NULL, + `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `page_restrictions` tinyblob NOT NULL, + `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_random` double unsigned NOT NULL, + `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `page_latest` int(10) unsigned NOT NULL, + `page_len` int(10) unsigned NOT NULL, + `page_content_model` varbinary(32) DEFAULT NULL, + `page_links_updated` varbinary(14) DEFAULT NULL, + `page_lang` varbinary(35) DEFAULT NULL, + PRIMARY KEY (`page_id`), + UNIQUE KEY `name_title` (`page_namespace`,`page_title`), + KEY `page_random` (`page_random`), + KEY `page_len` (`page_len`), + KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_props` ( + `pp_page` int(11) NOT NULL, + `pp_propname` varbinary(60) NOT NULL, + `pp_value` blob NOT NULL, + `pp_sortkey` float DEFAULT NULL, + UNIQUE KEY `pp_page_propname` (`pp_page`,`pp_propname`), + UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), + UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_restrictions` ( + `pr_page` int(11) NOT NULL, + `pr_type` varbinary(60) NOT NULL, + `pr_level` varbinary(60) NOT NULL, + `pr_cascade` tinyint(4) NOT NULL, + `pr_user` int(11) DEFAULT NULL, + `pr_expiry` varbinary(14) DEFAULT NULL, + `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`pr_id`), + UNIQUE KEY `pr_pagetype` (`pr_page`,`pr_type`), + KEY `pr_typelevel` (`pr_type`,`pr_level`), + KEY `pr_level` (`pr_level`), + KEY `pr_cascade` (`pr_cascade`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `pagelinks` ( + `pl_from` int(10) unsigned NOT NULL DEFAULT '0', + `pl_namespace` int(11) NOT NULL DEFAULT '0', + `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `pl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), + UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), + KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `protected_titles` ( + `pt_namespace` int(11) NOT NULL, + `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `pt_user` int(10) unsigned NOT NULL, + `pt_reason` varbinary(767) DEFAULT NULL, + `pt_timestamp` binary(14) NOT NULL, + `pt_expiry` varbinary(14) NOT NULL DEFAULT '', + `pt_create_perm` varbinary(60) NOT NULL, + UNIQUE KEY `pt_namespace_title` (`pt_namespace`,`pt_title`), + KEY `pt_timestamp` (`pt_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache` ( + `qc_type` varbinary(32) NOT NULL, + `qc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qc_namespace` int(11) NOT NULL DEFAULT '0', + `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qc_type` (`qc_type`,`qc_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache_info` ( + `qci_type` varbinary(32) NOT NULL DEFAULT '', + `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', + UNIQUE KEY `qci_type` (`qci_type`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycachetwo` ( + `qcc_type` varbinary(32) NOT NULL, + `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qcc_namespace` int(11) NOT NULL DEFAULT '0', + `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', + `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qcc_type` (`qcc_type`,`qcc_value`), + KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), + KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `recentchanges` ( + `rc_id` int(11) NOT NULL AUTO_INCREMENT, + `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', + `rc_user` int(10) unsigned NOT NULL DEFAULT '0', + `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rc_namespace` int(11) NOT NULL DEFAULT '0', + `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rc_comment` varbinary(767) NOT NULL DEFAULT '', + `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', + `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_ip` varbinary(40) NOT NULL DEFAULT '', + `rc_old_len` int(11) DEFAULT NULL, + `rc_new_len` int(11) DEFAULT NULL, + `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_log_type` varbinary(255) DEFAULT NULL, + `rc_log_action` varbinary(255) DEFAULT NULL, + `rc_params` blob, + `rc_source` varbinary(16) NOT NULL DEFAULT '', + PRIMARY KEY (`rc_id`), + KEY `rc_timestamp` (`rc_timestamp`), + KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), + KEY `rc_cur_id` (`rc_cur_id`), + KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), + KEY `rc_ip` (`rc_ip`), + KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), + KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `redirect` ( + `rd_from` int(10) unsigned NOT NULL DEFAULT '0', + `rd_namespace` int(11) NOT NULL DEFAULT '0', + `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rd_interwiki` varchar(32) DEFAULT NULL, + `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + PRIMARY KEY (`rd_from`), + KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `revision` ( + `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `rev_page` int(10) unsigned NOT NULL, + `rev_text_id` int(10) unsigned NOT NULL, + `rev_comment` varbinary(767) NOT NULL, + `rev_user` int(10) unsigned NOT NULL DEFAULT '0', + `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_len` int(10) unsigned DEFAULT NULL, + `rev_parent_id` int(10) unsigned DEFAULT NULL, + `rev_sha1` varbinary(32) NOT NULL DEFAULT '', + `rev_content_format` varbinary(64) DEFAULT NULL, + `rev_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`rev_id`), + UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), + KEY `rev_timestamp` (`rev_timestamp`), + KEY `page_timestamp` (`rev_page`,`rev_timestamp`), + KEY `user_timestamp` (`rev_user`,`rev_timestamp`), + KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), + KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `searchindex` ( + `si_page` int(10) unsigned NOT NULL, + `si_title` varchar(255) NOT NULL DEFAULT '', + `si_text` mediumtext NOT NULL, + UNIQUE KEY `si_page` (`si_page`), + FULLTEXT KEY `si_title` (`si_title`), + FULLTEXT KEY `si_text` (`si_text`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_identifiers` ( + `si_site` int(10) unsigned NOT NULL, + `si_type` varbinary(32) NOT NULL, + `si_key` varbinary(32) NOT NULL, + UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), + KEY `site_ids_site` (`si_site`), + KEY `site_ids_key` (`si_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_stats` ( + `ss_row_id` int(10) unsigned NOT NULL, + `ss_total_edits` bigint(20) unsigned DEFAULT '0', + `ss_good_articles` bigint(20) unsigned DEFAULT '0', + `ss_total_pages` bigint(20) DEFAULT '-1', + `ss_users` bigint(20) DEFAULT '-1', + `ss_active_users` bigint(20) DEFAULT '-1', + `ss_images` int(11) DEFAULT '0', + UNIQUE KEY `ss_row_id` (`ss_row_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `sites` ( + `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `site_global_key` varbinary(32) NOT NULL, + `site_type` varbinary(32) NOT NULL, + `site_group` varbinary(32) NOT NULL, + `site_source` varbinary(32) NOT NULL, + `site_language` varbinary(32) NOT NULL, + `site_protocol` varbinary(32) NOT NULL, + `site_domain` varchar(255) NOT NULL, + `site_data` blob NOT NULL, + `site_forward` tinyint(1) NOT NULL, + `site_config` blob NOT NULL, + PRIMARY KEY (`site_id`), + UNIQUE KEY `sites_global_key` (`site_global_key`), + KEY `sites_type` (`site_type`), + KEY `sites_group` (`site_group`), + KEY `sites_source` (`site_source`), + KEY `sites_language` (`site_language`), + KEY `sites_protocol` (`site_protocol`), + KEY `sites_domain` (`site_domain`), + KEY `sites_forward` (`site_forward`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `tag_summary` ( + `ts_rc_id` int(11) DEFAULT NULL, + `ts_log_id` int(11) DEFAULT NULL, + `ts_rev_id` int(11) DEFAULT NULL, + `ts_tags` blob NOT NULL, + UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), + UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), + UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `templatelinks` ( + `tl_from` int(10) unsigned NOT NULL DEFAULT '0', + `tl_namespace` int(11) NOT NULL DEFAULT '0', + `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `tl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), + UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), + KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `text` ( + `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `old_text` mediumblob NOT NULL, + `old_flags` tinyblob NOT NULL, + PRIMARY KEY (`old_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread` ( + `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, + `thread_root` int(8) unsigned NOT NULL, + `thread_ancestor` int(8) unsigned NOT NULL, + `thread_parent` int(8) unsigned DEFAULT NULL, + `thread_summary_page` int(8) unsigned DEFAULT NULL, + `thread_subject` varchar(255) DEFAULT NULL, + `thread_author_id` int(10) unsigned DEFAULT NULL, + `thread_author_name` varchar(255) DEFAULT NULL, + `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_editedness` int(1) NOT NULL DEFAULT '0', + `thread_article_namespace` int(11) NOT NULL, + `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `thread_article_id` int(8) unsigned NOT NULL, + `thread_type` int(4) unsigned NOT NULL DEFAULT '0', + `thread_sortkey` varchar(255) NOT NULL DEFAULT '', + `thread_replies` int(8) DEFAULT '-1', + `thread_signature` tinyblob, + PRIMARY KEY (`thread_id`), + UNIQUE KEY `thread_root` (`thread_root`), + UNIQUE KEY `thread_root_2` (`thread_root`), + KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), + KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), + KEY `thread_article` (`thread_article_id`,`thread_sortkey`), + KEY `thread_modified` (`thread_modified`), + KEY `thread_created` (`thread_created`), + KEY `thread_summary_page` (`thread_summary_page`), + KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), + KEY `thread_sortkey` (`thread_sortkey`), + KEY `thread_parent` (`thread_parent`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_history` ( + `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `th_thread` int(10) unsigned NOT NULL, + `th_timestamp` varbinary(14) NOT NULL, + `th_user` int(10) unsigned NOT NULL, + `th_user_text` varchar(255) NOT NULL, + `th_change_type` int(10) unsigned NOT NULL, + `th_change_object` int(10) unsigned NOT NULL, + `th_change_comment` tinytext NOT NULL, + `th_content` longblob NOT NULL, + PRIMARY KEY (`th_id`), + KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), + KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), + KEY `th_user_text` (`th_user`,`th_user_text`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( + `tpr_thread` int(10) unsigned NOT NULL, + `tpr_relationship` varbinary(64) NOT NULL, + `tpr_title` varbinary(255) NOT NULL, + `tpr_type` varbinary(32) NOT NULL, + PRIMARY KEY (`tpr_thread`,`tpr_relationship`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_reaction` ( + `tr_thread` int(10) unsigned NOT NULL, + `tr_user` int(10) unsigned NOT NULL, + `tr_user_text` varbinary(255) NOT NULL, + `tr_type` varbinary(64) NOT NULL, + `tr_value` int(11) NOT NULL, + PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), + KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `trackbacks` ( + `tb_id` int(11) NOT NULL AUTO_INCREMENT, + `tb_page` int(11) DEFAULT NULL, + `tb_title` varchar(255) NOT NULL, + `tb_url` blob NOT NULL, + `tb_ex` text, + `tb_name` varchar(255) DEFAULT NULL, + PRIMARY KEY (`tb_id`), + KEY `tb_page` (`tb_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `transcache` ( + `tc_url` varbinary(255) NOT NULL, + `tc_contents` text, + `tc_time` binary(14) DEFAULT NULL, + UNIQUE KEY `tc_url_idx` (`tc_url`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `updatelog` ( + `ul_key` varchar(255) NOT NULL, + `ul_value` blob, + PRIMARY KEY (`ul_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `uploadstash` ( + `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `us_user` int(10) unsigned NOT NULL, + `us_key` varchar(255) NOT NULL, + `us_orig_path` varchar(255) NOT NULL, + `us_path` varchar(255) NOT NULL, + `us_source_type` varchar(50) DEFAULT NULL, + `us_timestamp` varbinary(14) NOT NULL, + `us_status` varchar(50) NOT NULL, + `us_size` int(10) unsigned NOT NULL, + `us_sha1` varchar(31) NOT NULL, + `us_mime` varchar(255) DEFAULT NULL, + `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `us_image_width` int(10) unsigned DEFAULT NULL, + `us_image_height` int(10) unsigned DEFAULT NULL, + `us_image_bits` smallint(5) unsigned DEFAULT NULL, + `us_chunk_inx` int(10) unsigned DEFAULT NULL, + `us_props` blob, + PRIMARY KEY (`us_id`), + UNIQUE KEY `us_key` (`us_key`), + KEY `us_user` (`us_user`), + KEY `us_timestamp` (`us_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user` ( + `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_password` tinyblob NOT NULL, + `user_newpassword` tinyblob NOT NULL, + `user_newpass_time` binary(14) DEFAULT NULL, + `user_email` tinytext NOT NULL, + `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `user_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', + `user_email_authenticated` binary(14) DEFAULT NULL, + `user_email_token` binary(32) DEFAULT NULL, + `user_email_token_expires` binary(14) DEFAULT NULL, + `user_registration` binary(14) DEFAULT NULL, + `user_editcount` int(11) DEFAULT NULL, + PRIMARY KEY (`user_id`), + UNIQUE KEY `user_name` (`user_name`), + KEY `user_email_token` (`user_email_token`), + KEY `user_email` (`user_email`(50)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_former_groups` ( + `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', + `ufg_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_groups` ( + `ug_user` int(10) unsigned NOT NULL DEFAULT '0', + `ug_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), + KEY `ug_group` (`ug_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_message_state` ( + `ums_user` int(10) unsigned NOT NULL, + `ums_thread` int(8) unsigned NOT NULL, + `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', + `ums_read_timestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`ums_user`,`ums_thread`), + KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_newtalk` ( + `user_id` int(10) unsigned NOT NULL DEFAULT '0', + `user_ip` varbinary(40) NOT NULL DEFAULT '', + `user_last_timestamp` varbinary(14) DEFAULT NULL, + KEY `un_user_id` (`user_id`), + KEY `un_user_ip` (`user_ip`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_properties` ( + `up_user` int(11) NOT NULL, + `up_property` varbinary(255) DEFAULT NULL, + `up_value` blob, + UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), + KEY `user_properties_property` (`up_property`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `valid_tag` ( + `vt_tag` varchar(255) NOT NULL, + PRIMARY KEY (`vt_tag`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `watchlist` ( + `wl_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `wl_user` int(10) unsigned NOT NULL, + `wl_namespace` int(11) NOT NULL DEFAULT '0', + `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`wl_id`), + UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), + KEY `namespace_title` (`wl_namespace`,`wl_title`), + KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + diff --git a/DeveloperDump/poolwikitolearn.struct.sql b/DeveloperDump/poolwikitolearn.struct.sql index 4160e46..daa02f6 100644 --- a/DeveloperDump/poolwikitolearn.struct.sql +++ b/DeveloperDump/poolwikitolearn.struct.sql @@ -1,1288 +1,1380 @@ - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; -/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; -/*!40103 SET TIME_ZONE='+00:00' */; -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `archive` ( - `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `ar_namespace` int(11) NOT NULL DEFAULT '0', - `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ar_text` mediumblob NOT NULL, - `ar_comment` varbinary(767) NOT NULL, - `ar_user` int(10) unsigned NOT NULL DEFAULT '0', - `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', - `ar_flags` tinyblob NOT NULL, - `ar_rev_id` int(10) unsigned DEFAULT NULL, - `ar_text_id` int(10) unsigned DEFAULT NULL, - `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `ar_len` int(10) unsigned DEFAULT NULL, - `ar_page_id` int(10) unsigned DEFAULT NULL, - `ar_parent_id` int(10) unsigned DEFAULT NULL, - `ar_sha1` varbinary(32) NOT NULL DEFAULT '', - `ar_content_model` varbinary(32) DEFAULT NULL, - `ar_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`ar_id`), - KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), - KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), - KEY `ar_revid` (`ar_rev_id`), - KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `category` ( - `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `cat_pages` int(11) NOT NULL DEFAULT '0', - `cat_subcats` int(11) NOT NULL DEFAULT '0', - `cat_files` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`cat_id`), - UNIQUE KEY `cat_title` (`cat_title`), - KEY `cat_pages` (`cat_pages`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `categorylinks` ( - `cl_from` int(10) unsigned NOT NULL DEFAULT '0', - `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', - `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `cl_collation` varbinary(32) NOT NULL DEFAULT '', - `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', - UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), - KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), - KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), - KEY `cl_collation` (`cl_collation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `change_tag` ( - `ct_rc_id` int(11) DEFAULT NULL, - `ct_log_id` int(11) DEFAULT NULL, - `ct_rev_id` int(11) DEFAULT NULL, - `ct_tag` varchar(255) NOT NULL, - `ct_params` blob, - UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), - UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), - UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), - KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_email_batch` ( - `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `eeb_user_id` int(10) unsigned NOT NULL, - `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', - `eeb_event_id` int(10) unsigned NOT NULL, - `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - PRIMARY KEY (`eeb_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`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_event` ( - `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_agent_id` int(10) unsigned DEFAULT NULL, - `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_page_namespace` int(10) unsigned DEFAULT NULL, - `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_extra` blob, - `event_page_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`event_id`), - KEY `echo_event_type` (`event_type`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_notification` ( - `notification_event` int(10) unsigned NOT NULL, - `notification_user` int(10) unsigned NOT NULL, - `notification_timestamp` binary(14) NOT NULL, - `notification_read_timestamp` binary(14) DEFAULT NULL, - `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', - `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `user_event` (`notification_user`,`notification_event`), - KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), - KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), - KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), - KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), - KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_target_page` ( - `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`etp_id`), - KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), - KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `externallinks` ( - `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `el_from` int(10) unsigned NOT NULL DEFAULT '0', - `el_to` blob NOT NULL, - `el_index` blob NOT NULL, - PRIMARY KEY (`el_id`), - KEY `el_from` (`el_from`,`el_to`(40)), - KEY `el_to` (`el_to`(60),`el_from`), - KEY `el_index` (`el_index`(60)) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `filearchive` ( - `fa_id` int(11) NOT NULL AUTO_INCREMENT, - `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', - `fa_storage_group` varbinary(16) DEFAULT NULL, - `fa_storage_key` varbinary(64) DEFAULT '', - `fa_deleted_user` int(11) DEFAULT NULL, - `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted_reason` varbinary(767) DEFAULT '', - `fa_size` int(10) unsigned DEFAULT '0', - `fa_width` int(11) DEFAULT '0', - `fa_height` int(11) DEFAULT '0', - `fa_metadata` mediumblob, - `fa_bits` int(11) DEFAULT '0', - `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `fa_minor_mime` varbinary(100) DEFAULT 'unknown', - `fa_description` varbinary(767) DEFAULT NULL, - `fa_user` int(10) unsigned DEFAULT '0', - `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `fa_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fa_id`), - KEY `fa_name` (`fa_name`,`fa_timestamp`), - KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), - KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), - KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), - KEY `fa_sha1` (`fa_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedimages` ( - `fi_rev_id` int(10) unsigned NOT NULL, - `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fi_img_timestamp` varbinary(14) DEFAULT NULL, - `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fi_rev_id`,`fi_name`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( - `fpc_page_id` int(10) unsigned NOT NULL, - `fpc_select` int(11) NOT NULL, - `fpc_override` tinyint(1) NOT NULL, - `fpc_level` varbinary(60) DEFAULT NULL, - `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', - PRIMARY KEY (`fpc_page_id`), - KEY `fpc_expiry` (`fpc_expiry`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( - `fpp_page_id` int(10) unsigned NOT NULL, - `fpp_quality` tinyint(1) NOT NULL, - `fpp_rev_id` int(10) unsigned NOT NULL, - `fpp_pending_since` varbinary(14) NOT NULL, - PRIMARY KEY (`fpp_page_id`,`fpp_quality`), - KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpages` ( - `fp_page_id` int(10) unsigned NOT NULL, - `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', - `fp_pending_since` varbinary(14) DEFAULT NULL, - `fp_stable` int(10) unsigned NOT NULL, - `fp_quality` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`fp_page_id`), - KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), - KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), - KEY `fp_pending_since` (`fp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs` ( - `fr_rev_id` int(10) unsigned NOT NULL, - `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', - `fr_page_id` int(10) unsigned NOT NULL, - `fr_user` int(10) unsigned NOT NULL, - `fr_timestamp` varbinary(14) NOT NULL, - `fr_quality` tinyint(1) NOT NULL DEFAULT '0', - `fr_tags` mediumblob NOT NULL, - `fr_flags` tinyblob NOT NULL, - `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fr_img_timestamp` varbinary(14) DEFAULT NULL, - `fr_img_sha1` varbinary(32) DEFAULT NULL, - PRIMARY KEY (`fr_rev_id`), - KEY `page_rev` (`fr_page_id`,`fr_rev_id`), - KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), - KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), - KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), - KEY `fr_img_sha1` (`fr_img_sha1`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( - `frp_user_id` int(10) unsigned NOT NULL, - `frp_user_params` mediumblob NOT NULL, - PRIMARY KEY (`frp_user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( - `frs_timestamp` varbinary(14) NOT NULL, - `frs_stat_key` varchar(255) NOT NULL, - `frs_stat_val` bigint(20) NOT NULL, - PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), - KEY `frs_timestamp` (`frs_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( - `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', - `ftr_namespace` int(11) NOT NULL DEFAULT '0', - `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), - KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( - `ft_rev_id` int(10) unsigned NOT NULL, - `ft_namespace` int(11) NOT NULL DEFAULT '0', - `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_revision` ( - `rev_id` binary(11) NOT NULL, - `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', - `rev_user_id` bigint(20) unsigned NOT NULL, - `rev_user_ip` varbinary(39) DEFAULT NULL, - `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_parent_id` binary(11) DEFAULT NULL, - `rev_flags` tinyblob NOT NULL, - `rev_content` mediumblob NOT NULL, - `rev_change_type` varbinary(255) DEFAULT NULL, - `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_mod_user_ip` varbinary(39) DEFAULT NULL, - `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_last_edit_id` binary(11) DEFAULT NULL, - `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_edit_user_ip` varbinary(39) DEFAULT NULL, - `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_content_length` int(11) NOT NULL DEFAULT '0', - `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`rev_id`), - UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), - KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), - KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_subscription` ( - `subscription_workflow_id` int(10) unsigned NOT NULL, - `subscription_user_id` bigint(20) unsigned NOT NULL, - `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), - KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_topic_list` ( - `topic_list_id` binary(11) NOT NULL, - `topic_id` binary(11) DEFAULT NULL, - UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), - KEY `flow_topic_list_topic_id` (`topic_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_node` ( - `tree_ancestor_id` binary(11) NOT NULL, - `tree_descendant_id` binary(11) NOT NULL, - `tree_depth` smallint(6) NOT NULL, - UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), - UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( - `tree_rev_descendant_id` binary(11) NOT NULL, - `tree_rev_id` binary(11) NOT NULL, - `tree_orig_user_id` bigint(20) unsigned NOT NULL, - `tree_orig_user_ip` varbinary(39) DEFAULT NULL, - `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tree_parent_id` binary(11) DEFAULT NULL, - PRIMARY KEY (`tree_rev_id`), - KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target_namespace` int(11) NOT NULL, - `ref_target_title` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_workflow` ( - `workflow_id` binary(11) NOT NULL, - `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_namespace` int(11) NOT NULL, - `workflow_page_id` int(10) unsigned NOT NULL, - `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_last_update_timestamp` binary(14) NOT NULL, - `workflow_lock_state` int(10) unsigned NOT NULL, - `workflow_type` varbinary(16) NOT NULL, - PRIMARY KEY (`workflow_id`), - KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), - KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `historical_thread` ( - `hthread_id` int(8) unsigned NOT NULL, - `hthread_revision` int(8) unsigned NOT NULL, - `hthread_contents` blob NOT NULL, - `hthread_change_type` int(4) unsigned NOT NULL, - `hthread_change_object` int(8) unsigned DEFAULT NULL, - PRIMARY KEY (`hthread_id`,`hthread_revision`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `image` ( - `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `img_size` int(10) unsigned NOT NULL DEFAULT '0', - `img_width` int(11) NOT NULL DEFAULT '0', - `img_height` int(11) NOT NULL DEFAULT '0', - `img_metadata` mediumblob NOT NULL, - `img_bits` int(11) NOT NULL DEFAULT '0', - `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `img_description` varbinary(767) NOT NULL, - `img_user` int(10) unsigned NOT NULL DEFAULT '0', - `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `img_timestamp` varbinary(14) NOT NULL DEFAULT '', - `img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`img_name`), - KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), - KEY `img_size` (`img_size`), - KEY `img_timestamp` (`img_timestamp`), - KEY `img_sha1` (`img_sha1`(10)), - KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `imagelinks` ( - `il_from` int(10) unsigned NOT NULL DEFAULT '0', - `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `il_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `il_from` (`il_from`,`il_to`), - UNIQUE KEY `il_to` (`il_to`,`il_from`), - KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `interwiki` ( - `iw_prefix` varchar(32) NOT NULL, - `iw_url` blob NOT NULL, - `iw_local` tinyint(1) NOT NULL, - `iw_trans` tinyint(4) NOT NULL DEFAULT '0', - `iw_api` blob NOT NULL, - `iw_wikiid` varchar(64) NOT NULL, - UNIQUE KEY `iw_prefix` (`iw_prefix`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ipblocks` ( - `ipb_id` int(11) NOT NULL AUTO_INCREMENT, - `ipb_address` tinyblob NOT NULL, - `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ipb_reason` varbinary(767) NOT NULL, - `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `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 DEFAULT '', - `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(11) DEFAULT NULL, - PRIMARY KEY (`ipb_id`), - UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `iwlinks` ( - `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', - `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', - `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `job` ( - `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `job_cmd` varbinary(60) NOT NULL DEFAULT '', - `job_namespace` int(11) NOT NULL, - `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `job_params` blob NOT NULL, - `job_timestamp` varbinary(14) DEFAULT NULL, - `job_random` int(10) unsigned NOT NULL DEFAULT '0', - `job_token` varbinary(32) NOT NULL DEFAULT '', - `job_token_timestamp` varbinary(14) DEFAULT NULL, - `job_sha1` varbinary(32) NOT NULL DEFAULT '', - `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', - PRIMARY KEY (`job_id`), - KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), - KEY `job_timestamp` (`job_timestamp`), - KEY `job_sha1` (`job_sha1`), - KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), - KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `l10n_cache` ( - `lc_lang` varbinary(32) NOT NULL, - `lc_key` varchar(255) NOT NULL, - `lc_value` mediumblob NOT NULL, - KEY `lc_lang_key` (`lc_lang`,`lc_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `langlinks` ( - `ll_from` int(10) unsigned NOT NULL DEFAULT '0', - `ll_lang` varbinary(20) NOT NULL DEFAULT '', - `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), - KEY `ll_lang` (`ll_lang`,`ll_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `log_search` ( - `ls_field` varbinary(32) NOT NULL, - `ls_value` varchar(255) NOT NULL, - `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', - UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), - KEY `ls_log_id` (`ls_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `logging` ( - `log_type` varbinary(32) NOT NULL, - `log_action` varbinary(32) NOT NULL, - `log_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - `log_user` int(10) unsigned NOT NULL DEFAULT '0', - `log_namespace` int(11) NOT NULL DEFAULT '0', - `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_comment` varbinary(767) NOT NULL DEFAULT '', - `log_params` blob NOT NULL, - `log_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_page` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`log_id`), - KEY `type_time` (`log_type`,`log_timestamp`), - KEY `user_time` (`log_user`,`log_timestamp`), - KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), - KEY `times` (`log_timestamp`), - KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), - KEY `log_page_id_time` (`log_page`,`log_timestamp`), - KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), - KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), - KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `math` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_outputhash` varbinary(16) NOT NULL, - `math_html_conservativeness` tinyint(4) NOT NULL, - `math_html` text, - `math_mathml` text, - UNIQUE KEY `math_inputhash` (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mathoid` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_input` text NOT NULL, - `math_tex` text, - `math_mathml` text, - `math_svg` text, - `math_style` tinyint(4) DEFAULT NULL, - `math_input_type` tinyint(4) DEFAULT NULL, - PRIMARY KEY (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `module_deps` ( - `md_module` varbinary(255) NOT NULL, - `md_skin` varbinary(32) NOT NULL, - `md_deps` mediumblob NOT NULL, - UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource` ( - `mr_resource` varbinary(255) NOT NULL, - `mr_lang` varbinary(32) NOT NULL, - `mr_blob` mediumblob NOT NULL, - `mr_timestamp` binary(14) NOT NULL, - UNIQUE KEY `mr_resource_lang` (`mr_resource`,`mr_lang`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource_links` ( - `mrl_resource` varbinary(255) NOT NULL, - `mrl_message` varbinary(255) NOT NULL, - UNIQUE KEY `mrl_message_resource` (`mrl_message`,`mrl_resource`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `objectcache` ( - `keyname` varbinary(255) NOT NULL DEFAULT '', - `value` mediumblob, - `exptime` datetime DEFAULT NULL, - UNIQUE KEY `keyname` (`keyname`), - KEY `exptime` (`exptime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `oldimage` ( - `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_size` int(10) unsigned NOT NULL DEFAULT '0', - `oi_width` int(11) NOT NULL DEFAULT '0', - `oi_height` int(11) NOT NULL DEFAULT '0', - `oi_bits` int(11) NOT NULL DEFAULT '0', - `oi_description` varbinary(767) NOT NULL, - `oi_user` int(10) unsigned NOT NULL DEFAULT '0', - `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `oi_metadata` mediumblob NOT NULL, - `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `oi_sha1` varbinary(32) NOT NULL DEFAULT '', - KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), - KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), - KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), - KEY `oi_sha1` (`oi_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page` ( - `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `page_namespace` int(11) NOT NULL, - `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `page_restrictions` tinyblob NOT NULL, - `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_random` double unsigned NOT NULL, - `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `page_latest` int(10) unsigned NOT NULL, - `page_len` int(10) unsigned NOT NULL, - `page_content_model` varbinary(32) DEFAULT NULL, - `page_links_updated` varbinary(14) DEFAULT NULL, - `page_lang` varbinary(35) DEFAULT NULL, - PRIMARY KEY (`page_id`), - UNIQUE KEY `name_title` (`page_namespace`,`page_title`), - KEY `page_random` (`page_random`), - KEY `page_len` (`page_len`), - KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_props` ( - `pp_page` int(11) NOT NULL, - `pp_propname` varbinary(60) NOT NULL, - `pp_value` blob NOT NULL, - `pp_sortkey` float DEFAULT NULL, - PRIMARY KEY (`pp_page`,`pp_propname`), - UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), - UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_restrictions` ( - `pr_page` int(11) NOT NULL, - `pr_type` varbinary(60) NOT NULL, - `pr_level` varbinary(60) NOT NULL, - `pr_cascade` tinyint(4) NOT NULL, - `pr_user` int(11) DEFAULT NULL, - `pr_expiry` varbinary(14) DEFAULT NULL, - `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`pr_page`,`pr_type`), - UNIQUE KEY `pr_id` (`pr_id`), - KEY `pr_typelevel` (`pr_type`,`pr_level`), - KEY `pr_level` (`pr_level`), - KEY `pr_cascade` (`pr_cascade`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pagelinks` ( - `pl_from` int(10) unsigned NOT NULL DEFAULT '0', - `pl_namespace` int(11) NOT NULL DEFAULT '0', - `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `pl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), - UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), - KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `protected_titles` ( - `pt_namespace` int(11) NOT NULL, - `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `pt_user` int(10) unsigned NOT NULL, - `pt_reason` varbinary(767) DEFAULT NULL, - `pt_timestamp` binary(14) NOT NULL, - `pt_expiry` varbinary(14) NOT NULL DEFAULT '', - `pt_create_perm` varbinary(60) NOT NULL, - PRIMARY KEY (`pt_namespace`,`pt_title`), - KEY `pt_timestamp` (`pt_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache` ( - `qc_type` varbinary(32) NOT NULL, - `qc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qc_namespace` int(11) NOT NULL DEFAULT '0', - `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qc_type` (`qc_type`,`qc_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache_info` ( - `qci_type` varbinary(32) NOT NULL DEFAULT '', - `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - UNIQUE KEY `qci_type` (`qci_type`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycachetwo` ( - `qcc_type` varbinary(32) NOT NULL, - `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qcc_namespace` int(11) NOT NULL DEFAULT '0', - `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', - `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qcc_type` (`qcc_type`,`qcc_value`), - KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), - KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `recentchanges` ( - `rc_id` int(11) NOT NULL AUTO_INCREMENT, - `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', - `rc_user` int(10) unsigned NOT NULL DEFAULT '0', - `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rc_namespace` int(11) NOT NULL, - `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rc_comment` varbinary(767) NOT NULL DEFAULT '', - `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', - `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_ip` varbinary(40) NOT NULL DEFAULT '', - `rc_old_len` int(11) DEFAULT NULL, - `rc_new_len` int(11) DEFAULT NULL, - `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_log_type` varbinary(255) DEFAULT NULL, - `rc_log_action` varbinary(255) DEFAULT NULL, - `rc_params` blob, - `rc_source` varbinary(16) NOT NULL DEFAULT '', - PRIMARY KEY (`rc_id`), - KEY `rc_timestamp` (`rc_timestamp`), - KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), - KEY `rc_cur_id` (`rc_cur_id`), - KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), - KEY `rc_ip` (`rc_ip`), - KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), - KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `redirect` ( - `rd_from` int(10) unsigned NOT NULL DEFAULT '0', - `rd_namespace` int(11) NOT NULL DEFAULT '0', - `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rd_interwiki` varchar(32) DEFAULT NULL, - `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - PRIMARY KEY (`rd_from`), - KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `revision` ( - `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `rev_page` int(10) unsigned NOT NULL, - `rev_text_id` int(10) unsigned NOT NULL, - `rev_comment` varbinary(767) NOT NULL, - `rev_user` int(10) unsigned NOT NULL DEFAULT '0', - `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_len` int(10) unsigned DEFAULT NULL, - `rev_parent_id` int(10) unsigned DEFAULT NULL, - `rev_sha1` varbinary(32) NOT NULL DEFAULT '', - `rev_content_model` varbinary(32) DEFAULT NULL, - `rev_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`rev_id`), - UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), - KEY `rev_timestamp` (`rev_timestamp`), - KEY `page_timestamp` (`rev_page`,`rev_timestamp`), - KEY `user_timestamp` (`rev_user`,`rev_timestamp`), - KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), - KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `revtag` ( - `rt_type` varbinary(60) NOT NULL, - `rt_page` int(11) NOT NULL, - `rt_revision` int(11) NOT NULL, - `rt_value` blob, - UNIQUE KEY `rt_type_page_revision` (`rt_type`,`rt_page`,`rt_revision`), - KEY `rt_revision_type` (`rt_revision`,`rt_type`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `searchindex` ( - `si_page` int(10) unsigned NOT NULL, - `si_title` varchar(255) NOT NULL DEFAULT '', - `si_text` mediumtext NOT NULL, - FULLTEXT KEY `si_title` (`si_title`), - FULLTEXT KEY `si_text` (`si_text`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_identifiers` ( - `si_site` int(10) unsigned NOT NULL, - `si_type` varbinary(32) NOT NULL, - `si_key` varbinary(32) NOT NULL, - UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), - KEY `site_ids_site` (`si_site`), - KEY `site_ids_key` (`si_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_stats` ( - `ss_row_id` int(10) unsigned NOT NULL, - `ss_total_edits` bigint(20) unsigned DEFAULT '0', - `ss_good_articles` bigint(20) unsigned DEFAULT '0', - `ss_total_pages` bigint(20) DEFAULT '-1', - `ss_users` bigint(20) DEFAULT '-1', - `ss_active_users` bigint(20) DEFAULT '-1', - `ss_images` int(11) DEFAULT '0', - UNIQUE KEY `ss_row_id` (`ss_row_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `sites` ( - `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `site_global_key` varbinary(32) NOT NULL, - `site_type` varbinary(32) NOT NULL, - `site_group` varbinary(32) NOT NULL, - `site_source` varbinary(32) NOT NULL, - `site_language` varbinary(32) NOT NULL, - `site_protocol` varbinary(32) NOT NULL, - `site_domain` varchar(255) NOT NULL, - `site_data` blob NOT NULL, - `site_forward` tinyint(1) NOT NULL, - `site_config` blob NOT NULL, - PRIMARY KEY (`site_id`), - UNIQUE KEY `sites_global_key` (`site_global_key`), - KEY `sites_type` (`site_type`), - KEY `sites_group` (`site_group`), - KEY `sites_source` (`site_source`), - KEY `sites_language` (`site_language`), - KEY `sites_protocol` (`site_protocol`), - KEY `sites_domain` (`site_domain`), - KEY `sites_forward` (`site_forward`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `tag_summary` ( - `ts_rc_id` int(11) DEFAULT NULL, - `ts_log_id` int(11) DEFAULT NULL, - `ts_rev_id` int(11) DEFAULT NULL, - `ts_tags` blob NOT NULL, - UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), - UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), - UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `templatelinks` ( - `tl_from` int(10) unsigned NOT NULL DEFAULT '0', - `tl_namespace` int(11) NOT NULL DEFAULT '0', - `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `tl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), - UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), - KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `text` ( - `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `old_text` mediumblob NOT NULL, - `old_flags` tinyblob NOT NULL, - PRIMARY KEY (`old_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread` ( - `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, - `thread_root` int(8) unsigned NOT NULL, - `thread_ancestor` int(8) unsigned NOT NULL, - `thread_parent` int(8) unsigned DEFAULT NULL, - `thread_summary_page` int(8) unsigned DEFAULT NULL, - `thread_subject` varchar(255) DEFAULT NULL, - `thread_author_id` int(10) unsigned DEFAULT NULL, - `thread_author_name` varchar(255) DEFAULT NULL, - `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_editedness` int(1) NOT NULL DEFAULT '0', - `thread_article_namespace` int(11) NOT NULL, - `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `thread_article_id` int(8) unsigned NOT NULL, - `thread_type` int(4) unsigned NOT NULL DEFAULT '0', - `thread_sortkey` varchar(255) NOT NULL DEFAULT '', - `thread_replies` int(8) DEFAULT '-1', - `thread_signature` tinyblob, - PRIMARY KEY (`thread_id`), - UNIQUE KEY `thread_root` (`thread_root`), - UNIQUE KEY `thread_root_2` (`thread_root`), - KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), - KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), - KEY `thread_article` (`thread_article_id`,`thread_sortkey`), - KEY `thread_modified` (`thread_modified`), - KEY `thread_created` (`thread_created`), - KEY `thread_summary_page` (`thread_summary_page`), - KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), - KEY `thread_sortkey` (`thread_sortkey`), - KEY `thread_parent` (`thread_parent`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_history` ( - `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `th_thread` int(10) unsigned NOT NULL, - `th_timestamp` varbinary(14) NOT NULL, - `th_user` int(10) unsigned NOT NULL, - `th_user_text` varchar(255) NOT NULL, - `th_change_type` int(10) unsigned NOT NULL, - `th_change_object` int(10) unsigned NOT NULL, - `th_change_comment` tinytext NOT NULL, - `th_content` longblob NOT NULL, - PRIMARY KEY (`th_id`), - KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), - KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), - KEY `th_user_text` (`th_user`,`th_user_text`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( - `tpr_thread` int(10) unsigned NOT NULL, - `tpr_relationship` varbinary(64) NOT NULL, - `tpr_title` varbinary(255) NOT NULL, - `tpr_type` varbinary(32) NOT NULL, - PRIMARY KEY (`tpr_thread`,`tpr_relationship`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_reaction` ( - `tr_thread` int(10) unsigned NOT NULL, - `tr_user` int(10) unsigned NOT NULL, - `tr_user_text` varbinary(255) NOT NULL, - `tr_type` varbinary(64) NOT NULL, - `tr_value` int(11) NOT NULL, - PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), - KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `transcache` ( - `tc_url` varbinary(255) NOT NULL, - `tc_contents` text, - `tc_time` binary(14) DEFAULT NULL, - UNIQUE KEY `tc_url_idx` (`tc_url`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_groupreviews` ( - `tgr_group` varchar(200) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tgr_lang` varchar(20) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tgr_state` varbinary(32) NOT NULL, - PRIMARY KEY (`tgr_group`,`tgr_lang`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_groupstats` ( - `tgs_group` varchar(100) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tgs_lang` varchar(20) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tgs_total` int(5) unsigned DEFAULT NULL, - `tgs_translated` int(5) unsigned DEFAULT NULL, - `tgs_fuzzy` int(5) unsigned DEFAULT NULL, - `tgs_proofread` int(5) unsigned DEFAULT NULL, - PRIMARY KEY (`tgs_group`,`tgs_lang`), - KEY `tgs_lang` (`tgs_lang`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_messageindex` ( - `tmi_key` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tmi_value` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `tmi_key` (`tmi_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_metadata` ( - `tmd_group` varchar(200) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tmd_key` varchar(20) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tmd_value` mediumblob NOT NULL, - PRIMARY KEY (`tmd_group`,`tmd_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_reviews` ( - `trr_user` int(11) NOT NULL, - `trr_page` int(11) NOT NULL, - `trr_revision` int(11) NOT NULL, - UNIQUE KEY `trr_user_page_revision` (`trr_user`,`trr_page`,`trr_revision`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_sections` ( - `trs_page` int(10) unsigned NOT NULL, - `trs_key` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `trs_text` mediumblob NOT NULL, - `trs_order` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`trs_page`,`trs_key`), - KEY `trs_page_order` (`trs_page`,`trs_order`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_stash` ( - `ts_user` int(11) NOT NULL, - `ts_namespace` int(11) NOT NULL, - `ts_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `ts_value` mediumblob NOT NULL, - `ts_metadata` mediumblob NOT NULL, - PRIMARY KEY (`ts_user`,`ts_namespace`,`ts_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_tmf` ( - `tmf_sid` int(10) unsigned NOT NULL, - `tmf_text` text, - FULLTEXT KEY `tmf_text` (`tmf_text`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_tms` ( - `tms_sid` int(10) unsigned NOT NULL AUTO_INCREMENT, - `tms_lang` varchar(20) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tms_len` int(10) unsigned NOT NULL, - `tms_text` mediumblob NOT NULL, - `tms_context` mediumblob NOT NULL, - PRIMARY KEY (`tms_sid`), - KEY `tms_lang_len` (`tms_lang`,`tms_len`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `translate_tmt` ( - `tmt_sid` int(10) unsigned NOT NULL, - `tmt_lang` varchar(20) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tmt_text` mediumblob NOT NULL, - UNIQUE KEY `tmt_sid_lang` (`tmt_sid`,`tmt_lang`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `updatelog` ( - `ul_key` varchar(255) NOT NULL, - `ul_value` blob, - PRIMARY KEY (`ul_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uploadstash` ( - `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `us_user` int(10) unsigned NOT NULL, - `us_key` varchar(255) NOT NULL, - `us_orig_path` varchar(255) NOT NULL, - `us_path` varchar(255) NOT NULL, - `us_source_type` varchar(50) DEFAULT NULL, - `us_timestamp` varbinary(14) NOT NULL, - `us_status` varchar(50) NOT NULL, - `us_chunk_inx` int(10) unsigned DEFAULT NULL, - `us_props` blob, - `us_size` int(10) unsigned NOT NULL, - `us_sha1` varchar(31) NOT NULL, - `us_mime` varchar(255) DEFAULT NULL, - `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `us_image_width` int(10) unsigned DEFAULT NULL, - `us_image_height` int(10) unsigned DEFAULT NULL, - `us_image_bits` smallint(5) unsigned DEFAULT NULL, - PRIMARY KEY (`us_id`), - UNIQUE KEY `us_key` (`us_key`), - KEY `us_user` (`us_user`), - KEY `us_timestamp` (`us_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user` ( - `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_password` tinyblob NOT NULL, - `user_newpassword` tinyblob NOT NULL, - `user_newpass_time` binary(14) DEFAULT NULL, - `user_email` tinytext NOT NULL, - `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `user_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', - `user_email_authenticated` binary(14) DEFAULT NULL, - `user_email_token` binary(32) DEFAULT NULL, - `user_email_token_expires` binary(14) DEFAULT NULL, - `user_registration` binary(14) DEFAULT NULL, - `user_editcount` int(11) DEFAULT NULL, - PRIMARY KEY (`user_id`), - UNIQUE KEY `user_name` (`user_name`), - KEY `user_email_token` (`user_email_token`), - KEY `user_email` (`user_email`(50)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_former_groups` ( - `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', - `ufg_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_groups` ( - `ug_user` int(10) unsigned NOT NULL DEFAULT '0', - `ug_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), - KEY `ug_group` (`ug_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_message_state` ( - `ums_user` int(10) unsigned NOT NULL, - `ums_thread` int(8) unsigned NOT NULL, - `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', - `ums_read_timestamp` varbinary(14) DEFAULT NULL, - PRIMARY KEY (`ums_user`,`ums_thread`), - KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_newtalk` ( - `user_id` int(10) unsigned NOT NULL DEFAULT '0', - `user_ip` varbinary(40) NOT NULL DEFAULT '', - `user_last_timestamp` varbinary(14) DEFAULT NULL, - KEY `un_user_id` (`user_id`), - KEY `un_user_ip` (`user_ip`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_properties` ( - `up_user` int(11) NOT NULL, - `up_property` varbinary(255) NOT NULL, - `up_value` blob, - UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), - KEY `user_properties_property` (`up_property`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `valid_tag` ( - `vt_tag` varchar(255) NOT NULL, - PRIMARY KEY (`vt_tag`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `watchlist` ( - `wl_user` int(10) unsigned NOT NULL, - `wl_namespace` int(11) NOT NULL DEFAULT '0', - `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, - UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), - KEY `namespace_title` (`wl_namespace`,`wl_title`), - KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - -DROP INDEX flow_ext_ref_idx_v2 ON flow_ext_ref; DROP INDEX flow_ext_ref_revision_v2 ON flow_ext_ref; ALTER TABLE flow_ext_ref CHANGE ref_target ref_target BLOB NOT NULL; CREATE INDEX flow_ext_ref_idx_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_type, ref_target(255), ref_src_object_type, ref_src_object_id); CREATE INDEX flow_ext_ref_revision_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_src_object_type, ref_src_object_id, ref_type, ref_target(255)); + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `archive` ( + `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `ar_namespace` int(11) NOT NULL DEFAULT '0', + `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ar_text` mediumblob NOT NULL, + `ar_comment` varbinary(767) NOT NULL, + `ar_user` int(10) unsigned NOT NULL DEFAULT '0', + `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', + `ar_flags` tinyblob NOT NULL, + `ar_rev_id` int(10) unsigned DEFAULT NULL, + `ar_text_id` int(10) unsigned DEFAULT NULL, + `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `ar_len` int(10) unsigned DEFAULT NULL, + `ar_page_id` int(10) unsigned DEFAULT NULL, + `ar_parent_id` int(10) unsigned DEFAULT NULL, + `ar_sha1` varbinary(32) NOT NULL DEFAULT '', + `ar_content_format` varbinary(64) DEFAULT NULL, + `ar_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`ar_id`), + KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), + KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), + KEY `ar_revid` (`ar_rev_id`), + KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_commentmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `comment_id` (`comment_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_comments` ( + `comment_ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_post_ID` bigint(20) unsigned NOT NULL DEFAULT '0', + `comment_author` tinytext NOT NULL, + `comment_author_email` varchar(100) NOT NULL DEFAULT '', + `comment_author_url` varchar(200) NOT NULL DEFAULT '', + `comment_author_IP` varchar(100) NOT NULL DEFAULT '', + `comment_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_content` text NOT NULL, + `comment_karma` int(11) NOT NULL DEFAULT '0', + `comment_approved` varchar(20) NOT NULL DEFAULT '1', + `comment_agent` varchar(255) NOT NULL DEFAULT '', + `comment_type` varchar(20) NOT NULL DEFAULT '', + `comment_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`comment_ID`), + KEY `comment_post_ID` (`comment_post_ID`), + KEY `comment_approved_date_gmt` (`comment_approved`,`comment_date_gmt`), + KEY `comment_date_gmt` (`comment_date_gmt`), + KEY `comment_parent` (`comment_parent`), + KEY `comment_author_email` (`comment_author_email`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_links` ( + `link_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `link_url` varchar(255) NOT NULL DEFAULT '', + `link_name` varchar(255) NOT NULL DEFAULT '', + `link_image` varchar(255) NOT NULL DEFAULT '', + `link_target` varchar(25) NOT NULL DEFAULT '', + `link_description` varchar(255) NOT NULL DEFAULT '', + `link_visible` varchar(20) NOT NULL DEFAULT 'Y', + `link_owner` bigint(20) unsigned NOT NULL DEFAULT '1', + `link_rating` int(11) NOT NULL DEFAULT '0', + `link_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `link_rel` varchar(255) NOT NULL DEFAULT '', + `link_notes` mediumtext NOT NULL, + `link_rss` varchar(255) NOT NULL DEFAULT '', + PRIMARY KEY (`link_id`), + KEY `link_visible` (`link_visible`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_options` ( + `option_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `option_name` varchar(64) NOT NULL DEFAULT '', + `option_value` longtext NOT NULL, + `autoload` varchar(20) NOT NULL DEFAULT 'yes', + PRIMARY KEY (`option_id`), + UNIQUE KEY `option_name` (`option_name`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_postmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `post_id` (`post_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_posts` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_author` bigint(20) unsigned NOT NULL DEFAULT '0', + `post_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content` longtext NOT NULL, + `post_title` text NOT NULL, + `post_excerpt` text NOT NULL, + `post_status` varchar(20) NOT NULL DEFAULT 'publish', + `comment_status` varchar(20) NOT NULL DEFAULT 'open', + `ping_status` varchar(20) NOT NULL DEFAULT 'open', + `post_password` varchar(20) NOT NULL DEFAULT '', + `post_name` varchar(200) NOT NULL DEFAULT '', + `to_ping` text NOT NULL, + `pinged` text NOT NULL, + `post_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_modified_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content_filtered` longtext NOT NULL, + `post_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `guid` varchar(255) NOT NULL DEFAULT '', + `menu_order` int(11) NOT NULL DEFAULT '0', + `post_type` varchar(20) NOT NULL DEFAULT 'post', + `post_mime_type` varchar(100) NOT NULL DEFAULT '', + `comment_count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`), + KEY `post_name` (`post_name`), + KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`ID`), + KEY `post_parent` (`post_parent`), + KEY `post_author` (`post_author`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_relationships` ( + `object_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_taxonomy_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`object_id`,`term_taxonomy_id`), + KEY `term_taxonomy_id` (`term_taxonomy_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_taxonomy` ( + `term_taxonomy_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `term_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `taxonomy` varchar(32) NOT NULL DEFAULT '', + `description` longtext NOT NULL, + `parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_taxonomy_id`), + UNIQUE KEY `term_id_taxonomy` (`term_id`,`taxonomy`), + KEY `taxonomy` (`taxonomy`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_terms` ( + `term_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(200) NOT NULL DEFAULT '', + `slug` varchar(200) NOT NULL DEFAULT '', + `term_group` bigint(10) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_id`), + KEY `name` (`name`), + KEY `slug` (`slug`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_usermeta` ( + `umeta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`umeta_id`), + KEY `user_id` (`user_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_users` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_login` varchar(60) NOT NULL DEFAULT '', + `user_pass` varchar(64) NOT NULL DEFAULT '', + `user_nicename` varchar(50) NOT NULL DEFAULT '', + `user_email` varchar(100) NOT NULL DEFAULT '', + `user_url` varchar(100) NOT NULL DEFAULT '', + `user_registered` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `user_activation_key` varchar(60) NOT NULL DEFAULT '', + `user_status` int(11) NOT NULL DEFAULT '0', + `display_name` varchar(250) NOT NULL DEFAULT '', + PRIMARY KEY (`ID`), + KEY `user_login_key` (`user_login`), + KEY `user_nicename` (`user_nicename`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `bot_passwords` ( + `bp_user` int(11) NOT NULL, + `bp_app_id` varbinary(32) 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_restrictions` blob NOT NULL, + `bp_grants` blob NOT NULL, + PRIMARY KEY (`bp_user`,`bp_app_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `category` ( + `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `cat_pages` int(11) NOT NULL DEFAULT '0', + `cat_subcats` int(11) NOT NULL DEFAULT '0', + `cat_files` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`cat_id`), + UNIQUE KEY `cat_title` (`cat_title`), + KEY `cat_pages` (`cat_pages`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `categorylinks` ( + `cl_from` int(10) unsigned NOT NULL DEFAULT '0', + `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', + `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `cl_collation` varbinary(32) NOT NULL DEFAULT '', + `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', + UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), + KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), + KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), + KEY `cl_collation_ext` (`cl_collation`,`cl_to`,`cl_type`,`cl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `change_tag` ( + `ct_rc_id` int(11) DEFAULT NULL, + `ct_log_id` int(11) DEFAULT NULL, + `ct_rev_id` int(11) DEFAULT NULL, + `ct_tag` varchar(255) NOT NULL, + `ct_params` blob, + UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), + UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), + UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), + KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_email_batch` ( + `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `eeb_user_id` int(10) unsigned NOT NULL, + `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', + `eeb_event_id` int(10) unsigned NOT NULL, + `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eeb_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`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_event` ( + `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_agent_id` int(10) unsigned DEFAULT NULL, + `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_page_namespace` int(10) unsigned DEFAULT NULL, + `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_extra` blob, + `event_page_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`event_id`), + KEY `echo_event_type` (`event_type`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_notification` ( + `notification_event` int(10) unsigned NOT NULL, + `notification_user` int(10) unsigned NOT NULL, + `notification_timestamp` binary(14) NOT NULL, + `notification_read_timestamp` binary(14) DEFAULT NULL, + `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', + `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `user_event` (`notification_user`,`notification_event`), + KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), + KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), + KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), + KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), + KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_target_page` ( + `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`etp_id`), + KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), + KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `external_user` ( + `eu_local_id` int(10) unsigned NOT NULL, + `eu_external_id` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eu_local_id`), + UNIQUE KEY `eu_external_id` (`eu_external_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `externallinks` ( + `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `el_from` int(10) unsigned NOT NULL DEFAULT '0', + `el_to` blob NOT NULL, + `el_index` blob NOT NULL, + PRIMARY KEY (`el_id`), + KEY `el_from` (`el_from`,`el_to`(40)), + KEY `el_to` (`el_to`(60),`el_from`), + KEY `el_index` (`el_index`(60)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `filearchive` ( + `fa_id` int(11) NOT NULL AUTO_INCREMENT, + `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', + `fa_storage_group` varbinary(16) DEFAULT NULL, + `fa_storage_key` varbinary(64) DEFAULT '', + `fa_deleted_user` int(11) DEFAULT NULL, + `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted_reason` varbinary(767) DEFAULT '', + `fa_size` int(10) unsigned DEFAULT '0', + `fa_width` int(11) DEFAULT '0', + `fa_height` int(11) DEFAULT '0', + `fa_metadata` mediumblob, + `fa_bits` int(11) DEFAULT '0', + `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `fa_minor_mime` varbinary(100) DEFAULT 'unknown', + `fa_description` varbinary(767) DEFAULT NULL, + `fa_user` int(10) unsigned DEFAULT '0', + `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `fa_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fa_id`), + KEY `fa_name` (`fa_name`,`fa_timestamp`), + KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), + KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), + KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), + KEY `fa_sha1` (`fa_sha1`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedimages` ( + `fi_rev_id` int(10) unsigned NOT NULL, + `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fi_img_timestamp` varbinary(14) DEFAULT NULL, + `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fi_rev_id`,`fi_name`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( + `fpc_page_id` int(10) unsigned NOT NULL, + `fpc_select` int(11) NOT NULL, + `fpc_override` tinyint(1) NOT NULL, + `fpc_level` varbinary(60) DEFAULT NULL, + `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', + PRIMARY KEY (`fpc_page_id`), + KEY `fpc_expiry` (`fpc_expiry`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( + `fpp_page_id` int(10) unsigned NOT NULL, + `fpp_quality` tinyint(1) NOT NULL, + `fpp_rev_id` int(10) unsigned NOT NULL, + `fpp_pending_since` varbinary(14) NOT NULL, + PRIMARY KEY (`fpp_page_id`,`fpp_quality`), + KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpages` ( + `fp_page_id` int(10) unsigned NOT NULL, + `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', + `fp_pending_since` varbinary(14) DEFAULT NULL, + `fp_stable` int(10) unsigned NOT NULL, + `fp_quality` tinyint(1) DEFAULT NULL, + PRIMARY KEY (`fp_page_id`), + KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), + KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), + KEY `fp_pending_since` (`fp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs` ( + `fr_rev_id` int(10) unsigned NOT NULL, + `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', + `fr_page_id` int(10) unsigned NOT NULL, + `fr_user` int(10) unsigned NOT NULL, + `fr_timestamp` varbinary(14) NOT NULL, + `fr_quality` tinyint(1) NOT NULL DEFAULT '0', + `fr_tags` mediumblob NOT NULL, + `fr_flags` tinyblob NOT NULL, + `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fr_img_timestamp` varbinary(14) DEFAULT NULL, + `fr_img_sha1` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`fr_rev_id`), + KEY `page_rev` (`fr_page_id`,`fr_rev_id`), + KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), + KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), + KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), + KEY `fr_img_sha1` (`fr_img_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( + `frp_user_id` int(10) unsigned NOT NULL, + `frp_user_params` mediumblob NOT NULL, + PRIMARY KEY (`frp_user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( + `frs_timestamp` varbinary(14) NOT NULL, + `frs_stat_key` varchar(255) NOT NULL, + `frs_stat_val` bigint(20) NOT NULL, + PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), + KEY `frs_timestamp` (`frs_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( + `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', + `ftr_namespace` int(11) NOT NULL DEFAULT '0', + `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), + KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( + `ft_rev_id` int(10) unsigned NOT NULL, + `ft_namespace` int(11) NOT NULL DEFAULT '0', + `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target` blob NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`(255),`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`(255)) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_revision` ( + `rev_id` binary(11) NOT NULL, + `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', + `rev_user_id` bigint(20) unsigned NOT NULL, + `rev_user_ip` varbinary(39) DEFAULT NULL, + `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_parent_id` binary(11) DEFAULT NULL, + `rev_flags` tinyblob NOT NULL, + `rev_content` mediumblob NOT NULL, + `rev_change_type` varbinary(255) DEFAULT NULL, + `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_mod_user_ip` varbinary(39) DEFAULT NULL, + `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_last_edit_id` binary(11) DEFAULT NULL, + `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_edit_user_ip` varbinary(39) DEFAULT NULL, + `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_content_length` int(11) NOT NULL DEFAULT '0', + `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`rev_id`), + UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), + KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), + KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_subscription` ( + `subscription_workflow_id` int(10) unsigned NOT NULL, + `subscription_user_id` bigint(20) unsigned NOT NULL, + `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), + KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_topic_list` ( + `topic_list_id` binary(11) NOT NULL, + `topic_id` binary(11) DEFAULT NULL, + UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), + KEY `flow_topic_list_topic_id` (`topic_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_node` ( + `tree_ancestor_id` binary(11) NOT NULL, + `tree_descendant_id` binary(11) NOT NULL, + `tree_depth` smallint(6) NOT NULL, + UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), + UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( + `tree_rev_descendant_id` binary(11) NOT NULL, + `tree_rev_id` binary(11) NOT NULL, + `tree_orig_user_id` bigint(20) unsigned NOT NULL, + `tree_orig_user_ip` varbinary(39) DEFAULT NULL, + `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `tree_parent_id` binary(11) DEFAULT NULL, + PRIMARY KEY (`tree_rev_id`), + KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target_namespace` int(11) NOT NULL, + `ref_target_title` varbinary(255) NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_workflow` ( + `workflow_id` binary(11) NOT NULL, + `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_namespace` int(11) NOT NULL, + `workflow_page_id` int(10) unsigned NOT NULL, + `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_last_update_timestamp` binary(14) NOT NULL, + `workflow_lock_state` int(10) unsigned NOT NULL, + `workflow_type` varbinary(16) NOT NULL, + PRIMARY KEY (`workflow_id`), + KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), + KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `historical_thread` ( + `hthread_id` int(8) unsigned NOT NULL, + `hthread_revision` int(8) unsigned NOT NULL, + `hthread_contents` blob NOT NULL, + `hthread_change_type` int(4) unsigned NOT NULL, + `hthread_change_object` int(8) unsigned DEFAULT NULL, + PRIMARY KEY (`hthread_id`,`hthread_revision`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `image` ( + `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `img_size` int(10) unsigned NOT NULL DEFAULT '0', + `img_width` int(11) NOT NULL DEFAULT '0', + `img_height` int(11) NOT NULL DEFAULT '0', + `img_metadata` mediumblob NOT NULL, + `img_bits` int(11) NOT NULL DEFAULT '0', + `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `img_description` varbinary(767) NOT NULL, + `img_user` int(10) unsigned NOT NULL DEFAULT '0', + `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `img_timestamp` varbinary(14) NOT NULL DEFAULT '', + `img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`img_name`), + KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), + KEY `img_size` (`img_size`), + KEY `img_timestamp` (`img_timestamp`), + KEY `img_sha1` (`img_sha1`), + KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `imagelinks` ( + `il_from` int(10) unsigned NOT NULL DEFAULT '0', + `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `il_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `il_from` (`il_from`,`il_to`), + UNIQUE KEY `il_to` (`il_to`,`il_from`), + KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `interwiki` ( + `iw_prefix` varchar(32) NOT NULL, + `iw_url` blob NOT NULL, + `iw_api` blob NOT NULL, + `iw_wikiid` varchar(64) NOT NULL, + `iw_local` tinyint(1) NOT NULL, + `iw_trans` tinyint(4) NOT NULL DEFAULT '0', + UNIQUE KEY `iw_prefix` (`iw_prefix`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `ipblocks` ( + `ipb_id` int(11) NOT NULL AUTO_INCREMENT, + `ipb_address` tinyblob NOT NULL, + `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ipb_reason` varbinary(767) NOT NULL, + `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `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 DEFAULT '', + `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(11) DEFAULT NULL, + PRIMARY KEY (`ipb_id`), + UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), + 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 AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `iwlinks` ( + `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', + `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', + `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), + 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=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `job` ( + `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `job_cmd` varbinary(60) NOT NULL DEFAULT '', + `job_namespace` int(11) NOT NULL, + `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `job_params` blob NOT NULL, + `job_timestamp` varbinary(14) DEFAULT NULL, + `job_random` int(10) unsigned NOT NULL DEFAULT '0', + `job_token` varbinary(32) NOT NULL DEFAULT '', + `job_token_timestamp` varbinary(14) DEFAULT NULL, + `job_sha1` varbinary(32) NOT NULL DEFAULT '', + `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`job_id`), + KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), + KEY `job_timestamp` (`job_timestamp`), + KEY `job_sha1` (`job_sha1`), + KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), + KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `l10n_cache` ( + `lc_lang` varbinary(32) NOT NULL, + `lc_key` varchar(255) NOT NULL, + `lc_value` mediumblob NOT NULL, + KEY `lc_lang_key` (`lc_lang`,`lc_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `langlinks` ( + `ll_from` int(10) unsigned NOT NULL DEFAULT '0', + `ll_lang` varbinary(20) NOT NULL DEFAULT '', + `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), + KEY `ll_lang` (`ll_lang`,`ll_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `log_search` ( + `ls_field` varbinary(32) NOT NULL, + `ls_value` varchar(255) NOT NULL, + `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', + UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), + KEY `ls_log_id` (`ls_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `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_user` int(10) unsigned NOT NULL DEFAULT '0', + `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_namespace` int(11) NOT NULL DEFAULT '0', + `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_page` int(10) unsigned DEFAULT NULL, + `log_comment` varbinary(767) NOT NULL DEFAULT '', + `log_params` blob NOT NULL, + `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`log_id`), + KEY `type_time` (`log_type`,`log_timestamp`), + KEY `user_time` (`log_user`,`log_timestamp`), + KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), + KEY `times` (`log_timestamp`), + KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), + KEY `log_page_id_time` (`log_page`,`log_timestamp`), + KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), + KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), + KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `math` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_outputhash` varbinary(16) NOT NULL, + `math_html_conservativeness` tinyint(4) NOT NULL, + `math_html` text, + `math_mathml` text, + UNIQUE KEY `math_inputhash` (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `mathoid` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_input` text NOT NULL, + `math_tex` text, + `math_mathml` text, + `math_svg` text, + `math_style` tinyint(4) DEFAULT NULL, + `math_input_type` tinyint(4) DEFAULT NULL, + PRIMARY KEY (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `module_deps` ( + `md_module` varbinary(255) NOT NULL, + `md_skin` varbinary(32) NOT NULL, + `md_deps` mediumblob NOT NULL, + UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `objectcache` ( + `keyname` varbinary(255) NOT NULL DEFAULT '', + `value` mediumblob, + `exptime` datetime DEFAULT NULL, + PRIMARY KEY (`keyname`), + KEY `exptime` (`exptime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `oldimage` ( + `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_size` int(10) unsigned NOT NULL DEFAULT '0', + `oi_width` int(11) NOT NULL DEFAULT '0', + `oi_height` int(11) NOT NULL DEFAULT '0', + `oi_bits` int(11) NOT NULL DEFAULT '0', + `oi_description` varbinary(767) NOT NULL, + `oi_user` int(10) unsigned NOT NULL DEFAULT '0', + `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `oi_metadata` mediumblob NOT NULL, + `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `oi_sha1` varbinary(32) NOT NULL DEFAULT '', + KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), + KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), + KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), + KEY `oi_sha1` (`oi_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page` ( + `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `page_namespace` int(11) NOT NULL, + `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `page_restrictions` tinyblob NOT NULL, + `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_random` double unsigned NOT NULL, + `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `page_latest` int(10) unsigned NOT NULL, + `page_len` int(10) unsigned NOT NULL, + `page_content_model` varbinary(32) DEFAULT NULL, + `page_links_updated` varbinary(14) DEFAULT NULL, + `page_lang` varbinary(35) DEFAULT NULL, + PRIMARY KEY (`page_id`), + UNIQUE KEY `name_title` (`page_namespace`,`page_title`), + KEY `page_random` (`page_random`), + KEY `page_len` (`page_len`), + KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_props` ( + `pp_page` int(11) NOT NULL, + `pp_propname` varbinary(60) NOT NULL, + `pp_value` blob NOT NULL, + `pp_sortkey` float DEFAULT NULL, + UNIQUE KEY `pp_page_propname` (`pp_page`,`pp_propname`), + UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), + UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_restrictions` ( + `pr_page` int(11) NOT NULL, + `pr_type` varbinary(60) NOT NULL, + `pr_level` varbinary(60) NOT NULL, + `pr_cascade` tinyint(4) NOT NULL, + `pr_user` int(11) DEFAULT NULL, + `pr_expiry` varbinary(14) DEFAULT NULL, + `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`pr_id`), + UNIQUE KEY `pr_pagetype` (`pr_page`,`pr_type`), + KEY `pr_typelevel` (`pr_type`,`pr_level`), + KEY `pr_level` (`pr_level`), + KEY `pr_cascade` (`pr_cascade`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `pagelinks` ( + `pl_from` int(10) unsigned NOT NULL DEFAULT '0', + `pl_namespace` int(11) NOT NULL DEFAULT '0', + `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `pl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), + UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), + KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `protected_titles` ( + `pt_namespace` int(11) NOT NULL, + `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `pt_user` int(10) unsigned NOT NULL, + `pt_reason` varbinary(767) DEFAULT NULL, + `pt_timestamp` binary(14) NOT NULL, + `pt_expiry` varbinary(14) NOT NULL DEFAULT '', + `pt_create_perm` varbinary(60) NOT NULL, + UNIQUE KEY `pt_namespace_title` (`pt_namespace`,`pt_title`), + KEY `pt_timestamp` (`pt_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache` ( + `qc_type` varbinary(32) NOT NULL, + `qc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qc_namespace` int(11) NOT NULL DEFAULT '0', + `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qc_type` (`qc_type`,`qc_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache_info` ( + `qci_type` varbinary(32) NOT NULL DEFAULT '', + `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', + UNIQUE KEY `qci_type` (`qci_type`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycachetwo` ( + `qcc_type` varbinary(32) NOT NULL, + `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qcc_namespace` int(11) NOT NULL DEFAULT '0', + `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', + `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qcc_type` (`qcc_type`,`qcc_value`), + KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), + KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `recentchanges` ( + `rc_id` int(11) NOT NULL AUTO_INCREMENT, + `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', + `rc_user` int(10) unsigned NOT NULL DEFAULT '0', + `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rc_namespace` int(11) NOT NULL DEFAULT '0', + `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rc_comment` varbinary(767) NOT NULL DEFAULT '', + `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', + `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_ip` varbinary(40) NOT NULL DEFAULT '', + `rc_old_len` int(11) DEFAULT NULL, + `rc_new_len` int(11) DEFAULT NULL, + `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_log_type` varbinary(255) DEFAULT NULL, + `rc_log_action` varbinary(255) DEFAULT NULL, + `rc_params` blob, + `rc_source` varbinary(16) NOT NULL DEFAULT '', + PRIMARY KEY (`rc_id`), + KEY `rc_timestamp` (`rc_timestamp`), + KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), + KEY `rc_cur_id` (`rc_cur_id`), + KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), + KEY `rc_ip` (`rc_ip`), + KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), + KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `redirect` ( + `rd_from` int(10) unsigned NOT NULL DEFAULT '0', + `rd_namespace` int(11) NOT NULL DEFAULT '0', + `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rd_interwiki` varchar(32) DEFAULT NULL, + `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + PRIMARY KEY (`rd_from`), + KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `revision` ( + `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `rev_page` int(10) unsigned NOT NULL, + `rev_text_id` int(10) unsigned NOT NULL, + `rev_comment` varbinary(767) NOT NULL, + `rev_user` int(10) unsigned NOT NULL DEFAULT '0', + `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_len` int(10) unsigned DEFAULT NULL, + `rev_parent_id` int(10) unsigned DEFAULT NULL, + `rev_sha1` varbinary(32) NOT NULL DEFAULT '', + `rev_content_format` varbinary(64) DEFAULT NULL, + `rev_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`rev_id`), + UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), + KEY `rev_timestamp` (`rev_timestamp`), + KEY `page_timestamp` (`rev_page`,`rev_timestamp`), + KEY `user_timestamp` (`rev_user`,`rev_timestamp`), + KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), + KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `searchindex` ( + `si_page` int(10) unsigned NOT NULL, + `si_title` varchar(255) NOT NULL DEFAULT '', + `si_text` mediumtext NOT NULL, + UNIQUE KEY `si_page` (`si_page`), + FULLTEXT KEY `si_title` (`si_title`), + FULLTEXT KEY `si_text` (`si_text`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_identifiers` ( + `si_site` int(10) unsigned NOT NULL, + `si_type` varbinary(32) NOT NULL, + `si_key` varbinary(32) NOT NULL, + UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), + KEY `site_ids_site` (`si_site`), + KEY `site_ids_key` (`si_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_stats` ( + `ss_row_id` int(10) unsigned NOT NULL, + `ss_total_edits` bigint(20) unsigned DEFAULT '0', + `ss_good_articles` bigint(20) unsigned DEFAULT '0', + `ss_total_pages` bigint(20) DEFAULT '-1', + `ss_users` bigint(20) DEFAULT '-1', + `ss_active_users` bigint(20) DEFAULT '-1', + `ss_images` int(11) DEFAULT '0', + UNIQUE KEY `ss_row_id` (`ss_row_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `sites` ( + `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `site_global_key` varbinary(32) NOT NULL, + `site_type` varbinary(32) NOT NULL, + `site_group` varbinary(32) NOT NULL, + `site_source` varbinary(32) NOT NULL, + `site_language` varbinary(32) NOT NULL, + `site_protocol` varbinary(32) NOT NULL, + `site_domain` varchar(255) NOT NULL, + `site_data` blob NOT NULL, + `site_forward` tinyint(1) NOT NULL, + `site_config` blob NOT NULL, + PRIMARY KEY (`site_id`), + UNIQUE KEY `sites_global_key` (`site_global_key`), + KEY `sites_type` (`site_type`), + KEY `sites_group` (`site_group`), + KEY `sites_source` (`site_source`), + KEY `sites_language` (`site_language`), + KEY `sites_protocol` (`site_protocol`), + KEY `sites_domain` (`site_domain`), + KEY `sites_forward` (`site_forward`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `tag_summary` ( + `ts_rc_id` int(11) DEFAULT NULL, + `ts_log_id` int(11) DEFAULT NULL, + `ts_rev_id` int(11) DEFAULT NULL, + `ts_tags` blob NOT NULL, + UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), + UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), + UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `templatelinks` ( + `tl_from` int(10) unsigned NOT NULL DEFAULT '0', + `tl_namespace` int(11) NOT NULL DEFAULT '0', + `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `tl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), + UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), + KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `text` ( + `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `old_text` mediumblob NOT NULL, + `old_flags` tinyblob NOT NULL, + PRIMARY KEY (`old_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread` ( + `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, + `thread_root` int(8) unsigned NOT NULL, + `thread_ancestor` int(8) unsigned NOT NULL, + `thread_parent` int(8) unsigned DEFAULT NULL, + `thread_summary_page` int(8) unsigned DEFAULT NULL, + `thread_subject` varchar(255) DEFAULT NULL, + `thread_author_id` int(10) unsigned DEFAULT NULL, + `thread_author_name` varchar(255) DEFAULT NULL, + `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_editedness` int(1) NOT NULL DEFAULT '0', + `thread_article_namespace` int(11) NOT NULL, + `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `thread_article_id` int(8) unsigned NOT NULL, + `thread_type` int(4) unsigned NOT NULL DEFAULT '0', + `thread_sortkey` varchar(255) NOT NULL DEFAULT '', + `thread_replies` int(8) DEFAULT '-1', + `thread_signature` tinyblob, + PRIMARY KEY (`thread_id`), + UNIQUE KEY `thread_root` (`thread_root`), + UNIQUE KEY `thread_root_2` (`thread_root`), + KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), + KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), + KEY `thread_article` (`thread_article_id`,`thread_sortkey`), + KEY `thread_modified` (`thread_modified`), + KEY `thread_created` (`thread_created`), + KEY `thread_summary_page` (`thread_summary_page`), + KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), + KEY `thread_sortkey` (`thread_sortkey`), + KEY `thread_parent` (`thread_parent`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_history` ( + `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `th_thread` int(10) unsigned NOT NULL, + `th_timestamp` varbinary(14) NOT NULL, + `th_user` int(10) unsigned NOT NULL, + `th_user_text` varchar(255) NOT NULL, + `th_change_type` int(10) unsigned NOT NULL, + `th_change_object` int(10) unsigned NOT NULL, + `th_change_comment` tinytext NOT NULL, + `th_content` longblob NOT NULL, + PRIMARY KEY (`th_id`), + KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), + KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), + KEY `th_user_text` (`th_user`,`th_user_text`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( + `tpr_thread` int(10) unsigned NOT NULL, + `tpr_relationship` varbinary(64) NOT NULL, + `tpr_title` varbinary(255) NOT NULL, + `tpr_type` varbinary(32) NOT NULL, + PRIMARY KEY (`tpr_thread`,`tpr_relationship`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_reaction` ( + `tr_thread` int(10) unsigned NOT NULL, + `tr_user` int(10) unsigned NOT NULL, + `tr_user_text` varbinary(255) NOT NULL, + `tr_type` varbinary(64) NOT NULL, + `tr_value` int(11) NOT NULL, + PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), + KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `trackbacks` ( + `tb_id` int(11) NOT NULL AUTO_INCREMENT, + `tb_page` int(11) DEFAULT NULL, + `tb_title` varchar(255) NOT NULL, + `tb_url` blob NOT NULL, + `tb_ex` text, + `tb_name` varchar(255) DEFAULT NULL, + PRIMARY KEY (`tb_id`), + KEY `tb_page` (`tb_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `transcache` ( + `tc_url` varbinary(255) NOT NULL, + `tc_contents` text, + `tc_time` binary(14) DEFAULT NULL, + UNIQUE KEY `tc_url_idx` (`tc_url`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `updatelog` ( + `ul_key` varchar(255) NOT NULL, + `ul_value` blob, + PRIMARY KEY (`ul_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `uploadstash` ( + `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `us_user` int(10) unsigned NOT NULL, + `us_key` varchar(255) NOT NULL, + `us_orig_path` varchar(255) NOT NULL, + `us_path` varchar(255) NOT NULL, + `us_source_type` varchar(50) DEFAULT NULL, + `us_timestamp` varbinary(14) NOT NULL, + `us_status` varchar(50) NOT NULL, + `us_size` int(10) unsigned NOT NULL, + `us_sha1` varchar(31) NOT NULL, + `us_mime` varchar(255) DEFAULT NULL, + `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `us_image_width` int(10) unsigned DEFAULT NULL, + `us_image_height` int(10) unsigned DEFAULT NULL, + `us_image_bits` smallint(5) unsigned DEFAULT NULL, + `us_chunk_inx` int(10) unsigned DEFAULT NULL, + `us_props` blob, + PRIMARY KEY (`us_id`), + UNIQUE KEY `us_key` (`us_key`), + KEY `us_user` (`us_user`), + KEY `us_timestamp` (`us_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user` ( + `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_password` tinyblob NOT NULL, + `user_newpassword` tinyblob NOT NULL, + `user_newpass_time` binary(14) DEFAULT NULL, + `user_email` tinytext NOT NULL, + `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `user_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', + `user_email_authenticated` binary(14) DEFAULT NULL, + `user_email_token` binary(32) DEFAULT NULL, + `user_email_token_expires` binary(14) DEFAULT NULL, + `user_registration` binary(14) DEFAULT NULL, + `user_editcount` int(11) DEFAULT NULL, + PRIMARY KEY (`user_id`), + UNIQUE KEY `user_name` (`user_name`), + KEY `user_email_token` (`user_email_token`), + KEY `user_email` (`user_email`(50)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_former_groups` ( + `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', + `ufg_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_groups` ( + `ug_user` int(10) unsigned NOT NULL DEFAULT '0', + `ug_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), + KEY `ug_group` (`ug_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_message_state` ( + `ums_user` int(10) unsigned NOT NULL, + `ums_thread` int(8) unsigned NOT NULL, + `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', + `ums_read_timestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`ums_user`,`ums_thread`), + KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_newtalk` ( + `user_id` int(10) unsigned NOT NULL DEFAULT '0', + `user_ip` varbinary(40) NOT NULL DEFAULT '', + `user_last_timestamp` varbinary(14) DEFAULT NULL, + KEY `un_user_id` (`user_id`), + KEY `un_user_ip` (`user_ip`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_properties` ( + `up_user` int(11) NOT NULL, + `up_property` varbinary(255) DEFAULT NULL, + `up_value` blob, + UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), + KEY `user_properties_property` (`up_property`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `valid_tag` ( + `vt_tag` varchar(255) NOT NULL, + PRIMARY KEY (`vt_tag`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `watchlist` ( + `wl_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `wl_user` int(10) unsigned NOT NULL, + `wl_namespace` int(11) NOT NULL DEFAULT '0', + `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`wl_id`), + UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), + KEY `namespace_title` (`wl_namespace`,`wl_title`), + KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + diff --git a/DeveloperDump/ptwikitolearn.struct.sql b/DeveloperDump/ptwikitolearn.struct.sql index cd9504d..daa02f6 100644 --- a/DeveloperDump/ptwikitolearn.struct.sql +++ b/DeveloperDump/ptwikitolearn.struct.sql @@ -1,1178 +1,1380 @@ - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; -/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; -/*!40103 SET TIME_ZONE='+00:00' */; -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `archive` ( - `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `ar_namespace` int(11) NOT NULL DEFAULT '0', - `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ar_text` mediumblob NOT NULL, - `ar_comment` varbinary(767) NOT NULL, - `ar_user` int(10) unsigned NOT NULL DEFAULT '0', - `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', - `ar_flags` tinyblob NOT NULL, - `ar_rev_id` int(10) unsigned DEFAULT NULL, - `ar_text_id` int(10) unsigned DEFAULT NULL, - `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `ar_len` int(10) unsigned DEFAULT NULL, - `ar_page_id` int(10) unsigned DEFAULT NULL, - `ar_parent_id` int(10) unsigned DEFAULT NULL, - `ar_sha1` varbinary(32) NOT NULL DEFAULT '', - `ar_content_model` varbinary(32) DEFAULT NULL, - `ar_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`ar_id`), - KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), - KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), - KEY `ar_revid` (`ar_rev_id`), - KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `category` ( - `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `cat_pages` int(11) NOT NULL DEFAULT '0', - `cat_subcats` int(11) NOT NULL DEFAULT '0', - `cat_files` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`cat_id`), - UNIQUE KEY `cat_title` (`cat_title`), - KEY `cat_pages` (`cat_pages`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `categorylinks` ( - `cl_from` int(10) unsigned NOT NULL DEFAULT '0', - `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', - `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `cl_collation` varbinary(32) NOT NULL DEFAULT '', - `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', - UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), - KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), - KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), - KEY `cl_collation` (`cl_collation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `change_tag` ( - `ct_rc_id` int(11) DEFAULT NULL, - `ct_log_id` int(11) DEFAULT NULL, - `ct_rev_id` int(11) DEFAULT NULL, - `ct_tag` varchar(255) NOT NULL, - `ct_params` blob, - UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), - UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), - UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), - KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_email_batch` ( - `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `eeb_user_id` int(10) unsigned NOT NULL, - `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', - `eeb_event_id` int(10) unsigned NOT NULL, - `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - PRIMARY KEY (`eeb_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`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_event` ( - `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_agent_id` int(10) unsigned DEFAULT NULL, - `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_page_namespace` int(10) unsigned DEFAULT NULL, - `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_extra` blob, - `event_page_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`event_id`), - KEY `echo_event_type` (`event_type`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_notification` ( - `notification_event` int(10) unsigned NOT NULL, - `notification_user` int(10) unsigned NOT NULL, - `notification_timestamp` binary(14) NOT NULL, - `notification_read_timestamp` binary(14) DEFAULT NULL, - `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', - `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `user_event` (`notification_user`,`notification_event`), - KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), - KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), - KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), - KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), - KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_target_page` ( - `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`etp_id`), - KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), - KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `externallinks` ( - `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `el_from` int(10) unsigned NOT NULL DEFAULT '0', - `el_to` blob NOT NULL, - `el_index` blob NOT NULL, - PRIMARY KEY (`el_id`), - KEY `el_from` (`el_from`,`el_to`(40)), - KEY `el_to` (`el_to`(60),`el_from`), - KEY `el_index` (`el_index`(60)) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `filearchive` ( - `fa_id` int(11) NOT NULL AUTO_INCREMENT, - `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', - `fa_storage_group` varbinary(16) DEFAULT NULL, - `fa_storage_key` varbinary(64) DEFAULT '', - `fa_deleted_user` int(11) DEFAULT NULL, - `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted_reason` varbinary(767) DEFAULT '', - `fa_size` int(10) unsigned DEFAULT '0', - `fa_width` int(11) DEFAULT '0', - `fa_height` int(11) DEFAULT '0', - `fa_metadata` mediumblob, - `fa_bits` int(11) DEFAULT '0', - `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `fa_minor_mime` varbinary(100) DEFAULT 'unknown', - `fa_description` varbinary(767) DEFAULT NULL, - `fa_user` int(10) unsigned DEFAULT '0', - `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `fa_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fa_id`), - KEY `fa_name` (`fa_name`,`fa_timestamp`), - KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), - KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), - KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), - KEY `fa_sha1` (`fa_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedimages` ( - `fi_rev_id` int(10) unsigned NOT NULL, - `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fi_img_timestamp` varbinary(14) DEFAULT NULL, - `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fi_rev_id`,`fi_name`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( - `fpc_page_id` int(10) unsigned NOT NULL, - `fpc_select` int(11) NOT NULL, - `fpc_override` tinyint(1) NOT NULL, - `fpc_level` varbinary(60) DEFAULT NULL, - `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', - PRIMARY KEY (`fpc_page_id`), - KEY `fpc_expiry` (`fpc_expiry`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( - `fpp_page_id` int(10) unsigned NOT NULL, - `fpp_quality` tinyint(1) NOT NULL, - `fpp_rev_id` int(10) unsigned NOT NULL, - `fpp_pending_since` varbinary(14) NOT NULL, - PRIMARY KEY (`fpp_page_id`,`fpp_quality`), - KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpages` ( - `fp_page_id` int(10) unsigned NOT NULL, - `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', - `fp_pending_since` varbinary(14) DEFAULT NULL, - `fp_stable` int(10) unsigned NOT NULL, - `fp_quality` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`fp_page_id`), - KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), - KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), - KEY `fp_pending_since` (`fp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs` ( - `fr_rev_id` int(10) unsigned NOT NULL, - `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', - `fr_page_id` int(10) unsigned NOT NULL, - `fr_user` int(10) unsigned NOT NULL, - `fr_timestamp` varbinary(14) NOT NULL, - `fr_quality` tinyint(1) NOT NULL DEFAULT '0', - `fr_tags` mediumblob NOT NULL, - `fr_flags` tinyblob NOT NULL, - `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fr_img_timestamp` varbinary(14) DEFAULT NULL, - `fr_img_sha1` varbinary(32) DEFAULT NULL, - PRIMARY KEY (`fr_rev_id`), - KEY `page_rev` (`fr_page_id`,`fr_rev_id`), - KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), - KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), - KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), - KEY `fr_img_sha1` (`fr_img_sha1`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( - `frp_user_id` int(10) unsigned NOT NULL, - `frp_user_params` mediumblob NOT NULL, - PRIMARY KEY (`frp_user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( - `frs_timestamp` varbinary(14) NOT NULL, - `frs_stat_key` varchar(255) NOT NULL, - `frs_stat_val` bigint(20) NOT NULL, - PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), - KEY `frs_timestamp` (`frs_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( - `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', - `ftr_namespace` int(11) NOT NULL DEFAULT '0', - `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), - KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( - `ft_rev_id` int(10) unsigned NOT NULL, - `ft_namespace` int(11) NOT NULL DEFAULT '0', - `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_revision` ( - `rev_id` binary(11) NOT NULL, - `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', - `rev_user_id` bigint(20) unsigned NOT NULL, - `rev_user_ip` varbinary(39) DEFAULT NULL, - `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_parent_id` binary(11) DEFAULT NULL, - `rev_flags` tinyblob NOT NULL, - `rev_content` mediumblob NOT NULL, - `rev_change_type` varbinary(255) DEFAULT NULL, - `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_mod_user_ip` varbinary(39) DEFAULT NULL, - `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_last_edit_id` binary(11) DEFAULT NULL, - `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_edit_user_ip` varbinary(39) DEFAULT NULL, - `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_content_length` int(11) NOT NULL DEFAULT '0', - `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`rev_id`), - UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), - KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), - KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_subscription` ( - `subscription_workflow_id` int(10) unsigned NOT NULL, - `subscription_user_id` bigint(20) unsigned NOT NULL, - `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), - KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_topic_list` ( - `topic_list_id` binary(11) NOT NULL, - `topic_id` binary(11) DEFAULT NULL, - UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), - KEY `flow_topic_list_topic_id` (`topic_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_node` ( - `tree_ancestor_id` binary(11) NOT NULL, - `tree_descendant_id` binary(11) NOT NULL, - `tree_depth` smallint(6) NOT NULL, - UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), - UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( - `tree_rev_descendant_id` binary(11) NOT NULL, - `tree_rev_id` binary(11) NOT NULL, - `tree_orig_user_id` bigint(20) unsigned NOT NULL, - `tree_orig_user_ip` varbinary(39) DEFAULT NULL, - `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tree_parent_id` binary(11) DEFAULT NULL, - PRIMARY KEY (`tree_rev_id`), - KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target_namespace` int(11) NOT NULL, - `ref_target_title` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_workflow` ( - `workflow_id` binary(11) NOT NULL, - `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_namespace` int(11) NOT NULL, - `workflow_page_id` int(10) unsigned NOT NULL, - `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_last_update_timestamp` binary(14) NOT NULL, - `workflow_lock_state` int(10) unsigned NOT NULL, - `workflow_type` varbinary(16) NOT NULL, - PRIMARY KEY (`workflow_id`), - KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), - KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `historical_thread` ( - `hthread_id` int(8) unsigned NOT NULL, - `hthread_revision` int(8) unsigned NOT NULL, - `hthread_contents` blob NOT NULL, - `hthread_change_type` int(4) unsigned NOT NULL, - `hthread_change_object` int(8) unsigned DEFAULT NULL, - PRIMARY KEY (`hthread_id`,`hthread_revision`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `image` ( - `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `img_size` int(10) unsigned NOT NULL DEFAULT '0', - `img_width` int(11) NOT NULL DEFAULT '0', - `img_height` int(11) NOT NULL DEFAULT '0', - `img_metadata` mediumblob NOT NULL, - `img_bits` int(11) NOT NULL DEFAULT '0', - `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `img_description` varbinary(767) NOT NULL, - `img_user` int(10) unsigned NOT NULL DEFAULT '0', - `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `img_timestamp` varbinary(14) NOT NULL DEFAULT '', - `img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`img_name`), - KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), - KEY `img_size` (`img_size`), - KEY `img_timestamp` (`img_timestamp`), - KEY `img_sha1` (`img_sha1`(10)), - KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `imagelinks` ( - `il_from` int(10) unsigned NOT NULL DEFAULT '0', - `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `il_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `il_from` (`il_from`,`il_to`), - UNIQUE KEY `il_to` (`il_to`,`il_from`), - KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `interwiki` ( - `iw_prefix` varchar(32) NOT NULL, - `iw_url` blob NOT NULL, - `iw_local` tinyint(1) NOT NULL, - `iw_trans` tinyint(4) NOT NULL DEFAULT '0', - `iw_api` blob NOT NULL, - `iw_wikiid` varchar(64) NOT NULL, - UNIQUE KEY `iw_prefix` (`iw_prefix`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ipblocks` ( - `ipb_id` int(11) NOT NULL AUTO_INCREMENT, - `ipb_address` tinyblob NOT NULL, - `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ipb_reason` varbinary(767) NOT NULL, - `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `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 DEFAULT '', - `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(11) DEFAULT NULL, - PRIMARY KEY (`ipb_id`), - UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `iwlinks` ( - `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', - `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', - `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `job` ( - `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `job_cmd` varbinary(60) NOT NULL DEFAULT '', - `job_namespace` int(11) NOT NULL, - `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `job_params` blob NOT NULL, - `job_timestamp` varbinary(14) DEFAULT NULL, - `job_random` int(10) unsigned NOT NULL DEFAULT '0', - `job_token` varbinary(32) NOT NULL DEFAULT '', - `job_token_timestamp` varbinary(14) DEFAULT NULL, - `job_sha1` varbinary(32) NOT NULL DEFAULT '', - `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', - PRIMARY KEY (`job_id`), - KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), - KEY `job_timestamp` (`job_timestamp`), - KEY `job_sha1` (`job_sha1`), - KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), - KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `l10n_cache` ( - `lc_lang` varbinary(32) NOT NULL, - `lc_key` varchar(255) NOT NULL, - `lc_value` mediumblob NOT NULL, - KEY `lc_lang_key` (`lc_lang`,`lc_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `langlinks` ( - `ll_from` int(10) unsigned NOT NULL DEFAULT '0', - `ll_lang` varbinary(20) NOT NULL DEFAULT '', - `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), - KEY `ll_lang` (`ll_lang`,`ll_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `log_search` ( - `ls_field` varbinary(32) NOT NULL, - `ls_value` varchar(255) NOT NULL, - `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', - UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), - KEY `ls_log_id` (`ls_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `logging` ( - `log_type` varbinary(32) NOT NULL, - `log_action` varbinary(32) NOT NULL, - `log_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - `log_user` int(10) unsigned NOT NULL DEFAULT '0', - `log_namespace` int(11) NOT NULL DEFAULT '0', - `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_comment` varbinary(767) NOT NULL DEFAULT '', - `log_params` blob NOT NULL, - `log_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_page` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`log_id`), - KEY `type_time` (`log_type`,`log_timestamp`), - KEY `user_time` (`log_user`,`log_timestamp`), - KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), - KEY `times` (`log_timestamp`), - KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), - KEY `log_page_id_time` (`log_page`,`log_timestamp`), - KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), - KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), - KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `math` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_outputhash` varbinary(16) NOT NULL, - `math_html_conservativeness` tinyint(4) NOT NULL, - `math_html` text, - `math_mathml` text, - UNIQUE KEY `math_inputhash` (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mathoid` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_input` text NOT NULL, - `math_tex` text, - `math_mathml` text, - `math_svg` text, - `math_style` tinyint(4) DEFAULT NULL, - `math_input_type` tinyint(4) DEFAULT NULL, - PRIMARY KEY (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `module_deps` ( - `md_module` varbinary(255) NOT NULL, - `md_skin` varbinary(32) NOT NULL, - `md_deps` mediumblob NOT NULL, - UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource` ( - `mr_resource` varbinary(255) NOT NULL, - `mr_lang` varbinary(32) NOT NULL, - `mr_blob` mediumblob NOT NULL, - `mr_timestamp` binary(14) NOT NULL, - UNIQUE KEY `mr_resource_lang` (`mr_resource`,`mr_lang`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource_links` ( - `mrl_resource` varbinary(255) NOT NULL, - `mrl_message` varbinary(255) NOT NULL, - UNIQUE KEY `mrl_message_resource` (`mrl_message`,`mrl_resource`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `objectcache` ( - `keyname` varbinary(255) NOT NULL DEFAULT '', - `value` mediumblob, - `exptime` datetime DEFAULT NULL, - UNIQUE KEY `keyname` (`keyname`), - KEY `exptime` (`exptime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `oldimage` ( - `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_size` int(10) unsigned NOT NULL DEFAULT '0', - `oi_width` int(11) NOT NULL DEFAULT '0', - `oi_height` int(11) NOT NULL DEFAULT '0', - `oi_bits` int(11) NOT NULL DEFAULT '0', - `oi_description` varbinary(767) NOT NULL, - `oi_user` int(10) unsigned NOT NULL DEFAULT '0', - `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `oi_metadata` mediumblob NOT NULL, - `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `oi_sha1` varbinary(32) NOT NULL DEFAULT '', - KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), - KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), - KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), - KEY `oi_sha1` (`oi_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page` ( - `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `page_namespace` int(11) NOT NULL, - `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `page_restrictions` tinyblob NOT NULL, - `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_random` double unsigned NOT NULL, - `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `page_latest` int(10) unsigned NOT NULL, - `page_len` int(10) unsigned NOT NULL, - `page_content_model` varbinary(32) DEFAULT NULL, - `page_links_updated` varbinary(14) DEFAULT NULL, - `page_lang` varbinary(35) DEFAULT NULL, - PRIMARY KEY (`page_id`), - UNIQUE KEY `name_title` (`page_namespace`,`page_title`), - KEY `page_random` (`page_random`), - KEY `page_len` (`page_len`), - KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_props` ( - `pp_page` int(11) NOT NULL, - `pp_propname` varbinary(60) NOT NULL, - `pp_value` blob NOT NULL, - `pp_sortkey` float DEFAULT NULL, - PRIMARY KEY (`pp_page`,`pp_propname`), - UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), - UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_restrictions` ( - `pr_page` int(11) NOT NULL, - `pr_type` varbinary(60) NOT NULL, - `pr_level` varbinary(60) NOT NULL, - `pr_cascade` tinyint(4) NOT NULL, - `pr_user` int(11) DEFAULT NULL, - `pr_expiry` varbinary(14) DEFAULT NULL, - `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`pr_page`,`pr_type`), - UNIQUE KEY `pr_id` (`pr_id`), - KEY `pr_typelevel` (`pr_type`,`pr_level`), - KEY `pr_level` (`pr_level`), - KEY `pr_cascade` (`pr_cascade`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pagelinks` ( - `pl_from` int(10) unsigned NOT NULL DEFAULT '0', - `pl_namespace` int(11) NOT NULL DEFAULT '0', - `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `pl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), - UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), - KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `protected_titles` ( - `pt_namespace` int(11) NOT NULL, - `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `pt_user` int(10) unsigned NOT NULL, - `pt_reason` varbinary(767) DEFAULT NULL, - `pt_timestamp` binary(14) NOT NULL, - `pt_expiry` varbinary(14) NOT NULL DEFAULT '', - `pt_create_perm` varbinary(60) NOT NULL, - PRIMARY KEY (`pt_namespace`,`pt_title`), - KEY `pt_timestamp` (`pt_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache` ( - `qc_type` varbinary(32) NOT NULL, - `qc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qc_namespace` int(11) NOT NULL DEFAULT '0', - `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qc_type` (`qc_type`,`qc_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache_info` ( - `qci_type` varbinary(32) NOT NULL DEFAULT '', - `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - UNIQUE KEY `qci_type` (`qci_type`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycachetwo` ( - `qcc_type` varbinary(32) NOT NULL, - `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qcc_namespace` int(11) NOT NULL DEFAULT '0', - `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', - `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qcc_type` (`qcc_type`,`qcc_value`), - KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), - KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `recentchanges` ( - `rc_id` int(11) NOT NULL AUTO_INCREMENT, - `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', - `rc_user` int(10) unsigned NOT NULL DEFAULT '0', - `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rc_namespace` int(11) NOT NULL, - `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rc_comment` varbinary(767) NOT NULL DEFAULT '', - `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', - `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_ip` varbinary(40) NOT NULL DEFAULT '', - `rc_old_len` int(11) DEFAULT NULL, - `rc_new_len` int(11) DEFAULT NULL, - `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_log_type` varbinary(255) DEFAULT NULL, - `rc_log_action` varbinary(255) DEFAULT NULL, - `rc_params` blob, - `rc_source` varbinary(16) NOT NULL DEFAULT '', - PRIMARY KEY (`rc_id`), - KEY `rc_timestamp` (`rc_timestamp`), - KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), - KEY `rc_cur_id` (`rc_cur_id`), - KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), - KEY `rc_ip` (`rc_ip`), - KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), - KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `redirect` ( - `rd_from` int(10) unsigned NOT NULL DEFAULT '0', - `rd_namespace` int(11) NOT NULL DEFAULT '0', - `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rd_interwiki` varchar(32) DEFAULT NULL, - `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - PRIMARY KEY (`rd_from`), - KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `revision` ( - `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `rev_page` int(10) unsigned NOT NULL, - `rev_text_id` int(10) unsigned NOT NULL, - `rev_comment` varbinary(767) NOT NULL, - `rev_user` int(10) unsigned NOT NULL DEFAULT '0', - `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_len` int(10) unsigned DEFAULT NULL, - `rev_parent_id` int(10) unsigned DEFAULT NULL, - `rev_sha1` varbinary(32) NOT NULL DEFAULT '', - `rev_content_model` varbinary(32) DEFAULT NULL, - `rev_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`rev_id`), - UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), - KEY `rev_timestamp` (`rev_timestamp`), - KEY `page_timestamp` (`rev_page`,`rev_timestamp`), - KEY `user_timestamp` (`rev_user`,`rev_timestamp`), - KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), - KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `searchindex` ( - `si_page` int(10) unsigned NOT NULL, - `si_title` varchar(255) NOT NULL DEFAULT '', - `si_text` mediumtext NOT NULL, - FULLTEXT KEY `si_title` (`si_title`), - FULLTEXT KEY `si_text` (`si_text`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_identifiers` ( - `si_site` int(10) unsigned NOT NULL, - `si_type` varbinary(32) NOT NULL, - `si_key` varbinary(32) NOT NULL, - UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), - KEY `site_ids_site` (`si_site`), - KEY `site_ids_key` (`si_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_stats` ( - `ss_row_id` int(10) unsigned NOT NULL, - `ss_total_edits` bigint(20) unsigned DEFAULT '0', - `ss_good_articles` bigint(20) unsigned DEFAULT '0', - `ss_total_pages` bigint(20) DEFAULT '-1', - `ss_users` bigint(20) DEFAULT '-1', - `ss_active_users` bigint(20) DEFAULT '-1', - `ss_images` int(11) DEFAULT '0', - UNIQUE KEY `ss_row_id` (`ss_row_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `sites` ( - `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `site_global_key` varbinary(32) NOT NULL, - `site_type` varbinary(32) NOT NULL, - `site_group` varbinary(32) NOT NULL, - `site_source` varbinary(32) NOT NULL, - `site_language` varbinary(32) NOT NULL, - `site_protocol` varbinary(32) NOT NULL, - `site_domain` varchar(255) NOT NULL, - `site_data` blob NOT NULL, - `site_forward` tinyint(1) NOT NULL, - `site_config` blob NOT NULL, - PRIMARY KEY (`site_id`), - UNIQUE KEY `sites_global_key` (`site_global_key`), - KEY `sites_type` (`site_type`), - KEY `sites_group` (`site_group`), - KEY `sites_source` (`site_source`), - KEY `sites_language` (`site_language`), - KEY `sites_protocol` (`site_protocol`), - KEY `sites_domain` (`site_domain`), - KEY `sites_forward` (`site_forward`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `tag_summary` ( - `ts_rc_id` int(11) DEFAULT NULL, - `ts_log_id` int(11) DEFAULT NULL, - `ts_rev_id` int(11) DEFAULT NULL, - `ts_tags` blob NOT NULL, - UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), - UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), - UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `templatelinks` ( - `tl_from` int(10) unsigned NOT NULL DEFAULT '0', - `tl_namespace` int(11) NOT NULL DEFAULT '0', - `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `tl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), - UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), - KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `text` ( - `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `old_text` mediumblob NOT NULL, - `old_flags` tinyblob NOT NULL, - PRIMARY KEY (`old_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread` ( - `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, - `thread_root` int(8) unsigned NOT NULL, - `thread_ancestor` int(8) unsigned NOT NULL, - `thread_parent` int(8) unsigned DEFAULT NULL, - `thread_summary_page` int(8) unsigned DEFAULT NULL, - `thread_subject` varchar(255) DEFAULT NULL, - `thread_author_id` int(10) unsigned DEFAULT NULL, - `thread_author_name` varchar(255) DEFAULT NULL, - `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_editedness` int(1) NOT NULL DEFAULT '0', - `thread_article_namespace` int(11) NOT NULL, - `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `thread_article_id` int(8) unsigned NOT NULL, - `thread_type` int(4) unsigned NOT NULL DEFAULT '0', - `thread_sortkey` varchar(255) NOT NULL DEFAULT '', - `thread_replies` int(8) DEFAULT '-1', - `thread_signature` tinyblob, - PRIMARY KEY (`thread_id`), - UNIQUE KEY `thread_root` (`thread_root`), - UNIQUE KEY `thread_root_2` (`thread_root`), - KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), - KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), - KEY `thread_article` (`thread_article_id`,`thread_sortkey`), - KEY `thread_modified` (`thread_modified`), - KEY `thread_created` (`thread_created`), - KEY `thread_summary_page` (`thread_summary_page`), - KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), - KEY `thread_sortkey` (`thread_sortkey`), - KEY `thread_parent` (`thread_parent`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_history` ( - `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `th_thread` int(10) unsigned NOT NULL, - `th_timestamp` varbinary(14) NOT NULL, - `th_user` int(10) unsigned NOT NULL, - `th_user_text` varchar(255) NOT NULL, - `th_change_type` int(10) unsigned NOT NULL, - `th_change_object` int(10) unsigned NOT NULL, - `th_change_comment` tinytext NOT NULL, - `th_content` longblob NOT NULL, - PRIMARY KEY (`th_id`), - KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), - KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), - KEY `th_user_text` (`th_user`,`th_user_text`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( - `tpr_thread` int(10) unsigned NOT NULL, - `tpr_relationship` varbinary(64) NOT NULL, - `tpr_title` varbinary(255) NOT NULL, - `tpr_type` varbinary(32) NOT NULL, - PRIMARY KEY (`tpr_thread`,`tpr_relationship`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_reaction` ( - `tr_thread` int(10) unsigned NOT NULL, - `tr_user` int(10) unsigned NOT NULL, - `tr_user_text` varbinary(255) NOT NULL, - `tr_type` varbinary(64) NOT NULL, - `tr_value` int(11) NOT NULL, - PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), - KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `transcache` ( - `tc_url` varbinary(255) NOT NULL, - `tc_contents` text, - `tc_time` binary(14) DEFAULT NULL, - UNIQUE KEY `tc_url_idx` (`tc_url`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `updatelog` ( - `ul_key` varchar(255) NOT NULL, - `ul_value` blob, - PRIMARY KEY (`ul_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uploadstash` ( - `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `us_user` int(10) unsigned NOT NULL, - `us_key` varchar(255) NOT NULL, - `us_orig_path` varchar(255) NOT NULL, - `us_path` varchar(255) NOT NULL, - `us_source_type` varchar(50) DEFAULT NULL, - `us_timestamp` varbinary(14) NOT NULL, - `us_status` varchar(50) NOT NULL, - `us_chunk_inx` int(10) unsigned DEFAULT NULL, - `us_props` blob, - `us_size` int(10) unsigned NOT NULL, - `us_sha1` varchar(31) NOT NULL, - `us_mime` varchar(255) DEFAULT NULL, - `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `us_image_width` int(10) unsigned DEFAULT NULL, - `us_image_height` int(10) unsigned DEFAULT NULL, - `us_image_bits` smallint(5) unsigned DEFAULT NULL, - PRIMARY KEY (`us_id`), - UNIQUE KEY `us_key` (`us_key`), - KEY `us_user` (`us_user`), - KEY `us_timestamp` (`us_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user` ( - `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_password` tinyblob NOT NULL, - `user_newpassword` tinyblob NOT NULL, - `user_newpass_time` binary(14) DEFAULT NULL, - `user_email` tinytext NOT NULL, - `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `user_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', - `user_email_authenticated` binary(14) DEFAULT NULL, - `user_email_token` binary(32) DEFAULT NULL, - `user_email_token_expires` binary(14) DEFAULT NULL, - `user_registration` binary(14) DEFAULT NULL, - `user_editcount` int(11) DEFAULT NULL, - PRIMARY KEY (`user_id`), - UNIQUE KEY `user_name` (`user_name`), - KEY `user_email_token` (`user_email_token`), - KEY `user_email` (`user_email`(50)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_former_groups` ( - `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', - `ufg_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_groups` ( - `ug_user` int(10) unsigned NOT NULL DEFAULT '0', - `ug_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), - KEY `ug_group` (`ug_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_message_state` ( - `ums_user` int(10) unsigned NOT NULL, - `ums_thread` int(8) unsigned NOT NULL, - `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', - `ums_read_timestamp` varbinary(14) DEFAULT NULL, - PRIMARY KEY (`ums_user`,`ums_thread`), - KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_newtalk` ( - `user_id` int(10) unsigned NOT NULL DEFAULT '0', - `user_ip` varbinary(40) NOT NULL DEFAULT '', - `user_last_timestamp` varbinary(14) DEFAULT NULL, - KEY `un_user_id` (`user_id`), - KEY `un_user_ip` (`user_ip`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_properties` ( - `up_user` int(11) NOT NULL, - `up_property` varbinary(255) NOT NULL, - `up_value` blob, - UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), - KEY `user_properties_property` (`up_property`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `valid_tag` ( - `vt_tag` varchar(255) NOT NULL, - PRIMARY KEY (`vt_tag`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `watchlist` ( - `wl_user` int(10) unsigned NOT NULL, - `wl_namespace` int(11) NOT NULL DEFAULT '0', - `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, - UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), - KEY `namespace_title` (`wl_namespace`,`wl_title`), - KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - -DROP INDEX flow_ext_ref_idx_v2 ON flow_ext_ref; DROP INDEX flow_ext_ref_revision_v2 ON flow_ext_ref; ALTER TABLE flow_ext_ref CHANGE ref_target ref_target BLOB NOT NULL; CREATE INDEX flow_ext_ref_idx_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_type, ref_target(255), ref_src_object_type, ref_src_object_id); CREATE INDEX flow_ext_ref_revision_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_src_object_type, ref_src_object_id, ref_type, ref_target(255)); + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `archive` ( + `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `ar_namespace` int(11) NOT NULL DEFAULT '0', + `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ar_text` mediumblob NOT NULL, + `ar_comment` varbinary(767) NOT NULL, + `ar_user` int(10) unsigned NOT NULL DEFAULT '0', + `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', + `ar_flags` tinyblob NOT NULL, + `ar_rev_id` int(10) unsigned DEFAULT NULL, + `ar_text_id` int(10) unsigned DEFAULT NULL, + `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `ar_len` int(10) unsigned DEFAULT NULL, + `ar_page_id` int(10) unsigned DEFAULT NULL, + `ar_parent_id` int(10) unsigned DEFAULT NULL, + `ar_sha1` varbinary(32) NOT NULL DEFAULT '', + `ar_content_format` varbinary(64) DEFAULT NULL, + `ar_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`ar_id`), + KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), + KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), + KEY `ar_revid` (`ar_rev_id`), + KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_commentmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `comment_id` (`comment_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_comments` ( + `comment_ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_post_ID` bigint(20) unsigned NOT NULL DEFAULT '0', + `comment_author` tinytext NOT NULL, + `comment_author_email` varchar(100) NOT NULL DEFAULT '', + `comment_author_url` varchar(200) NOT NULL DEFAULT '', + `comment_author_IP` varchar(100) NOT NULL DEFAULT '', + `comment_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_content` text NOT NULL, + `comment_karma` int(11) NOT NULL DEFAULT '0', + `comment_approved` varchar(20) NOT NULL DEFAULT '1', + `comment_agent` varchar(255) NOT NULL DEFAULT '', + `comment_type` varchar(20) NOT NULL DEFAULT '', + `comment_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`comment_ID`), + KEY `comment_post_ID` (`comment_post_ID`), + KEY `comment_approved_date_gmt` (`comment_approved`,`comment_date_gmt`), + KEY `comment_date_gmt` (`comment_date_gmt`), + KEY `comment_parent` (`comment_parent`), + KEY `comment_author_email` (`comment_author_email`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_links` ( + `link_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `link_url` varchar(255) NOT NULL DEFAULT '', + `link_name` varchar(255) NOT NULL DEFAULT '', + `link_image` varchar(255) NOT NULL DEFAULT '', + `link_target` varchar(25) NOT NULL DEFAULT '', + `link_description` varchar(255) NOT NULL DEFAULT '', + `link_visible` varchar(20) NOT NULL DEFAULT 'Y', + `link_owner` bigint(20) unsigned NOT NULL DEFAULT '1', + `link_rating` int(11) NOT NULL DEFAULT '0', + `link_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `link_rel` varchar(255) NOT NULL DEFAULT '', + `link_notes` mediumtext NOT NULL, + `link_rss` varchar(255) NOT NULL DEFAULT '', + PRIMARY KEY (`link_id`), + KEY `link_visible` (`link_visible`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_options` ( + `option_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `option_name` varchar(64) NOT NULL DEFAULT '', + `option_value` longtext NOT NULL, + `autoload` varchar(20) NOT NULL DEFAULT 'yes', + PRIMARY KEY (`option_id`), + UNIQUE KEY `option_name` (`option_name`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_postmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `post_id` (`post_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_posts` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_author` bigint(20) unsigned NOT NULL DEFAULT '0', + `post_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content` longtext NOT NULL, + `post_title` text NOT NULL, + `post_excerpt` text NOT NULL, + `post_status` varchar(20) NOT NULL DEFAULT 'publish', + `comment_status` varchar(20) NOT NULL DEFAULT 'open', + `ping_status` varchar(20) NOT NULL DEFAULT 'open', + `post_password` varchar(20) NOT NULL DEFAULT '', + `post_name` varchar(200) NOT NULL DEFAULT '', + `to_ping` text NOT NULL, + `pinged` text NOT NULL, + `post_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_modified_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content_filtered` longtext NOT NULL, + `post_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `guid` varchar(255) NOT NULL DEFAULT '', + `menu_order` int(11) NOT NULL DEFAULT '0', + `post_type` varchar(20) NOT NULL DEFAULT 'post', + `post_mime_type` varchar(100) NOT NULL DEFAULT '', + `comment_count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`), + KEY `post_name` (`post_name`), + KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`ID`), + KEY `post_parent` (`post_parent`), + KEY `post_author` (`post_author`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_relationships` ( + `object_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_taxonomy_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`object_id`,`term_taxonomy_id`), + KEY `term_taxonomy_id` (`term_taxonomy_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_taxonomy` ( + `term_taxonomy_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `term_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `taxonomy` varchar(32) NOT NULL DEFAULT '', + `description` longtext NOT NULL, + `parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_taxonomy_id`), + UNIQUE KEY `term_id_taxonomy` (`term_id`,`taxonomy`), + KEY `taxonomy` (`taxonomy`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_terms` ( + `term_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(200) NOT NULL DEFAULT '', + `slug` varchar(200) NOT NULL DEFAULT '', + `term_group` bigint(10) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_id`), + KEY `name` (`name`), + KEY `slug` (`slug`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_usermeta` ( + `umeta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`umeta_id`), + KEY `user_id` (`user_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_users` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_login` varchar(60) NOT NULL DEFAULT '', + `user_pass` varchar(64) NOT NULL DEFAULT '', + `user_nicename` varchar(50) NOT NULL DEFAULT '', + `user_email` varchar(100) NOT NULL DEFAULT '', + `user_url` varchar(100) NOT NULL DEFAULT '', + `user_registered` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `user_activation_key` varchar(60) NOT NULL DEFAULT '', + `user_status` int(11) NOT NULL DEFAULT '0', + `display_name` varchar(250) NOT NULL DEFAULT '', + PRIMARY KEY (`ID`), + KEY `user_login_key` (`user_login`), + KEY `user_nicename` (`user_nicename`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `bot_passwords` ( + `bp_user` int(11) NOT NULL, + `bp_app_id` varbinary(32) 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_restrictions` blob NOT NULL, + `bp_grants` blob NOT NULL, + PRIMARY KEY (`bp_user`,`bp_app_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `category` ( + `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `cat_pages` int(11) NOT NULL DEFAULT '0', + `cat_subcats` int(11) NOT NULL DEFAULT '0', + `cat_files` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`cat_id`), + UNIQUE KEY `cat_title` (`cat_title`), + KEY `cat_pages` (`cat_pages`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `categorylinks` ( + `cl_from` int(10) unsigned NOT NULL DEFAULT '0', + `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', + `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `cl_collation` varbinary(32) NOT NULL DEFAULT '', + `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', + UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), + KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), + KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), + KEY `cl_collation_ext` (`cl_collation`,`cl_to`,`cl_type`,`cl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `change_tag` ( + `ct_rc_id` int(11) DEFAULT NULL, + `ct_log_id` int(11) DEFAULT NULL, + `ct_rev_id` int(11) DEFAULT NULL, + `ct_tag` varchar(255) NOT NULL, + `ct_params` blob, + UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), + UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), + UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), + KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_email_batch` ( + `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `eeb_user_id` int(10) unsigned NOT NULL, + `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', + `eeb_event_id` int(10) unsigned NOT NULL, + `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eeb_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`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_event` ( + `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_agent_id` int(10) unsigned DEFAULT NULL, + `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_page_namespace` int(10) unsigned DEFAULT NULL, + `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_extra` blob, + `event_page_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`event_id`), + KEY `echo_event_type` (`event_type`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_notification` ( + `notification_event` int(10) unsigned NOT NULL, + `notification_user` int(10) unsigned NOT NULL, + `notification_timestamp` binary(14) NOT NULL, + `notification_read_timestamp` binary(14) DEFAULT NULL, + `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', + `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `user_event` (`notification_user`,`notification_event`), + KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), + KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), + KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), + KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), + KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_target_page` ( + `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`etp_id`), + KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), + KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `external_user` ( + `eu_local_id` int(10) unsigned NOT NULL, + `eu_external_id` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eu_local_id`), + UNIQUE KEY `eu_external_id` (`eu_external_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `externallinks` ( + `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `el_from` int(10) unsigned NOT NULL DEFAULT '0', + `el_to` blob NOT NULL, + `el_index` blob NOT NULL, + PRIMARY KEY (`el_id`), + KEY `el_from` (`el_from`,`el_to`(40)), + KEY `el_to` (`el_to`(60),`el_from`), + KEY `el_index` (`el_index`(60)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `filearchive` ( + `fa_id` int(11) NOT NULL AUTO_INCREMENT, + `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', + `fa_storage_group` varbinary(16) DEFAULT NULL, + `fa_storage_key` varbinary(64) DEFAULT '', + `fa_deleted_user` int(11) DEFAULT NULL, + `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted_reason` varbinary(767) DEFAULT '', + `fa_size` int(10) unsigned DEFAULT '0', + `fa_width` int(11) DEFAULT '0', + `fa_height` int(11) DEFAULT '0', + `fa_metadata` mediumblob, + `fa_bits` int(11) DEFAULT '0', + `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `fa_minor_mime` varbinary(100) DEFAULT 'unknown', + `fa_description` varbinary(767) DEFAULT NULL, + `fa_user` int(10) unsigned DEFAULT '0', + `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `fa_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fa_id`), + KEY `fa_name` (`fa_name`,`fa_timestamp`), + KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), + KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), + KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), + KEY `fa_sha1` (`fa_sha1`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedimages` ( + `fi_rev_id` int(10) unsigned NOT NULL, + `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fi_img_timestamp` varbinary(14) DEFAULT NULL, + `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fi_rev_id`,`fi_name`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( + `fpc_page_id` int(10) unsigned NOT NULL, + `fpc_select` int(11) NOT NULL, + `fpc_override` tinyint(1) NOT NULL, + `fpc_level` varbinary(60) DEFAULT NULL, + `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', + PRIMARY KEY (`fpc_page_id`), + KEY `fpc_expiry` (`fpc_expiry`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( + `fpp_page_id` int(10) unsigned NOT NULL, + `fpp_quality` tinyint(1) NOT NULL, + `fpp_rev_id` int(10) unsigned NOT NULL, + `fpp_pending_since` varbinary(14) NOT NULL, + PRIMARY KEY (`fpp_page_id`,`fpp_quality`), + KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpages` ( + `fp_page_id` int(10) unsigned NOT NULL, + `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', + `fp_pending_since` varbinary(14) DEFAULT NULL, + `fp_stable` int(10) unsigned NOT NULL, + `fp_quality` tinyint(1) DEFAULT NULL, + PRIMARY KEY (`fp_page_id`), + KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), + KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), + KEY `fp_pending_since` (`fp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs` ( + `fr_rev_id` int(10) unsigned NOT NULL, + `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', + `fr_page_id` int(10) unsigned NOT NULL, + `fr_user` int(10) unsigned NOT NULL, + `fr_timestamp` varbinary(14) NOT NULL, + `fr_quality` tinyint(1) NOT NULL DEFAULT '0', + `fr_tags` mediumblob NOT NULL, + `fr_flags` tinyblob NOT NULL, + `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fr_img_timestamp` varbinary(14) DEFAULT NULL, + `fr_img_sha1` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`fr_rev_id`), + KEY `page_rev` (`fr_page_id`,`fr_rev_id`), + KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), + KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), + KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), + KEY `fr_img_sha1` (`fr_img_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( + `frp_user_id` int(10) unsigned NOT NULL, + `frp_user_params` mediumblob NOT NULL, + PRIMARY KEY (`frp_user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( + `frs_timestamp` varbinary(14) NOT NULL, + `frs_stat_key` varchar(255) NOT NULL, + `frs_stat_val` bigint(20) NOT NULL, + PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), + KEY `frs_timestamp` (`frs_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( + `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', + `ftr_namespace` int(11) NOT NULL DEFAULT '0', + `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), + KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( + `ft_rev_id` int(10) unsigned NOT NULL, + `ft_namespace` int(11) NOT NULL DEFAULT '0', + `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target` blob NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`(255),`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`(255)) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_revision` ( + `rev_id` binary(11) NOT NULL, + `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', + `rev_user_id` bigint(20) unsigned NOT NULL, + `rev_user_ip` varbinary(39) DEFAULT NULL, + `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_parent_id` binary(11) DEFAULT NULL, + `rev_flags` tinyblob NOT NULL, + `rev_content` mediumblob NOT NULL, + `rev_change_type` varbinary(255) DEFAULT NULL, + `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_mod_user_ip` varbinary(39) DEFAULT NULL, + `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_last_edit_id` binary(11) DEFAULT NULL, + `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_edit_user_ip` varbinary(39) DEFAULT NULL, + `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_content_length` int(11) NOT NULL DEFAULT '0', + `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`rev_id`), + UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), + KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), + KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_subscription` ( + `subscription_workflow_id` int(10) unsigned NOT NULL, + `subscription_user_id` bigint(20) unsigned NOT NULL, + `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), + KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_topic_list` ( + `topic_list_id` binary(11) NOT NULL, + `topic_id` binary(11) DEFAULT NULL, + UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), + KEY `flow_topic_list_topic_id` (`topic_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_node` ( + `tree_ancestor_id` binary(11) NOT NULL, + `tree_descendant_id` binary(11) NOT NULL, + `tree_depth` smallint(6) NOT NULL, + UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), + UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( + `tree_rev_descendant_id` binary(11) NOT NULL, + `tree_rev_id` binary(11) NOT NULL, + `tree_orig_user_id` bigint(20) unsigned NOT NULL, + `tree_orig_user_ip` varbinary(39) DEFAULT NULL, + `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `tree_parent_id` binary(11) DEFAULT NULL, + PRIMARY KEY (`tree_rev_id`), + KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target_namespace` int(11) NOT NULL, + `ref_target_title` varbinary(255) NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_workflow` ( + `workflow_id` binary(11) NOT NULL, + `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_namespace` int(11) NOT NULL, + `workflow_page_id` int(10) unsigned NOT NULL, + `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_last_update_timestamp` binary(14) NOT NULL, + `workflow_lock_state` int(10) unsigned NOT NULL, + `workflow_type` varbinary(16) NOT NULL, + PRIMARY KEY (`workflow_id`), + KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), + KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `historical_thread` ( + `hthread_id` int(8) unsigned NOT NULL, + `hthread_revision` int(8) unsigned NOT NULL, + `hthread_contents` blob NOT NULL, + `hthread_change_type` int(4) unsigned NOT NULL, + `hthread_change_object` int(8) unsigned DEFAULT NULL, + PRIMARY KEY (`hthread_id`,`hthread_revision`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `image` ( + `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `img_size` int(10) unsigned NOT NULL DEFAULT '0', + `img_width` int(11) NOT NULL DEFAULT '0', + `img_height` int(11) NOT NULL DEFAULT '0', + `img_metadata` mediumblob NOT NULL, + `img_bits` int(11) NOT NULL DEFAULT '0', + `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `img_description` varbinary(767) NOT NULL, + `img_user` int(10) unsigned NOT NULL DEFAULT '0', + `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `img_timestamp` varbinary(14) NOT NULL DEFAULT '', + `img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`img_name`), + KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), + KEY `img_size` (`img_size`), + KEY `img_timestamp` (`img_timestamp`), + KEY `img_sha1` (`img_sha1`), + KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `imagelinks` ( + `il_from` int(10) unsigned NOT NULL DEFAULT '0', + `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `il_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `il_from` (`il_from`,`il_to`), + UNIQUE KEY `il_to` (`il_to`,`il_from`), + KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `interwiki` ( + `iw_prefix` varchar(32) NOT NULL, + `iw_url` blob NOT NULL, + `iw_api` blob NOT NULL, + `iw_wikiid` varchar(64) NOT NULL, + `iw_local` tinyint(1) NOT NULL, + `iw_trans` tinyint(4) NOT NULL DEFAULT '0', + UNIQUE KEY `iw_prefix` (`iw_prefix`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `ipblocks` ( + `ipb_id` int(11) NOT NULL AUTO_INCREMENT, + `ipb_address` tinyblob NOT NULL, + `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ipb_reason` varbinary(767) NOT NULL, + `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `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 DEFAULT '', + `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(11) DEFAULT NULL, + PRIMARY KEY (`ipb_id`), + UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), + 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 AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `iwlinks` ( + `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', + `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', + `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), + 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=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `job` ( + `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `job_cmd` varbinary(60) NOT NULL DEFAULT '', + `job_namespace` int(11) NOT NULL, + `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `job_params` blob NOT NULL, + `job_timestamp` varbinary(14) DEFAULT NULL, + `job_random` int(10) unsigned NOT NULL DEFAULT '0', + `job_token` varbinary(32) NOT NULL DEFAULT '', + `job_token_timestamp` varbinary(14) DEFAULT NULL, + `job_sha1` varbinary(32) NOT NULL DEFAULT '', + `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`job_id`), + KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), + KEY `job_timestamp` (`job_timestamp`), + KEY `job_sha1` (`job_sha1`), + KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), + KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `l10n_cache` ( + `lc_lang` varbinary(32) NOT NULL, + `lc_key` varchar(255) NOT NULL, + `lc_value` mediumblob NOT NULL, + KEY `lc_lang_key` (`lc_lang`,`lc_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `langlinks` ( + `ll_from` int(10) unsigned NOT NULL DEFAULT '0', + `ll_lang` varbinary(20) NOT NULL DEFAULT '', + `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), + KEY `ll_lang` (`ll_lang`,`ll_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `log_search` ( + `ls_field` varbinary(32) NOT NULL, + `ls_value` varchar(255) NOT NULL, + `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', + UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), + KEY `ls_log_id` (`ls_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `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_user` int(10) unsigned NOT NULL DEFAULT '0', + `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_namespace` int(11) NOT NULL DEFAULT '0', + `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_page` int(10) unsigned DEFAULT NULL, + `log_comment` varbinary(767) NOT NULL DEFAULT '', + `log_params` blob NOT NULL, + `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`log_id`), + KEY `type_time` (`log_type`,`log_timestamp`), + KEY `user_time` (`log_user`,`log_timestamp`), + KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), + KEY `times` (`log_timestamp`), + KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), + KEY `log_page_id_time` (`log_page`,`log_timestamp`), + KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), + KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), + KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `math` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_outputhash` varbinary(16) NOT NULL, + `math_html_conservativeness` tinyint(4) NOT NULL, + `math_html` text, + `math_mathml` text, + UNIQUE KEY `math_inputhash` (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `mathoid` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_input` text NOT NULL, + `math_tex` text, + `math_mathml` text, + `math_svg` text, + `math_style` tinyint(4) DEFAULT NULL, + `math_input_type` tinyint(4) DEFAULT NULL, + PRIMARY KEY (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `module_deps` ( + `md_module` varbinary(255) NOT NULL, + `md_skin` varbinary(32) NOT NULL, + `md_deps` mediumblob NOT NULL, + UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `objectcache` ( + `keyname` varbinary(255) NOT NULL DEFAULT '', + `value` mediumblob, + `exptime` datetime DEFAULT NULL, + PRIMARY KEY (`keyname`), + KEY `exptime` (`exptime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `oldimage` ( + `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_size` int(10) unsigned NOT NULL DEFAULT '0', + `oi_width` int(11) NOT NULL DEFAULT '0', + `oi_height` int(11) NOT NULL DEFAULT '0', + `oi_bits` int(11) NOT NULL DEFAULT '0', + `oi_description` varbinary(767) NOT NULL, + `oi_user` int(10) unsigned NOT NULL DEFAULT '0', + `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `oi_metadata` mediumblob NOT NULL, + `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `oi_sha1` varbinary(32) NOT NULL DEFAULT '', + KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), + KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), + KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), + KEY `oi_sha1` (`oi_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page` ( + `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `page_namespace` int(11) NOT NULL, + `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `page_restrictions` tinyblob NOT NULL, + `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_random` double unsigned NOT NULL, + `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `page_latest` int(10) unsigned NOT NULL, + `page_len` int(10) unsigned NOT NULL, + `page_content_model` varbinary(32) DEFAULT NULL, + `page_links_updated` varbinary(14) DEFAULT NULL, + `page_lang` varbinary(35) DEFAULT NULL, + PRIMARY KEY (`page_id`), + UNIQUE KEY `name_title` (`page_namespace`,`page_title`), + KEY `page_random` (`page_random`), + KEY `page_len` (`page_len`), + KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_props` ( + `pp_page` int(11) NOT NULL, + `pp_propname` varbinary(60) NOT NULL, + `pp_value` blob NOT NULL, + `pp_sortkey` float DEFAULT NULL, + UNIQUE KEY `pp_page_propname` (`pp_page`,`pp_propname`), + UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), + UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_restrictions` ( + `pr_page` int(11) NOT NULL, + `pr_type` varbinary(60) NOT NULL, + `pr_level` varbinary(60) NOT NULL, + `pr_cascade` tinyint(4) NOT NULL, + `pr_user` int(11) DEFAULT NULL, + `pr_expiry` varbinary(14) DEFAULT NULL, + `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`pr_id`), + UNIQUE KEY `pr_pagetype` (`pr_page`,`pr_type`), + KEY `pr_typelevel` (`pr_type`,`pr_level`), + KEY `pr_level` (`pr_level`), + KEY `pr_cascade` (`pr_cascade`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `pagelinks` ( + `pl_from` int(10) unsigned NOT NULL DEFAULT '0', + `pl_namespace` int(11) NOT NULL DEFAULT '0', + `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `pl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), + UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), + KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `protected_titles` ( + `pt_namespace` int(11) NOT NULL, + `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `pt_user` int(10) unsigned NOT NULL, + `pt_reason` varbinary(767) DEFAULT NULL, + `pt_timestamp` binary(14) NOT NULL, + `pt_expiry` varbinary(14) NOT NULL DEFAULT '', + `pt_create_perm` varbinary(60) NOT NULL, + UNIQUE KEY `pt_namespace_title` (`pt_namespace`,`pt_title`), + KEY `pt_timestamp` (`pt_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache` ( + `qc_type` varbinary(32) NOT NULL, + `qc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qc_namespace` int(11) NOT NULL DEFAULT '0', + `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qc_type` (`qc_type`,`qc_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache_info` ( + `qci_type` varbinary(32) NOT NULL DEFAULT '', + `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', + UNIQUE KEY `qci_type` (`qci_type`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycachetwo` ( + `qcc_type` varbinary(32) NOT NULL, + `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qcc_namespace` int(11) NOT NULL DEFAULT '0', + `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', + `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qcc_type` (`qcc_type`,`qcc_value`), + KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), + KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `recentchanges` ( + `rc_id` int(11) NOT NULL AUTO_INCREMENT, + `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', + `rc_user` int(10) unsigned NOT NULL DEFAULT '0', + `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rc_namespace` int(11) NOT NULL DEFAULT '0', + `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rc_comment` varbinary(767) NOT NULL DEFAULT '', + `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', + `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_ip` varbinary(40) NOT NULL DEFAULT '', + `rc_old_len` int(11) DEFAULT NULL, + `rc_new_len` int(11) DEFAULT NULL, + `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_log_type` varbinary(255) DEFAULT NULL, + `rc_log_action` varbinary(255) DEFAULT NULL, + `rc_params` blob, + `rc_source` varbinary(16) NOT NULL DEFAULT '', + PRIMARY KEY (`rc_id`), + KEY `rc_timestamp` (`rc_timestamp`), + KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), + KEY `rc_cur_id` (`rc_cur_id`), + KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), + KEY `rc_ip` (`rc_ip`), + KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), + KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `redirect` ( + `rd_from` int(10) unsigned NOT NULL DEFAULT '0', + `rd_namespace` int(11) NOT NULL DEFAULT '0', + `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rd_interwiki` varchar(32) DEFAULT NULL, + `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + PRIMARY KEY (`rd_from`), + KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `revision` ( + `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `rev_page` int(10) unsigned NOT NULL, + `rev_text_id` int(10) unsigned NOT NULL, + `rev_comment` varbinary(767) NOT NULL, + `rev_user` int(10) unsigned NOT NULL DEFAULT '0', + `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_len` int(10) unsigned DEFAULT NULL, + `rev_parent_id` int(10) unsigned DEFAULT NULL, + `rev_sha1` varbinary(32) NOT NULL DEFAULT '', + `rev_content_format` varbinary(64) DEFAULT NULL, + `rev_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`rev_id`), + UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), + KEY `rev_timestamp` (`rev_timestamp`), + KEY `page_timestamp` (`rev_page`,`rev_timestamp`), + KEY `user_timestamp` (`rev_user`,`rev_timestamp`), + KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), + KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `searchindex` ( + `si_page` int(10) unsigned NOT NULL, + `si_title` varchar(255) NOT NULL DEFAULT '', + `si_text` mediumtext NOT NULL, + UNIQUE KEY `si_page` (`si_page`), + FULLTEXT KEY `si_title` (`si_title`), + FULLTEXT KEY `si_text` (`si_text`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_identifiers` ( + `si_site` int(10) unsigned NOT NULL, + `si_type` varbinary(32) NOT NULL, + `si_key` varbinary(32) NOT NULL, + UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), + KEY `site_ids_site` (`si_site`), + KEY `site_ids_key` (`si_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_stats` ( + `ss_row_id` int(10) unsigned NOT NULL, + `ss_total_edits` bigint(20) unsigned DEFAULT '0', + `ss_good_articles` bigint(20) unsigned DEFAULT '0', + `ss_total_pages` bigint(20) DEFAULT '-1', + `ss_users` bigint(20) DEFAULT '-1', + `ss_active_users` bigint(20) DEFAULT '-1', + `ss_images` int(11) DEFAULT '0', + UNIQUE KEY `ss_row_id` (`ss_row_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `sites` ( + `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `site_global_key` varbinary(32) NOT NULL, + `site_type` varbinary(32) NOT NULL, + `site_group` varbinary(32) NOT NULL, + `site_source` varbinary(32) NOT NULL, + `site_language` varbinary(32) NOT NULL, + `site_protocol` varbinary(32) NOT NULL, + `site_domain` varchar(255) NOT NULL, + `site_data` blob NOT NULL, + `site_forward` tinyint(1) NOT NULL, + `site_config` blob NOT NULL, + PRIMARY KEY (`site_id`), + UNIQUE KEY `sites_global_key` (`site_global_key`), + KEY `sites_type` (`site_type`), + KEY `sites_group` (`site_group`), + KEY `sites_source` (`site_source`), + KEY `sites_language` (`site_language`), + KEY `sites_protocol` (`site_protocol`), + KEY `sites_domain` (`site_domain`), + KEY `sites_forward` (`site_forward`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `tag_summary` ( + `ts_rc_id` int(11) DEFAULT NULL, + `ts_log_id` int(11) DEFAULT NULL, + `ts_rev_id` int(11) DEFAULT NULL, + `ts_tags` blob NOT NULL, + UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), + UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), + UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `templatelinks` ( + `tl_from` int(10) unsigned NOT NULL DEFAULT '0', + `tl_namespace` int(11) NOT NULL DEFAULT '0', + `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `tl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), + UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), + KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `text` ( + `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `old_text` mediumblob NOT NULL, + `old_flags` tinyblob NOT NULL, + PRIMARY KEY (`old_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread` ( + `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, + `thread_root` int(8) unsigned NOT NULL, + `thread_ancestor` int(8) unsigned NOT NULL, + `thread_parent` int(8) unsigned DEFAULT NULL, + `thread_summary_page` int(8) unsigned DEFAULT NULL, + `thread_subject` varchar(255) DEFAULT NULL, + `thread_author_id` int(10) unsigned DEFAULT NULL, + `thread_author_name` varchar(255) DEFAULT NULL, + `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_editedness` int(1) NOT NULL DEFAULT '0', + `thread_article_namespace` int(11) NOT NULL, + `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `thread_article_id` int(8) unsigned NOT NULL, + `thread_type` int(4) unsigned NOT NULL DEFAULT '0', + `thread_sortkey` varchar(255) NOT NULL DEFAULT '', + `thread_replies` int(8) DEFAULT '-1', + `thread_signature` tinyblob, + PRIMARY KEY (`thread_id`), + UNIQUE KEY `thread_root` (`thread_root`), + UNIQUE KEY `thread_root_2` (`thread_root`), + KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), + KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), + KEY `thread_article` (`thread_article_id`,`thread_sortkey`), + KEY `thread_modified` (`thread_modified`), + KEY `thread_created` (`thread_created`), + KEY `thread_summary_page` (`thread_summary_page`), + KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), + KEY `thread_sortkey` (`thread_sortkey`), + KEY `thread_parent` (`thread_parent`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_history` ( + `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `th_thread` int(10) unsigned NOT NULL, + `th_timestamp` varbinary(14) NOT NULL, + `th_user` int(10) unsigned NOT NULL, + `th_user_text` varchar(255) NOT NULL, + `th_change_type` int(10) unsigned NOT NULL, + `th_change_object` int(10) unsigned NOT NULL, + `th_change_comment` tinytext NOT NULL, + `th_content` longblob NOT NULL, + PRIMARY KEY (`th_id`), + KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), + KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), + KEY `th_user_text` (`th_user`,`th_user_text`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( + `tpr_thread` int(10) unsigned NOT NULL, + `tpr_relationship` varbinary(64) NOT NULL, + `tpr_title` varbinary(255) NOT NULL, + `tpr_type` varbinary(32) NOT NULL, + PRIMARY KEY (`tpr_thread`,`tpr_relationship`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_reaction` ( + `tr_thread` int(10) unsigned NOT NULL, + `tr_user` int(10) unsigned NOT NULL, + `tr_user_text` varbinary(255) NOT NULL, + `tr_type` varbinary(64) NOT NULL, + `tr_value` int(11) NOT NULL, + PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), + KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `trackbacks` ( + `tb_id` int(11) NOT NULL AUTO_INCREMENT, + `tb_page` int(11) DEFAULT NULL, + `tb_title` varchar(255) NOT NULL, + `tb_url` blob NOT NULL, + `tb_ex` text, + `tb_name` varchar(255) DEFAULT NULL, + PRIMARY KEY (`tb_id`), + KEY `tb_page` (`tb_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `transcache` ( + `tc_url` varbinary(255) NOT NULL, + `tc_contents` text, + `tc_time` binary(14) DEFAULT NULL, + UNIQUE KEY `tc_url_idx` (`tc_url`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `updatelog` ( + `ul_key` varchar(255) NOT NULL, + `ul_value` blob, + PRIMARY KEY (`ul_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `uploadstash` ( + `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `us_user` int(10) unsigned NOT NULL, + `us_key` varchar(255) NOT NULL, + `us_orig_path` varchar(255) NOT NULL, + `us_path` varchar(255) NOT NULL, + `us_source_type` varchar(50) DEFAULT NULL, + `us_timestamp` varbinary(14) NOT NULL, + `us_status` varchar(50) NOT NULL, + `us_size` int(10) unsigned NOT NULL, + `us_sha1` varchar(31) NOT NULL, + `us_mime` varchar(255) DEFAULT NULL, + `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `us_image_width` int(10) unsigned DEFAULT NULL, + `us_image_height` int(10) unsigned DEFAULT NULL, + `us_image_bits` smallint(5) unsigned DEFAULT NULL, + `us_chunk_inx` int(10) unsigned DEFAULT NULL, + `us_props` blob, + PRIMARY KEY (`us_id`), + UNIQUE KEY `us_key` (`us_key`), + KEY `us_user` (`us_user`), + KEY `us_timestamp` (`us_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user` ( + `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_password` tinyblob NOT NULL, + `user_newpassword` tinyblob NOT NULL, + `user_newpass_time` binary(14) DEFAULT NULL, + `user_email` tinytext NOT NULL, + `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `user_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', + `user_email_authenticated` binary(14) DEFAULT NULL, + `user_email_token` binary(32) DEFAULT NULL, + `user_email_token_expires` binary(14) DEFAULT NULL, + `user_registration` binary(14) DEFAULT NULL, + `user_editcount` int(11) DEFAULT NULL, + PRIMARY KEY (`user_id`), + UNIQUE KEY `user_name` (`user_name`), + KEY `user_email_token` (`user_email_token`), + KEY `user_email` (`user_email`(50)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_former_groups` ( + `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', + `ufg_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_groups` ( + `ug_user` int(10) unsigned NOT NULL DEFAULT '0', + `ug_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), + KEY `ug_group` (`ug_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_message_state` ( + `ums_user` int(10) unsigned NOT NULL, + `ums_thread` int(8) unsigned NOT NULL, + `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', + `ums_read_timestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`ums_user`,`ums_thread`), + KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_newtalk` ( + `user_id` int(10) unsigned NOT NULL DEFAULT '0', + `user_ip` varbinary(40) NOT NULL DEFAULT '', + `user_last_timestamp` varbinary(14) DEFAULT NULL, + KEY `un_user_id` (`user_id`), + KEY `un_user_ip` (`user_ip`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_properties` ( + `up_user` int(11) NOT NULL, + `up_property` varbinary(255) DEFAULT NULL, + `up_value` blob, + UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), + KEY `user_properties_property` (`up_property`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `valid_tag` ( + `vt_tag` varchar(255) NOT NULL, + PRIMARY KEY (`vt_tag`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `watchlist` ( + `wl_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `wl_user` int(10) unsigned NOT NULL, + `wl_namespace` int(11) NOT NULL DEFAULT '0', + `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`wl_id`), + UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), + KEY `namespace_title` (`wl_namespace`,`wl_title`), + KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + diff --git a/DeveloperDump/sharedwikitolearn.struct.sql b/DeveloperDump/sharedwikitolearn.struct.sql index c145d96..c1bbb2d 100644 --- a/DeveloperDump/sharedwikitolearn.struct.sql +++ b/DeveloperDump/sharedwikitolearn.struct.sql @@ -1,75 +1,76 @@ - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; -/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; -/*!40103 SET TIME_ZONE='+00:00' */; -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `interwiki` ( - `iw_prefix` varchar(32) NOT NULL, - `iw_url` blob NOT NULL, - `iw_local` tinyint(1) NOT NULL, - `iw_trans` tinyint(4) NOT NULL DEFAULT '0', - `iw_api` blob NOT NULL, - `iw_wikiid` varchar(64) NOT NULL, - UNIQUE KEY `iw_prefix` (`iw_prefix`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user` ( - `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_password` tinyblob NOT NULL, - `user_newpassword` tinyblob NOT NULL, - `user_newpass_time` binary(14) DEFAULT NULL, - `user_email` tinytext NOT NULL, - `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `user_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', - `user_email_authenticated` binary(14) DEFAULT NULL, - `user_email_token` binary(32) DEFAULT NULL, - `user_email_token_expires` binary(14) DEFAULT NULL, - `user_registration` binary(14) DEFAULT NULL, - `user_editcount` int(11) DEFAULT NULL, - `user_password_expires` varbinary(14) DEFAULT NULL, - PRIMARY KEY (`user_id`), - UNIQUE KEY `user_name` (`user_name`), - KEY `user_email_token` (`user_email_token`), - KEY `user_email` (`user_email`(50)) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_groups` ( - `ug_user` int(10) unsigned NOT NULL DEFAULT '0', - `ug_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), - KEY `ug_group` (`ug_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_properties` ( - `up_user` int(11) NOT NULL, - `up_property` varbinary(255) DEFAULT NULL, - `up_value` blob, - UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), - KEY `user_properties_property` (`up_property`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `interwiki` ( + `iw_prefix` varchar(32) NOT NULL, + `iw_url` blob NOT NULL, + `iw_local` tinyint(1) NOT NULL, + `iw_trans` tinyint(4) NOT NULL DEFAULT '0', + `iw_api` blob NOT NULL, + `iw_wikiid` varchar(64) NOT NULL, + UNIQUE KEY `iw_prefix` (`iw_prefix`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user` ( + `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_password` tinyblob NOT NULL, + `user_newpassword` tinyblob NOT NULL, + `user_newpass_time` binary(14) DEFAULT NULL, + `user_email` tinytext NOT NULL, + `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `user_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', + `user_email_authenticated` binary(14) DEFAULT NULL, + `user_email_token` binary(32) DEFAULT NULL, + `user_email_token_expires` binary(14) DEFAULT NULL, + `user_registration` binary(14) DEFAULT NULL, + `user_editcount` int(11) DEFAULT NULL, + `user_password_expires` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`user_id`), + UNIQUE KEY `user_name` (`user_name`), + KEY `user_email_token` (`user_email_token`), + KEY `user_email` (`user_email`(50)) +) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user_groups` ( + `ug_user` int(10) unsigned NOT NULL DEFAULT '0', + `ug_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), + KEY `ug_group` (`ug_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user_properties` ( + `up_user` int(11) NOT NULL, + `up_property` varbinary(255) DEFAULT NULL, + `up_value` blob, + UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), + KEY `user_properties_property` (`up_property`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + diff --git a/DeveloperDump/svwikitolearn.struct.sql b/DeveloperDump/svwikitolearn.struct.sql index cd9504d..daa02f6 100644 --- a/DeveloperDump/svwikitolearn.struct.sql +++ b/DeveloperDump/svwikitolearn.struct.sql @@ -1,1178 +1,1380 @@ - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; -/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; -/*!40103 SET TIME_ZONE='+00:00' */; -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `archive` ( - `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `ar_namespace` int(11) NOT NULL DEFAULT '0', - `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ar_text` mediumblob NOT NULL, - `ar_comment` varbinary(767) NOT NULL, - `ar_user` int(10) unsigned NOT NULL DEFAULT '0', - `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', - `ar_flags` tinyblob NOT NULL, - `ar_rev_id` int(10) unsigned DEFAULT NULL, - `ar_text_id` int(10) unsigned DEFAULT NULL, - `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `ar_len` int(10) unsigned DEFAULT NULL, - `ar_page_id` int(10) unsigned DEFAULT NULL, - `ar_parent_id` int(10) unsigned DEFAULT NULL, - `ar_sha1` varbinary(32) NOT NULL DEFAULT '', - `ar_content_model` varbinary(32) DEFAULT NULL, - `ar_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`ar_id`), - KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), - KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), - KEY `ar_revid` (`ar_rev_id`), - KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `category` ( - `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `cat_pages` int(11) NOT NULL DEFAULT '0', - `cat_subcats` int(11) NOT NULL DEFAULT '0', - `cat_files` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`cat_id`), - UNIQUE KEY `cat_title` (`cat_title`), - KEY `cat_pages` (`cat_pages`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `categorylinks` ( - `cl_from` int(10) unsigned NOT NULL DEFAULT '0', - `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', - `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `cl_collation` varbinary(32) NOT NULL DEFAULT '', - `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', - UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), - KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), - KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), - KEY `cl_collation` (`cl_collation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `change_tag` ( - `ct_rc_id` int(11) DEFAULT NULL, - `ct_log_id` int(11) DEFAULT NULL, - `ct_rev_id` int(11) DEFAULT NULL, - `ct_tag` varchar(255) NOT NULL, - `ct_params` blob, - UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), - UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), - UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), - KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_email_batch` ( - `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `eeb_user_id` int(10) unsigned NOT NULL, - `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', - `eeb_event_id` int(10) unsigned NOT NULL, - `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - PRIMARY KEY (`eeb_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`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_event` ( - `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_agent_id` int(10) unsigned DEFAULT NULL, - `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_page_namespace` int(10) unsigned DEFAULT NULL, - `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `event_extra` blob, - `event_page_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`event_id`), - KEY `echo_event_type` (`event_type`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_notification` ( - `notification_event` int(10) unsigned NOT NULL, - `notification_user` int(10) unsigned NOT NULL, - `notification_timestamp` binary(14) NOT NULL, - `notification_read_timestamp` binary(14) DEFAULT NULL, - `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', - `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `user_event` (`notification_user`,`notification_event`), - KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), - KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), - KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), - KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), - KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `echo_target_page` ( - `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`etp_id`), - KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), - KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `externallinks` ( - `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `el_from` int(10) unsigned NOT NULL DEFAULT '0', - `el_to` blob NOT NULL, - `el_index` blob NOT NULL, - PRIMARY KEY (`el_id`), - KEY `el_from` (`el_from`,`el_to`(40)), - KEY `el_to` (`el_to`(60),`el_from`), - KEY `el_index` (`el_index`(60)) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `filearchive` ( - `fa_id` int(11) NOT NULL AUTO_INCREMENT, - `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', - `fa_storage_group` varbinary(16) DEFAULT NULL, - `fa_storage_key` varbinary(64) DEFAULT '', - `fa_deleted_user` int(11) DEFAULT NULL, - `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted_reason` varbinary(767) DEFAULT '', - `fa_size` int(10) unsigned DEFAULT '0', - `fa_width` int(11) DEFAULT '0', - `fa_height` int(11) DEFAULT '0', - `fa_metadata` mediumblob, - `fa_bits` int(11) DEFAULT '0', - `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `fa_minor_mime` varbinary(100) DEFAULT 'unknown', - `fa_description` varbinary(767) DEFAULT NULL, - `fa_user` int(10) unsigned DEFAULT '0', - `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `fa_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fa_id`), - KEY `fa_name` (`fa_name`,`fa_timestamp`), - KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), - KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), - KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), - KEY `fa_sha1` (`fa_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedimages` ( - `fi_rev_id` int(10) unsigned NOT NULL, - `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `fi_img_timestamp` varbinary(14) DEFAULT NULL, - `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`fi_rev_id`,`fi_name`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( - `fpc_page_id` int(10) unsigned NOT NULL, - `fpc_select` int(11) NOT NULL, - `fpc_override` tinyint(1) NOT NULL, - `fpc_level` varbinary(60) DEFAULT NULL, - `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', - PRIMARY KEY (`fpc_page_id`), - KEY `fpc_expiry` (`fpc_expiry`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( - `fpp_page_id` int(10) unsigned NOT NULL, - `fpp_quality` tinyint(1) NOT NULL, - `fpp_rev_id` int(10) unsigned NOT NULL, - `fpp_pending_since` varbinary(14) NOT NULL, - PRIMARY KEY (`fpp_page_id`,`fpp_quality`), - KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedpages` ( - `fp_page_id` int(10) unsigned NOT NULL, - `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', - `fp_pending_since` varbinary(14) DEFAULT NULL, - `fp_stable` int(10) unsigned NOT NULL, - `fp_quality` tinyint(1) DEFAULT NULL, - PRIMARY KEY (`fp_page_id`), - KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), - KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), - KEY `fp_pending_since` (`fp_pending_since`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs` ( - `fr_rev_id` int(10) unsigned NOT NULL, - `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', - `fr_page_id` int(10) unsigned NOT NULL, - `fr_user` int(10) unsigned NOT NULL, - `fr_timestamp` varbinary(14) NOT NULL, - `fr_quality` tinyint(1) NOT NULL DEFAULT '0', - `fr_tags` mediumblob NOT NULL, - `fr_flags` tinyblob NOT NULL, - `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `fr_img_timestamp` varbinary(14) DEFAULT NULL, - `fr_img_sha1` varbinary(32) DEFAULT NULL, - PRIMARY KEY (`fr_rev_id`), - KEY `page_rev` (`fr_page_id`,`fr_rev_id`), - KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), - KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), - KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), - KEY `fr_img_sha1` (`fr_img_sha1`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( - `frp_user_id` int(10) unsigned NOT NULL, - `frp_user_params` mediumblob NOT NULL, - PRIMARY KEY (`frp_user_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( - `frs_timestamp` varbinary(14) NOT NULL, - `frs_stat_key` varchar(255) NOT NULL, - `frs_stat_val` bigint(20) NOT NULL, - PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), - KEY `frs_timestamp` (`frs_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( - `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', - `ftr_namespace` int(11) NOT NULL DEFAULT '0', - `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), - KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( - `ft_rev_id` int(10) unsigned NOT NULL, - `ft_namespace` int(11) NOT NULL DEFAULT '0', - `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_revision` ( - `rev_id` binary(11) NOT NULL, - `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', - `rev_user_id` bigint(20) unsigned NOT NULL, - `rev_user_ip` varbinary(39) DEFAULT NULL, - `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_parent_id` binary(11) DEFAULT NULL, - `rev_flags` tinyblob NOT NULL, - `rev_content` mediumblob NOT NULL, - `rev_change_type` varbinary(255) DEFAULT NULL, - `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_mod_user_ip` varbinary(39) DEFAULT NULL, - `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_last_edit_id` binary(11) DEFAULT NULL, - `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, - `rev_edit_user_ip` varbinary(39) DEFAULT NULL, - `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - `rev_content_length` int(11) NOT NULL DEFAULT '0', - `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', - PRIMARY KEY (`rev_id`), - UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), - KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), - KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_subscription` ( - `subscription_workflow_id` int(10) unsigned NOT NULL, - `subscription_user_id` bigint(20) unsigned NOT NULL, - `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), - KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_topic_list` ( - `topic_list_id` binary(11) NOT NULL, - `topic_id` binary(11) DEFAULT NULL, - UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), - KEY `flow_topic_list_topic_id` (`topic_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_node` ( - `tree_ancestor_id` binary(11) NOT NULL, - `tree_descendant_id` binary(11) NOT NULL, - `tree_depth` smallint(6) NOT NULL, - UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), - UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( - `tree_rev_descendant_id` binary(11) NOT NULL, - `tree_rev_id` binary(11) NOT NULL, - `tree_orig_user_id` bigint(20) unsigned NOT NULL, - `tree_orig_user_ip` varbinary(39) DEFAULT NULL, - `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `tree_parent_id` binary(11) DEFAULT NULL, - PRIMARY KEY (`tree_rev_id`), - KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( - `ref_src_object_id` binary(11) NOT NULL, - `ref_src_object_type` varbinary(32) NOT NULL, - `ref_src_workflow_id` binary(11) NOT NULL, - `ref_src_namespace` int(11) NOT NULL, - `ref_src_title` varbinary(255) NOT NULL, - `ref_target_namespace` int(11) NOT NULL, - `ref_target_title` varbinary(255) NOT NULL, - `ref_type` varbinary(16) NOT NULL, - `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), - KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `flow_workflow` ( - `workflow_id` binary(11) NOT NULL, - `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_namespace` int(11) NOT NULL, - `workflow_page_id` int(10) unsigned NOT NULL, - `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `workflow_last_update_timestamp` binary(14) NOT NULL, - `workflow_lock_state` int(10) unsigned NOT NULL, - `workflow_type` varbinary(16) NOT NULL, - PRIMARY KEY (`workflow_id`), - KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), - KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `historical_thread` ( - `hthread_id` int(8) unsigned NOT NULL, - `hthread_revision` int(8) unsigned NOT NULL, - `hthread_contents` blob NOT NULL, - `hthread_change_type` int(4) unsigned NOT NULL, - `hthread_change_object` int(8) unsigned DEFAULT NULL, - PRIMARY KEY (`hthread_id`,`hthread_revision`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `image` ( - `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `img_size` int(10) unsigned NOT NULL DEFAULT '0', - `img_width` int(11) NOT NULL DEFAULT '0', - `img_height` int(11) NOT NULL DEFAULT '0', - `img_metadata` mediumblob NOT NULL, - `img_bits` int(11) NOT NULL DEFAULT '0', - `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `img_description` varbinary(767) NOT NULL, - `img_user` int(10) unsigned NOT NULL DEFAULT '0', - `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `img_timestamp` varbinary(14) NOT NULL DEFAULT '', - `img_sha1` varbinary(32) NOT NULL DEFAULT '', - PRIMARY KEY (`img_name`), - KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), - KEY `img_size` (`img_size`), - KEY `img_timestamp` (`img_timestamp`), - KEY `img_sha1` (`img_sha1`(10)), - KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `imagelinks` ( - `il_from` int(10) unsigned NOT NULL DEFAULT '0', - `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `il_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `il_from` (`il_from`,`il_to`), - UNIQUE KEY `il_to` (`il_to`,`il_from`), - KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `interwiki` ( - `iw_prefix` varchar(32) NOT NULL, - `iw_url` blob NOT NULL, - `iw_local` tinyint(1) NOT NULL, - `iw_trans` tinyint(4) NOT NULL DEFAULT '0', - `iw_api` blob NOT NULL, - `iw_wikiid` varchar(64) NOT NULL, - UNIQUE KEY `iw_prefix` (`iw_prefix`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `ipblocks` ( - `ipb_id` int(11) NOT NULL AUTO_INCREMENT, - `ipb_address` tinyblob NOT NULL, - `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', - `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `ipb_reason` varbinary(767) NOT NULL, - `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `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 DEFAULT '', - `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(11) DEFAULT NULL, - PRIMARY KEY (`ipb_id`), - UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `iwlinks` ( - `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', - `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', - `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), - 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=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `job` ( - `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `job_cmd` varbinary(60) NOT NULL DEFAULT '', - `job_namespace` int(11) NOT NULL, - `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `job_params` blob NOT NULL, - `job_timestamp` varbinary(14) DEFAULT NULL, - `job_random` int(10) unsigned NOT NULL DEFAULT '0', - `job_token` varbinary(32) NOT NULL DEFAULT '', - `job_token_timestamp` varbinary(14) DEFAULT NULL, - `job_sha1` varbinary(32) NOT NULL DEFAULT '', - `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', - PRIMARY KEY (`job_id`), - KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), - KEY `job_timestamp` (`job_timestamp`), - KEY `job_sha1` (`job_sha1`), - KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), - KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `l10n_cache` ( - `lc_lang` varbinary(32) NOT NULL, - `lc_key` varchar(255) NOT NULL, - `lc_value` mediumblob NOT NULL, - KEY `lc_lang_key` (`lc_lang`,`lc_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `langlinks` ( - `ll_from` int(10) unsigned NOT NULL DEFAULT '0', - `ll_lang` varbinary(20) NOT NULL DEFAULT '', - `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), - KEY `ll_lang` (`ll_lang`,`ll_title`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `log_search` ( - `ls_field` varbinary(32) NOT NULL, - `ls_value` varchar(255) NOT NULL, - `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', - UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), - KEY `ls_log_id` (`ls_log_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `logging` ( - `log_type` varbinary(32) NOT NULL, - `log_action` varbinary(32) NOT NULL, - `log_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - `log_user` int(10) unsigned NOT NULL DEFAULT '0', - `log_namespace` int(11) NOT NULL DEFAULT '0', - `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_comment` varbinary(767) NOT NULL DEFAULT '', - `log_params` blob NOT NULL, - `log_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `log_page` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`log_id`), - KEY `type_time` (`log_type`,`log_timestamp`), - KEY `user_time` (`log_user`,`log_timestamp`), - KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), - KEY `times` (`log_timestamp`), - KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), - KEY `log_page_id_time` (`log_page`,`log_timestamp`), - KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), - KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), - KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `math` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_outputhash` varbinary(16) NOT NULL, - `math_html_conservativeness` tinyint(4) NOT NULL, - `math_html` text, - `math_mathml` text, - UNIQUE KEY `math_inputhash` (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `mathoid` ( - `math_inputhash` varbinary(16) NOT NULL, - `math_input` text NOT NULL, - `math_tex` text, - `math_mathml` text, - `math_svg` text, - `math_style` tinyint(4) DEFAULT NULL, - `math_input_type` tinyint(4) DEFAULT NULL, - PRIMARY KEY (`math_inputhash`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `module_deps` ( - `md_module` varbinary(255) NOT NULL, - `md_skin` varbinary(32) NOT NULL, - `md_deps` mediumblob NOT NULL, - UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource` ( - `mr_resource` varbinary(255) NOT NULL, - `mr_lang` varbinary(32) NOT NULL, - `mr_blob` mediumblob NOT NULL, - `mr_timestamp` binary(14) NOT NULL, - UNIQUE KEY `mr_resource_lang` (`mr_resource`,`mr_lang`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `msg_resource_links` ( - `mrl_resource` varbinary(255) NOT NULL, - `mrl_message` varbinary(255) NOT NULL, - UNIQUE KEY `mrl_message_resource` (`mrl_message`,`mrl_resource`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `objectcache` ( - `keyname` varbinary(255) NOT NULL DEFAULT '', - `value` mediumblob, - `exptime` datetime DEFAULT NULL, - UNIQUE KEY `keyname` (`keyname`), - KEY `exptime` (`exptime`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `oldimage` ( - `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `oi_size` int(10) unsigned NOT NULL DEFAULT '0', - `oi_width` int(11) NOT NULL DEFAULT '0', - `oi_height` int(11) NOT NULL DEFAULT '0', - `oi_bits` int(11) NOT NULL DEFAULT '0', - `oi_description` varbinary(767) NOT NULL, - `oi_user` int(10) unsigned NOT NULL DEFAULT '0', - `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `oi_metadata` mediumblob NOT NULL, - `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, - `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', - `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `oi_sha1` varbinary(32) NOT NULL DEFAULT '', - KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), - KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), - KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), - KEY `oi_sha1` (`oi_sha1`(10)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page` ( - `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `page_namespace` int(11) NOT NULL, - `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `page_restrictions` tinyblob NOT NULL, - `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `page_random` double unsigned NOT NULL, - `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `page_latest` int(10) unsigned NOT NULL, - `page_len` int(10) unsigned NOT NULL, - `page_content_model` varbinary(32) DEFAULT NULL, - `page_links_updated` varbinary(14) DEFAULT NULL, - `page_lang` varbinary(35) DEFAULT NULL, - PRIMARY KEY (`page_id`), - UNIQUE KEY `name_title` (`page_namespace`,`page_title`), - KEY `page_random` (`page_random`), - KEY `page_len` (`page_len`), - KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_props` ( - `pp_page` int(11) NOT NULL, - `pp_propname` varbinary(60) NOT NULL, - `pp_value` blob NOT NULL, - `pp_sortkey` float DEFAULT NULL, - PRIMARY KEY (`pp_page`,`pp_propname`), - UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), - UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `page_restrictions` ( - `pr_page` int(11) NOT NULL, - `pr_type` varbinary(60) NOT NULL, - `pr_level` varbinary(60) NOT NULL, - `pr_cascade` tinyint(4) NOT NULL, - `pr_user` int(11) DEFAULT NULL, - `pr_expiry` varbinary(14) DEFAULT NULL, - `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - PRIMARY KEY (`pr_page`,`pr_type`), - UNIQUE KEY `pr_id` (`pr_id`), - KEY `pr_typelevel` (`pr_type`,`pr_level`), - KEY `pr_level` (`pr_level`), - KEY `pr_cascade` (`pr_cascade`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `pagelinks` ( - `pl_from` int(10) unsigned NOT NULL DEFAULT '0', - `pl_namespace` int(11) NOT NULL DEFAULT '0', - `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `pl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), - UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), - KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `protected_titles` ( - `pt_namespace` int(11) NOT NULL, - `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `pt_user` int(10) unsigned NOT NULL, - `pt_reason` varbinary(767) DEFAULT NULL, - `pt_timestamp` binary(14) NOT NULL, - `pt_expiry` varbinary(14) NOT NULL DEFAULT '', - `pt_create_perm` varbinary(60) NOT NULL, - PRIMARY KEY (`pt_namespace`,`pt_title`), - KEY `pt_timestamp` (`pt_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache` ( - `qc_type` varbinary(32) NOT NULL, - `qc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qc_namespace` int(11) NOT NULL DEFAULT '0', - `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qc_type` (`qc_type`,`qc_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycache_info` ( - `qci_type` varbinary(32) NOT NULL DEFAULT '', - `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', - UNIQUE KEY `qci_type` (`qci_type`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `querycachetwo` ( - `qcc_type` varbinary(32) NOT NULL, - `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', - `qcc_namespace` int(11) NOT NULL DEFAULT '0', - `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', - `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - KEY `qcc_type` (`qcc_type`,`qcc_value`), - KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), - KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `recentchanges` ( - `rc_id` int(11) NOT NULL AUTO_INCREMENT, - `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', - `rc_user` int(10) unsigned NOT NULL DEFAULT '0', - `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `rc_namespace` int(11) NOT NULL, - `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rc_comment` varbinary(767) NOT NULL DEFAULT '', - `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', - `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_ip` varbinary(40) NOT NULL DEFAULT '', - `rc_old_len` int(11) DEFAULT NULL, - `rc_new_len` int(11) DEFAULT NULL, - `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', - `rc_log_type` varbinary(255) DEFAULT NULL, - `rc_log_action` varbinary(255) DEFAULT NULL, - `rc_params` blob, - `rc_source` varbinary(16) NOT NULL DEFAULT '', - PRIMARY KEY (`rc_id`), - KEY `rc_timestamp` (`rc_timestamp`), - KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), - KEY `rc_cur_id` (`rc_cur_id`), - KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), - KEY `rc_ip` (`rc_ip`), - KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), - KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `redirect` ( - `rd_from` int(10) unsigned NOT NULL DEFAULT '0', - `rd_namespace` int(11) NOT NULL DEFAULT '0', - `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rd_interwiki` varchar(32) DEFAULT NULL, - `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, - PRIMARY KEY (`rd_from`), - KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `revision` ( - `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `rev_page` int(10) unsigned NOT NULL, - `rev_text_id` int(10) unsigned NOT NULL, - `rev_comment` varbinary(767) NOT NULL, - `rev_user` int(10) unsigned NOT NULL DEFAULT '0', - `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', - `rev_len` int(10) unsigned DEFAULT NULL, - `rev_parent_id` int(10) unsigned DEFAULT NULL, - `rev_sha1` varbinary(32) NOT NULL DEFAULT '', - `rev_content_model` varbinary(32) DEFAULT NULL, - `rev_content_format` varbinary(64) DEFAULT NULL, - PRIMARY KEY (`rev_id`), - UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), - KEY `rev_timestamp` (`rev_timestamp`), - KEY `page_timestamp` (`rev_page`,`rev_timestamp`), - KEY `user_timestamp` (`rev_user`,`rev_timestamp`), - KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), - KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `searchindex` ( - `si_page` int(10) unsigned NOT NULL, - `si_title` varchar(255) NOT NULL DEFAULT '', - `si_text` mediumtext NOT NULL, - FULLTEXT KEY `si_title` (`si_title`), - FULLTEXT KEY `si_text` (`si_text`) -) ENGINE=MyISAM DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_identifiers` ( - `si_site` int(10) unsigned NOT NULL, - `si_type` varbinary(32) NOT NULL, - `si_key` varbinary(32) NOT NULL, - UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), - KEY `site_ids_site` (`si_site`), - KEY `site_ids_key` (`si_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `site_stats` ( - `ss_row_id` int(10) unsigned NOT NULL, - `ss_total_edits` bigint(20) unsigned DEFAULT '0', - `ss_good_articles` bigint(20) unsigned DEFAULT '0', - `ss_total_pages` bigint(20) DEFAULT '-1', - `ss_users` bigint(20) DEFAULT '-1', - `ss_active_users` bigint(20) DEFAULT '-1', - `ss_images` int(11) DEFAULT '0', - UNIQUE KEY `ss_row_id` (`ss_row_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `sites` ( - `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `site_global_key` varbinary(32) NOT NULL, - `site_type` varbinary(32) NOT NULL, - `site_group` varbinary(32) NOT NULL, - `site_source` varbinary(32) NOT NULL, - `site_language` varbinary(32) NOT NULL, - `site_protocol` varbinary(32) NOT NULL, - `site_domain` varchar(255) NOT NULL, - `site_data` blob NOT NULL, - `site_forward` tinyint(1) NOT NULL, - `site_config` blob NOT NULL, - PRIMARY KEY (`site_id`), - UNIQUE KEY `sites_global_key` (`site_global_key`), - KEY `sites_type` (`site_type`), - KEY `sites_group` (`site_group`), - KEY `sites_source` (`site_source`), - KEY `sites_language` (`site_language`), - KEY `sites_protocol` (`site_protocol`), - KEY `sites_domain` (`site_domain`), - KEY `sites_forward` (`site_forward`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `tag_summary` ( - `ts_rc_id` int(11) DEFAULT NULL, - `ts_log_id` int(11) DEFAULT NULL, - `ts_rev_id` int(11) DEFAULT NULL, - `ts_tags` blob NOT NULL, - UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), - UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), - UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `templatelinks` ( - `tl_from` int(10) unsigned NOT NULL DEFAULT '0', - `tl_namespace` int(11) NOT NULL DEFAULT '0', - `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `tl_from_namespace` int(11) NOT NULL DEFAULT '0', - UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), - UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), - KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `text` ( - `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `old_text` mediumblob NOT NULL, - `old_flags` tinyblob NOT NULL, - PRIMARY KEY (`old_id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread` ( - `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, - `thread_root` int(8) unsigned NOT NULL, - `thread_ancestor` int(8) unsigned NOT NULL, - `thread_parent` int(8) unsigned DEFAULT NULL, - `thread_summary_page` int(8) unsigned DEFAULT NULL, - `thread_subject` varchar(255) DEFAULT NULL, - `thread_author_id` int(10) unsigned DEFAULT NULL, - `thread_author_name` varchar(255) DEFAULT NULL, - `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `thread_editedness` int(1) NOT NULL DEFAULT '0', - `thread_article_namespace` int(11) NOT NULL, - `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, - `thread_article_id` int(8) unsigned NOT NULL, - `thread_type` int(4) unsigned NOT NULL DEFAULT '0', - `thread_sortkey` varchar(255) NOT NULL DEFAULT '', - `thread_replies` int(8) DEFAULT '-1', - `thread_signature` tinyblob, - PRIMARY KEY (`thread_id`), - UNIQUE KEY `thread_root` (`thread_root`), - UNIQUE KEY `thread_root_2` (`thread_root`), - KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), - KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), - KEY `thread_article` (`thread_article_id`,`thread_sortkey`), - KEY `thread_modified` (`thread_modified`), - KEY `thread_created` (`thread_created`), - KEY `thread_summary_page` (`thread_summary_page`), - KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), - KEY `thread_sortkey` (`thread_sortkey`), - KEY `thread_parent` (`thread_parent`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_history` ( - `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `th_thread` int(10) unsigned NOT NULL, - `th_timestamp` varbinary(14) NOT NULL, - `th_user` int(10) unsigned NOT NULL, - `th_user_text` varchar(255) NOT NULL, - `th_change_type` int(10) unsigned NOT NULL, - `th_change_object` int(10) unsigned NOT NULL, - `th_change_comment` tinytext NOT NULL, - `th_content` longblob NOT NULL, - PRIMARY KEY (`th_id`), - KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), - KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), - KEY `th_user_text` (`th_user`,`th_user_text`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( - `tpr_thread` int(10) unsigned NOT NULL, - `tpr_relationship` varbinary(64) NOT NULL, - `tpr_title` varbinary(255) NOT NULL, - `tpr_type` varbinary(32) NOT NULL, - PRIMARY KEY (`tpr_thread`,`tpr_relationship`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `thread_reaction` ( - `tr_thread` int(10) unsigned NOT NULL, - `tr_user` int(10) unsigned NOT NULL, - `tr_user_text` varbinary(255) NOT NULL, - `tr_type` varbinary(64) NOT NULL, - `tr_value` int(11) NOT NULL, - PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), - KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `transcache` ( - `tc_url` varbinary(255) NOT NULL, - `tc_contents` text, - `tc_time` binary(14) DEFAULT NULL, - UNIQUE KEY `tc_url_idx` (`tc_url`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `updatelog` ( - `ul_key` varchar(255) NOT NULL, - `ul_value` blob, - PRIMARY KEY (`ul_key`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `uploadstash` ( - `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `us_user` int(10) unsigned NOT NULL, - `us_key` varchar(255) NOT NULL, - `us_orig_path` varchar(255) NOT NULL, - `us_path` varchar(255) NOT NULL, - `us_source_type` varchar(50) DEFAULT NULL, - `us_timestamp` varbinary(14) NOT NULL, - `us_status` varchar(50) NOT NULL, - `us_chunk_inx` int(10) unsigned DEFAULT NULL, - `us_props` blob, - `us_size` int(10) unsigned NOT NULL, - `us_sha1` varchar(31) NOT NULL, - `us_mime` varchar(255) DEFAULT NULL, - `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, - `us_image_width` int(10) unsigned DEFAULT NULL, - `us_image_height` int(10) unsigned DEFAULT NULL, - `us_image_bits` smallint(5) unsigned DEFAULT NULL, - PRIMARY KEY (`us_id`), - UNIQUE KEY `us_key` (`us_key`), - KEY `us_user` (`us_user`), - KEY `us_timestamp` (`us_timestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user` ( - `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `user_password` tinyblob NOT NULL, - `user_newpassword` tinyblob NOT NULL, - `user_newpass_time` binary(14) DEFAULT NULL, - `user_email` tinytext NOT NULL, - `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', - `user_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', - `user_email_authenticated` binary(14) DEFAULT NULL, - `user_email_token` binary(32) DEFAULT NULL, - `user_email_token_expires` binary(14) DEFAULT NULL, - `user_registration` binary(14) DEFAULT NULL, - `user_editcount` int(11) DEFAULT NULL, - PRIMARY KEY (`user_id`), - UNIQUE KEY `user_name` (`user_name`), - KEY `user_email_token` (`user_email_token`), - KEY `user_email` (`user_email`(50)) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_former_groups` ( - `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', - `ufg_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_groups` ( - `ug_user` int(10) unsigned NOT NULL DEFAULT '0', - `ug_group` varbinary(255) NOT NULL DEFAULT '', - UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), - KEY `ug_group` (`ug_group`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_message_state` ( - `ums_user` int(10) unsigned NOT NULL, - `ums_thread` int(8) unsigned NOT NULL, - `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', - `ums_read_timestamp` varbinary(14) DEFAULT NULL, - PRIMARY KEY (`ums_user`,`ums_thread`), - KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_newtalk` ( - `user_id` int(10) unsigned NOT NULL DEFAULT '0', - `user_ip` varbinary(40) NOT NULL DEFAULT '', - `user_last_timestamp` varbinary(14) DEFAULT NULL, - KEY `un_user_id` (`user_id`), - KEY `un_user_ip` (`user_ip`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `user_properties` ( - `up_user` int(11) NOT NULL, - `up_property` varbinary(255) NOT NULL, - `up_value` blob, - UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), - KEY `user_properties_property` (`up_property`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `valid_tag` ( - `vt_tag` varchar(255) NOT NULL, - PRIMARY KEY (`vt_tag`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE IF NOT EXISTS `watchlist` ( - `wl_user` int(10) unsigned NOT NULL, - `wl_namespace` int(11) NOT NULL DEFAULT '0', - `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', - `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, - UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), - KEY `namespace_title` (`wl_namespace`,`wl_title`), - KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) -) ENGINE=InnoDB DEFAULT CHARSET=latin1; -/*!40101 SET character_set_client = @saved_cs_client */; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - -DROP INDEX flow_ext_ref_idx_v2 ON flow_ext_ref; DROP INDEX flow_ext_ref_revision_v2 ON flow_ext_ref; ALTER TABLE flow_ext_ref CHANGE ref_target ref_target BLOB NOT NULL; CREATE INDEX flow_ext_ref_idx_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_type, ref_target(255), ref_src_object_type, ref_src_object_id); CREATE INDEX flow_ext_ref_revision_v2 ON flow_ext_ref (ref_src_wiki, ref_src_namespace, ref_src_title, ref_src_object_type, ref_src_object_id, ref_type, ref_target(255)); + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `archive` ( + `ar_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `ar_namespace` int(11) NOT NULL DEFAULT '0', + `ar_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ar_text` mediumblob NOT NULL, + `ar_comment` varbinary(767) NOT NULL, + `ar_user` int(10) unsigned NOT NULL DEFAULT '0', + `ar_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ar_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `ar_minor_edit` tinyint(4) NOT NULL DEFAULT '0', + `ar_flags` tinyblob NOT NULL, + `ar_rev_id` int(10) unsigned DEFAULT NULL, + `ar_text_id` int(10) unsigned DEFAULT NULL, + `ar_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `ar_len` int(10) unsigned DEFAULT NULL, + `ar_page_id` int(10) unsigned DEFAULT NULL, + `ar_parent_id` int(10) unsigned DEFAULT NULL, + `ar_sha1` varbinary(32) NOT NULL DEFAULT '', + `ar_content_format` varbinary(64) DEFAULT NULL, + `ar_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`ar_id`), + KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`), + KEY `ar_usertext_timestamp` (`ar_user_text`,`ar_timestamp`), + KEY `ar_revid` (`ar_rev_id`), + KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_commentmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `comment_id` (`comment_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_comments` ( + `comment_ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `comment_post_ID` bigint(20) unsigned NOT NULL DEFAULT '0', + `comment_author` tinytext NOT NULL, + `comment_author_email` varchar(100) NOT NULL DEFAULT '', + `comment_author_url` varchar(200) NOT NULL DEFAULT '', + `comment_author_IP` varchar(100) NOT NULL DEFAULT '', + `comment_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `comment_content` text NOT NULL, + `comment_karma` int(11) NOT NULL DEFAULT '0', + `comment_approved` varchar(20) NOT NULL DEFAULT '1', + `comment_agent` varchar(255) NOT NULL DEFAULT '', + `comment_type` varchar(20) NOT NULL DEFAULT '', + `comment_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`comment_ID`), + KEY `comment_post_ID` (`comment_post_ID`), + KEY `comment_approved_date_gmt` (`comment_approved`,`comment_date_gmt`), + KEY `comment_date_gmt` (`comment_date_gmt`), + KEY `comment_parent` (`comment_parent`), + KEY `comment_author_email` (`comment_author_email`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_links` ( + `link_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `link_url` varchar(255) NOT NULL DEFAULT '', + `link_name` varchar(255) NOT NULL DEFAULT '', + `link_image` varchar(255) NOT NULL DEFAULT '', + `link_target` varchar(25) NOT NULL DEFAULT '', + `link_description` varchar(255) NOT NULL DEFAULT '', + `link_visible` varchar(20) NOT NULL DEFAULT 'Y', + `link_owner` bigint(20) unsigned NOT NULL DEFAULT '1', + `link_rating` int(11) NOT NULL DEFAULT '0', + `link_updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `link_rel` varchar(255) NOT NULL DEFAULT '', + `link_notes` mediumtext NOT NULL, + `link_rss` varchar(255) NOT NULL DEFAULT '', + PRIMARY KEY (`link_id`), + KEY `link_visible` (`link_visible`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_options` ( + `option_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `option_name` varchar(64) NOT NULL DEFAULT '', + `option_value` longtext NOT NULL, + `autoload` varchar(20) NOT NULL DEFAULT 'yes', + PRIMARY KEY (`option_id`), + UNIQUE KEY `option_name` (`option_name`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_postmeta` ( + `meta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`meta_id`), + KEY `post_id` (`post_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_posts` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `post_author` bigint(20) unsigned NOT NULL DEFAULT '0', + `post_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_date_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content` longtext NOT NULL, + `post_title` text NOT NULL, + `post_excerpt` text NOT NULL, + `post_status` varchar(20) NOT NULL DEFAULT 'publish', + `comment_status` varchar(20) NOT NULL DEFAULT 'open', + `ping_status` varchar(20) NOT NULL DEFAULT 'open', + `post_password` varchar(20) NOT NULL DEFAULT '', + `post_name` varchar(200) NOT NULL DEFAULT '', + `to_ping` text NOT NULL, + `pinged` text NOT NULL, + `post_modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_modified_gmt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `post_content_filtered` longtext NOT NULL, + `post_parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `guid` varchar(255) NOT NULL DEFAULT '', + `menu_order` int(11) NOT NULL DEFAULT '0', + `post_type` varchar(20) NOT NULL DEFAULT 'post', + `post_mime_type` varchar(100) NOT NULL DEFAULT '', + `comment_count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`), + KEY `post_name` (`post_name`), + KEY `type_status_date` (`post_type`,`post_status`,`post_date`,`ID`), + KEY `post_parent` (`post_parent`), + KEY `post_author` (`post_author`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_relationships` ( + `object_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_taxonomy_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `term_order` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`object_id`,`term_taxonomy_id`), + KEY `term_taxonomy_id` (`term_taxonomy_id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_term_taxonomy` ( + `term_taxonomy_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `term_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `taxonomy` varchar(32) NOT NULL DEFAULT '', + `description` longtext NOT NULL, + `parent` bigint(20) unsigned NOT NULL DEFAULT '0', + `count` bigint(20) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_taxonomy_id`), + UNIQUE KEY `term_id_taxonomy` (`term_id`,`taxonomy`), + KEY `taxonomy` (`taxonomy`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_terms` ( + `term_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(200) NOT NULL DEFAULT '', + `slug` varchar(200) NOT NULL DEFAULT '', + `term_group` bigint(10) NOT NULL DEFAULT '0', + PRIMARY KEY (`term_id`), + KEY `name` (`name`), + KEY `slug` (`slug`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_usermeta` ( + `umeta_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_id` bigint(20) unsigned NOT NULL DEFAULT '0', + `meta_key` varchar(255) DEFAULT NULL, + `meta_value` longtext, + PRIMARY KEY (`umeta_id`), + KEY `user_id` (`user_id`), + KEY `meta_key` (`meta_key`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `blog_users` ( + `ID` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `user_login` varchar(60) NOT NULL DEFAULT '', + `user_pass` varchar(64) NOT NULL DEFAULT '', + `user_nicename` varchar(50) NOT NULL DEFAULT '', + `user_email` varchar(100) NOT NULL DEFAULT '', + `user_url` varchar(100) NOT NULL DEFAULT '', + `user_registered` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', + `user_activation_key` varchar(60) NOT NULL DEFAULT '', + `user_status` int(11) NOT NULL DEFAULT '0', + `display_name` varchar(250) NOT NULL DEFAULT '', + PRIMARY KEY (`ID`), + KEY `user_login_key` (`user_login`), + KEY `user_nicename` (`user_nicename`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `bot_passwords` ( + `bp_user` int(11) NOT NULL, + `bp_app_id` varbinary(32) 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_restrictions` blob NOT NULL, + `bp_grants` blob NOT NULL, + PRIMARY KEY (`bp_user`,`bp_app_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `category` ( + `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `cat_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `cat_pages` int(11) NOT NULL DEFAULT '0', + `cat_subcats` int(11) NOT NULL DEFAULT '0', + `cat_files` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`cat_id`), + UNIQUE KEY `cat_title` (`cat_title`), + KEY `cat_pages` (`cat_pages`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `categorylinks` ( + `cl_from` int(10) unsigned NOT NULL DEFAULT '0', + `cl_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_sortkey` varbinary(230) NOT NULL DEFAULT '', + `cl_sortkey_prefix` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `cl_collation` varbinary(32) NOT NULL DEFAULT '', + `cl_type` enum('page','subcat','file') NOT NULL DEFAULT 'page', + UNIQUE KEY `cl_from` (`cl_from`,`cl_to`), + KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`), + KEY `cl_timestamp` (`cl_to`,`cl_timestamp`), + KEY `cl_collation_ext` (`cl_collation`,`cl_to`,`cl_type`,`cl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `change_tag` ( + `ct_rc_id` int(11) DEFAULT NULL, + `ct_log_id` int(11) DEFAULT NULL, + `ct_rev_id` int(11) DEFAULT NULL, + `ct_tag` varchar(255) NOT NULL, + `ct_params` blob, + UNIQUE KEY `change_tag_rc_tag` (`ct_rc_id`,`ct_tag`), + UNIQUE KEY `change_tag_log_tag` (`ct_log_id`,`ct_tag`), + UNIQUE KEY `change_tag_rev_tag` (`ct_rev_id`,`ct_tag`), + KEY `change_tag_tag_id` (`ct_tag`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_email_batch` ( + `eeb_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `eeb_user_id` int(10) unsigned NOT NULL, + `eeb_event_priority` tinyint(3) unsigned NOT NULL DEFAULT '10', + `eeb_event_id` int(10) unsigned NOT NULL, + `eeb_event_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eeb_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`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_event` ( + `event_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `event_type` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `event_variant` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_agent_id` int(10) unsigned DEFAULT NULL, + `event_agent_ip` varchar(39) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_page_namespace` int(10) unsigned DEFAULT NULL, + `event_page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `event_extra` blob, + `event_page_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`event_id`), + KEY `echo_event_type` (`event_type`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_notification` ( + `notification_event` int(10) unsigned NOT NULL, + `notification_user` int(10) unsigned NOT NULL, + `notification_timestamp` binary(14) NOT NULL, + `notification_read_timestamp` binary(14) DEFAULT NULL, + `notification_bundle_base` tinyint(1) NOT NULL DEFAULT '1', + `notification_bundle_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `notification_bundle_display_hash` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `user_event` (`notification_user`,`notification_event`), + KEY `echo_notification_user_base_read_timestamp` (`notification_user`,`notification_bundle_base`,`notification_read_timestamp`), + KEY `echo_notification_user_base_timestamp` (`notification_user`,`notification_bundle_base`,`notification_timestamp`,`notification_event`), + KEY `echo_notification_user_hash_timestamp` (`notification_user`,`notification_bundle_hash`,`notification_timestamp`), + KEY `echo_notification_user_hash_base_timestamp` (`notification_user`,`notification_bundle_display_hash`,`notification_bundle_base`,`notification_timestamp`), + KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `echo_target_page` ( + `etp_user` 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_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`etp_id`), + KEY `echo_target_page_user_page_event` (`etp_user`,`etp_page`,`etp_event`), + KEY `echo_target_page_user_event` (`etp_user`,`etp_event`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `external_user` ( + `eu_local_id` int(10) unsigned NOT NULL, + `eu_external_id` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + PRIMARY KEY (`eu_local_id`), + UNIQUE KEY `eu_external_id` (`eu_external_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `externallinks` ( + `el_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `el_from` int(10) unsigned NOT NULL DEFAULT '0', + `el_to` blob NOT NULL, + `el_index` blob NOT NULL, + PRIMARY KEY (`el_id`), + KEY `el_from` (`el_from`,`el_to`(40)), + KEY `el_to` (`el_to`(60),`el_from`), + KEY `el_index` (`el_index`(60)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `filearchive` ( + `fa_id` int(11) NOT NULL AUTO_INCREMENT, + `fa_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fa_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT '', + `fa_storage_group` varbinary(16) DEFAULT NULL, + `fa_storage_key` varbinary(64) DEFAULT '', + `fa_deleted_user` int(11) DEFAULT NULL, + `fa_deleted_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted_reason` varbinary(767) DEFAULT '', + `fa_size` int(10) unsigned DEFAULT '0', + `fa_width` int(11) DEFAULT '0', + `fa_height` int(11) DEFAULT '0', + `fa_metadata` mediumblob, + `fa_bits` int(11) DEFAULT '0', + `fa_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `fa_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `fa_minor_mime` varbinary(100) DEFAULT 'unknown', + `fa_description` varbinary(767) DEFAULT NULL, + `fa_user` int(10) unsigned DEFAULT '0', + `fa_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fa_timestamp` binary(14) DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `fa_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `fa_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fa_id`), + KEY `fa_name` (`fa_name`,`fa_timestamp`), + KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`), + KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`), + KEY `fa_user_timestamp` (`fa_user_text`,`fa_timestamp`), + KEY `fa_sha1` (`fa_sha1`(10)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedimages` ( + `fi_rev_id` int(10) unsigned NOT NULL, + `fi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `fi_img_timestamp` varbinary(14) DEFAULT NULL, + `fi_img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`fi_rev_id`,`fi_name`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_config` ( + `fpc_page_id` int(10) unsigned NOT NULL, + `fpc_select` int(11) NOT NULL, + `fpc_override` tinyint(1) NOT NULL, + `fpc_level` varbinary(60) DEFAULT NULL, + `fpc_expiry` varbinary(14) NOT NULL DEFAULT 'infinity', + PRIMARY KEY (`fpc_page_id`), + KEY `fpc_expiry` (`fpc_expiry`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpage_pending` ( + `fpp_page_id` int(10) unsigned NOT NULL, + `fpp_quality` tinyint(1) NOT NULL, + `fpp_rev_id` int(10) unsigned NOT NULL, + `fpp_pending_since` varbinary(14) NOT NULL, + PRIMARY KEY (`fpp_page_id`,`fpp_quality`), + KEY `fpp_quality_pending` (`fpp_quality`,`fpp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedpages` ( + `fp_page_id` int(10) unsigned NOT NULL, + `fp_reviewed` tinyint(1) NOT NULL DEFAULT '0', + `fp_pending_since` varbinary(14) DEFAULT NULL, + `fp_stable` int(10) unsigned NOT NULL, + `fp_quality` tinyint(1) DEFAULT NULL, + PRIMARY KEY (`fp_page_id`), + KEY `fp_reviewed_page` (`fp_reviewed`,`fp_page_id`), + KEY `fp_quality_page` (`fp_quality`,`fp_page_id`), + KEY `fp_pending_since` (`fp_pending_since`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs` ( + `fr_rev_id` int(10) unsigned NOT NULL, + `fr_rev_timestamp` varbinary(14) NOT NULL DEFAULT '', + `fr_page_id` int(10) unsigned NOT NULL, + `fr_user` int(10) unsigned NOT NULL, + `fr_timestamp` varbinary(14) NOT NULL, + `fr_quality` tinyint(1) NOT NULL DEFAULT '0', + `fr_tags` mediumblob NOT NULL, + `fr_flags` tinyblob NOT NULL, + `fr_img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `fr_img_timestamp` varbinary(14) DEFAULT NULL, + `fr_img_sha1` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`fr_rev_id`), + KEY `page_rev` (`fr_page_id`,`fr_rev_id`), + KEY `page_time` (`fr_page_id`,`fr_rev_timestamp`), + KEY `page_qal_rev` (`fr_page_id`,`fr_quality`,`fr_rev_id`), + KEY `page_qal_time` (`fr_page_id`,`fr_quality`,`fr_rev_timestamp`), + KEY `fr_img_sha1` (`fr_img_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_promote` ( + `frp_user_id` int(10) unsigned NOT NULL, + `frp_user_params` mediumblob NOT NULL, + PRIMARY KEY (`frp_user_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_statistics` ( + `frs_timestamp` varbinary(14) NOT NULL, + `frs_stat_key` varchar(255) NOT NULL, + `frs_stat_val` bigint(20) NOT NULL, + PRIMARY KEY (`frs_stat_key`,`frs_timestamp`), + KEY `frs_timestamp` (`frs_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedrevs_tracking` ( + `ftr_from` int(10) unsigned NOT NULL DEFAULT '0', + `ftr_namespace` int(11) NOT NULL DEFAULT '0', + `ftr_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `from_namespace_title` (`ftr_from`,`ftr_namespace`,`ftr_title`), + KEY `namespace_title_from` (`ftr_namespace`,`ftr_title`,`ftr_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flaggedtemplates` ( + `ft_rev_id` int(10) unsigned NOT NULL, + `ft_namespace` int(11) NOT NULL DEFAULT '0', + `ft_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ft_tmp_rev_id` int(10) unsigned DEFAULT NULL, + PRIMARY KEY (`ft_rev_id`,`ft_namespace`,`ft_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_ext_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target` blob NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_ext_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target`(255),`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_ext_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target`(255)) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_revision` ( + `rev_id` binary(11) NOT NULL, + `rev_type` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_type_id` binary(11) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0', + `rev_user_id` bigint(20) unsigned NOT NULL, + `rev_user_ip` varbinary(39) DEFAULT NULL, + `rev_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_parent_id` binary(11) DEFAULT NULL, + `rev_flags` tinyblob NOT NULL, + `rev_content` mediumblob NOT NULL, + `rev_change_type` varbinary(255) DEFAULT NULL, + `rev_mod_state` varchar(32) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rev_mod_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_mod_user_ip` varbinary(39) DEFAULT NULL, + `rev_mod_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_mod_reason` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_last_edit_id` binary(11) DEFAULT NULL, + `rev_edit_user_id` bigint(20) unsigned DEFAULT NULL, + `rev_edit_user_ip` varbinary(39) DEFAULT NULL, + `rev_edit_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + `rev_content_length` int(11) NOT NULL DEFAULT '0', + `rev_previous_content_length` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`rev_id`), + UNIQUE KEY `flow_revision_unique_parent` (`rev_parent_id`), + KEY `flow_revision_type_id` (`rev_type`,`rev_type_id`), + KEY `flow_revision_user` (`rev_user_id`,`rev_user_ip`,`rev_user_wiki`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_subscription` ( + `subscription_workflow_id` int(10) unsigned NOT NULL, + `subscription_user_id` bigint(20) unsigned NOT NULL, + `subscription_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_create_timestamp` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `subscription_last_updated` varchar(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + UNIQUE KEY `flow_subscription_unique_user_workflow` (`subscription_workflow_id`,`subscription_user_id`,`subscription_user_wiki`), + KEY `flow_subscription_lookup` (`subscription_user_id`,`subscription_user_wiki`,`subscription_last_updated`,`subscription_workflow_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_topic_list` ( + `topic_list_id` binary(11) NOT NULL, + `topic_id` binary(11) DEFAULT NULL, + UNIQUE KEY `flow_topic_list_pk` (`topic_list_id`,`topic_id`), + KEY `flow_topic_list_topic_id` (`topic_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_node` ( + `tree_ancestor_id` binary(11) NOT NULL, + `tree_descendant_id` binary(11) NOT NULL, + `tree_depth` smallint(6) NOT NULL, + UNIQUE KEY `flow_tree_node_pk` (`tree_ancestor_id`,`tree_descendant_id`), + UNIQUE KEY `flow_tree_constraint` (`tree_descendant_id`,`tree_depth`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_tree_revision` ( + `tree_rev_descendant_id` binary(11) NOT NULL, + `tree_rev_id` binary(11) NOT NULL, + `tree_orig_user_id` bigint(20) unsigned NOT NULL, + `tree_orig_user_ip` varbinary(39) DEFAULT NULL, + `tree_orig_user_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `tree_parent_id` binary(11) DEFAULT NULL, + PRIMARY KEY (`tree_rev_id`), + KEY `flow_tree_descendant_rev_id` (`tree_rev_descendant_id`,`tree_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_wiki_ref` ( + `ref_src_object_id` binary(11) NOT NULL, + `ref_src_object_type` varbinary(32) NOT NULL, + `ref_src_workflow_id` binary(11) NOT NULL, + `ref_src_namespace` int(11) NOT NULL, + `ref_src_title` varbinary(255) NOT NULL, + `ref_target_namespace` int(11) NOT NULL, + `ref_target_title` varbinary(255) NOT NULL, + `ref_type` varbinary(16) NOT NULL, + `ref_src_wiki` varchar(16) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `ref_id` binary(11) NOT NULL, + PRIMARY KEY (`ref_id`), + KEY `flow_wiki_ref_idx_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_type`,`ref_target_namespace`,`ref_target_title`,`ref_src_object_type`,`ref_src_object_id`), + KEY `flow_wiki_ref_revision_v2` (`ref_src_wiki`,`ref_src_namespace`,`ref_src_title`,`ref_src_object_type`,`ref_src_object_id`,`ref_type`,`ref_target_namespace`,`ref_target_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `flow_workflow` ( + `workflow_id` binary(11) NOT NULL, + `workflow_wiki` varchar(64) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_namespace` int(11) NOT NULL, + `workflow_page_id` int(10) unsigned NOT NULL, + `workflow_title_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `workflow_last_update_timestamp` binary(14) NOT NULL, + `workflow_lock_state` int(10) unsigned NOT NULL, + `workflow_type` varbinary(16) NOT NULL, + PRIMARY KEY (`workflow_id`), + KEY `flow_workflow_lookup` (`workflow_wiki`,`workflow_namespace`,`workflow_title_text`), + KEY `flow_workflow_update_timestamp` (`workflow_last_update_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `historical_thread` ( + `hthread_id` int(8) unsigned NOT NULL, + `hthread_revision` int(8) unsigned NOT NULL, + `hthread_contents` blob NOT NULL, + `hthread_change_type` int(4) unsigned NOT NULL, + `hthread_change_object` int(8) unsigned DEFAULT NULL, + PRIMARY KEY (`hthread_id`,`hthread_revision`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `image` ( + `img_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `img_size` int(10) unsigned NOT NULL DEFAULT '0', + `img_width` int(11) NOT NULL DEFAULT '0', + `img_height` int(11) NOT NULL DEFAULT '0', + `img_metadata` mediumblob NOT NULL, + `img_bits` int(11) NOT NULL DEFAULT '0', + `img_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `img_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `img_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `img_description` varbinary(767) NOT NULL, + `img_user` int(10) unsigned NOT NULL DEFAULT '0', + `img_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `img_timestamp` varbinary(14) NOT NULL DEFAULT '', + `img_sha1` varbinary(32) NOT NULL DEFAULT '', + PRIMARY KEY (`img_name`), + KEY `img_usertext_timestamp` (`img_user_text`,`img_timestamp`), + KEY `img_size` (`img_size`), + KEY `img_timestamp` (`img_timestamp`), + KEY `img_sha1` (`img_sha1`), + KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `imagelinks` ( + `il_from` int(10) unsigned NOT NULL DEFAULT '0', + `il_to` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `il_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `il_from` (`il_from`,`il_to`), + UNIQUE KEY `il_to` (`il_to`,`il_from`), + KEY `il_backlinks_namespace` (`il_to`,`il_from_namespace`,`il_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `interwiki` ( + `iw_prefix` varchar(32) NOT NULL, + `iw_url` blob NOT NULL, + `iw_api` blob NOT NULL, + `iw_wikiid` varchar(64) NOT NULL, + `iw_local` tinyint(1) NOT NULL, + `iw_trans` tinyint(4) NOT NULL DEFAULT '0', + UNIQUE KEY `iw_prefix` (`iw_prefix`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `ipblocks` ( + `ipb_id` int(11) NOT NULL AUTO_INCREMENT, + `ipb_address` tinyblob NOT NULL, + `ipb_user` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by` int(10) unsigned NOT NULL DEFAULT '0', + `ipb_by_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `ipb_reason` varbinary(767) NOT NULL, + `ipb_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `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 DEFAULT '', + `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(11) DEFAULT NULL, + PRIMARY KEY (`ipb_id`), + UNIQUE KEY `ipb_address` (`ipb_address`(255),`ipb_user`,`ipb_auto`,`ipb_anon_only`), + 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 AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `iwlinks` ( + `iwl_from` int(10) unsigned NOT NULL DEFAULT '0', + `iwl_prefix` varbinary(20) NOT NULL DEFAULT '', + `iwl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `iwl_from` (`iwl_from`,`iwl_prefix`,`iwl_title`), + 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=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `job` ( + `job_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `job_cmd` varbinary(60) NOT NULL DEFAULT '', + `job_namespace` int(11) NOT NULL, + `job_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `job_params` blob NOT NULL, + `job_timestamp` varbinary(14) DEFAULT NULL, + `job_random` int(10) unsigned NOT NULL DEFAULT '0', + `job_token` varbinary(32) NOT NULL DEFAULT '', + `job_token_timestamp` varbinary(14) DEFAULT NULL, + `job_sha1` varbinary(32) NOT NULL DEFAULT '', + `job_attempts` int(10) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`job_id`), + KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)), + KEY `job_timestamp` (`job_timestamp`), + KEY `job_sha1` (`job_sha1`), + KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`), + KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `l10n_cache` ( + `lc_lang` varbinary(32) NOT NULL, + `lc_key` varchar(255) NOT NULL, + `lc_value` mediumblob NOT NULL, + KEY `lc_lang_key` (`lc_lang`,`lc_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `langlinks` ( + `ll_from` int(10) unsigned NOT NULL DEFAULT '0', + `ll_lang` varbinary(20) NOT NULL DEFAULT '', + `ll_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`), + KEY `ll_lang` (`ll_lang`,`ll_title`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `log_search` ( + `ls_field` varbinary(32) NOT NULL, + `ls_value` varchar(255) NOT NULL, + `ls_log_id` int(10) unsigned NOT NULL DEFAULT '0', + UNIQUE KEY `ls_field_val` (`ls_field`,`ls_value`,`ls_log_id`), + KEY `ls_log_id` (`ls_log_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `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_user` int(10) unsigned NOT NULL DEFAULT '0', + `log_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_namespace` int(11) NOT NULL DEFAULT '0', + `log_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `log_page` int(10) unsigned DEFAULT NULL, + `log_comment` varbinary(767) NOT NULL DEFAULT '', + `log_params` blob NOT NULL, + `log_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`log_id`), + KEY `type_time` (`log_type`,`log_timestamp`), + KEY `user_time` (`log_user`,`log_timestamp`), + KEY `page_time` (`log_namespace`,`log_title`,`log_timestamp`), + KEY `times` (`log_timestamp`), + KEY `log_user_type_time` (`log_user`,`log_type`,`log_timestamp`), + KEY `log_page_id_time` (`log_page`,`log_timestamp`), + KEY `type_action` (`log_type`,`log_action`,`log_timestamp`), + KEY `log_user_text_type_time` (`log_user_text`,`log_type`,`log_timestamp`), + KEY `log_user_text_time` (`log_user_text`,`log_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `math` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_outputhash` varbinary(16) NOT NULL, + `math_html_conservativeness` tinyint(4) NOT NULL, + `math_html` text, + `math_mathml` text, + UNIQUE KEY `math_inputhash` (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `mathoid` ( + `math_inputhash` varbinary(16) NOT NULL, + `math_input` text NOT NULL, + `math_tex` text, + `math_mathml` text, + `math_svg` text, + `math_style` tinyint(4) DEFAULT NULL, + `math_input_type` tinyint(4) DEFAULT NULL, + PRIMARY KEY (`math_inputhash`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `module_deps` ( + `md_module` varbinary(255) NOT NULL, + `md_skin` varbinary(32) NOT NULL, + `md_deps` mediumblob NOT NULL, + UNIQUE KEY `md_module_skin` (`md_module`,`md_skin`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `objectcache` ( + `keyname` varbinary(255) NOT NULL DEFAULT '', + `value` mediumblob, + `exptime` datetime DEFAULT NULL, + PRIMARY KEY (`keyname`), + KEY `exptime` (`exptime`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `oldimage` ( + `oi_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_archive_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `oi_size` int(10) unsigned NOT NULL DEFAULT '0', + `oi_width` int(11) NOT NULL DEFAULT '0', + `oi_height` int(11) NOT NULL DEFAULT '0', + `oi_bits` int(11) NOT NULL DEFAULT '0', + `oi_description` varbinary(767) NOT NULL, + `oi_user` int(10) unsigned NOT NULL DEFAULT '0', + `oi_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `oi_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `oi_metadata` mediumblob NOT NULL, + `oi_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `oi_major_mime` enum('unknown','application','audio','image','text','video','message','model','multipart','chemical') DEFAULT NULL, + `oi_minor_mime` varbinary(100) NOT NULL DEFAULT 'unknown', + `oi_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `oi_sha1` varbinary(32) NOT NULL DEFAULT '', + KEY `oi_usertext_timestamp` (`oi_user_text`,`oi_timestamp`), + KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`), + KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)), + KEY `oi_sha1` (`oi_sha1`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page` ( + `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `page_namespace` int(11) NOT NULL, + `page_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `page_restrictions` tinyblob NOT NULL, + `page_is_redirect` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_is_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `page_random` double unsigned NOT NULL, + `page_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `page_latest` int(10) unsigned NOT NULL, + `page_len` int(10) unsigned NOT NULL, + `page_content_model` varbinary(32) DEFAULT NULL, + `page_links_updated` varbinary(14) DEFAULT NULL, + `page_lang` varbinary(35) DEFAULT NULL, + PRIMARY KEY (`page_id`), + UNIQUE KEY `name_title` (`page_namespace`,`page_title`), + KEY `page_random` (`page_random`), + KEY `page_len` (`page_len`), + KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_props` ( + `pp_page` int(11) NOT NULL, + `pp_propname` varbinary(60) NOT NULL, + `pp_value` blob NOT NULL, + `pp_sortkey` float DEFAULT NULL, + UNIQUE KEY `pp_page_propname` (`pp_page`,`pp_propname`), + UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`), + UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `page_restrictions` ( + `pr_page` int(11) NOT NULL, + `pr_type` varbinary(60) NOT NULL, + `pr_level` varbinary(60) NOT NULL, + `pr_cascade` tinyint(4) NOT NULL, + `pr_user` int(11) DEFAULT NULL, + `pr_expiry` varbinary(14) DEFAULT NULL, + `pr_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + PRIMARY KEY (`pr_id`), + UNIQUE KEY `pr_pagetype` (`pr_page`,`pr_type`), + KEY `pr_typelevel` (`pr_type`,`pr_level`), + KEY `pr_level` (`pr_level`), + KEY `pr_cascade` (`pr_cascade`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `pagelinks` ( + `pl_from` int(10) unsigned NOT NULL DEFAULT '0', + `pl_namespace` int(11) NOT NULL DEFAULT '0', + `pl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `pl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`), + UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`), + KEY `pl_backlinks_namespace` (`pl_namespace`,`pl_title`,`pl_from_namespace`,`pl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `protected_titles` ( + `pt_namespace` int(11) NOT NULL, + `pt_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `pt_user` int(10) unsigned NOT NULL, + `pt_reason` varbinary(767) DEFAULT NULL, + `pt_timestamp` binary(14) NOT NULL, + `pt_expiry` varbinary(14) NOT NULL DEFAULT '', + `pt_create_perm` varbinary(60) NOT NULL, + UNIQUE KEY `pt_namespace_title` (`pt_namespace`,`pt_title`), + KEY `pt_timestamp` (`pt_timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache` ( + `qc_type` varbinary(32) NOT NULL, + `qc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qc_namespace` int(11) NOT NULL DEFAULT '0', + `qc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qc_type` (`qc_type`,`qc_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycache_info` ( + `qci_type` varbinary(32) NOT NULL DEFAULT '', + `qci_timestamp` binary(14) NOT NULL DEFAULT '19700101000000', + UNIQUE KEY `qci_type` (`qci_type`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `querycachetwo` ( + `qcc_type` varbinary(32) NOT NULL, + `qcc_value` int(10) unsigned NOT NULL DEFAULT '0', + `qcc_namespace` int(11) NOT NULL DEFAULT '0', + `qcc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0', + `qcc_titletwo` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + KEY `qcc_type` (`qcc_type`,`qcc_value`), + KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`), + KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `recentchanges` ( + `rc_id` int(11) NOT NULL AUTO_INCREMENT, + `rc_timestamp` varbinary(14) NOT NULL DEFAULT '', + `rc_user` int(10) unsigned NOT NULL DEFAULT '0', + `rc_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `rc_namespace` int(11) NOT NULL DEFAULT '0', + `rc_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rc_comment` varbinary(767) NOT NULL DEFAULT '', + `rc_minor` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_bot` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_new` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_cur_id` int(10) unsigned NOT NULL DEFAULT '0', + `rc_this_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_last_oldid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_type` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_patrolled` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_ip` varbinary(40) NOT NULL DEFAULT '', + `rc_old_len` int(11) DEFAULT NULL, + `rc_new_len` int(11) DEFAULT NULL, + `rc_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rc_logid` int(10) unsigned NOT NULL DEFAULT '0', + `rc_log_type` varbinary(255) DEFAULT NULL, + `rc_log_action` varbinary(255) DEFAULT NULL, + `rc_params` blob, + `rc_source` varbinary(16) NOT NULL DEFAULT '', + PRIMARY KEY (`rc_id`), + KEY `rc_timestamp` (`rc_timestamp`), + KEY `rc_namespace_title` (`rc_namespace`,`rc_title`), + KEY `rc_cur_id` (`rc_cur_id`), + KEY `new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`), + KEY `rc_ip` (`rc_ip`), + KEY `rc_ns_usertext` (`rc_namespace`,`rc_user_text`), + KEY `rc_user_text` (`rc_user_text`,`rc_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `redirect` ( + `rd_from` int(10) unsigned NOT NULL DEFAULT '0', + `rd_namespace` int(11) NOT NULL DEFAULT '0', + `rd_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rd_interwiki` varchar(32) DEFAULT NULL, + `rd_fragment` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin DEFAULT NULL, + PRIMARY KEY (`rd_from`), + KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `revision` ( + `rev_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `rev_page` int(10) unsigned NOT NULL, + `rev_text_id` int(10) unsigned NOT NULL, + `rev_comment` varbinary(767) NOT NULL, + `rev_user` int(10) unsigned NOT NULL DEFAULT '0', + `rev_user_text` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `rev_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `rev_minor_edit` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_deleted` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rev_len` int(10) unsigned DEFAULT NULL, + `rev_parent_id` int(10) unsigned DEFAULT NULL, + `rev_sha1` varbinary(32) NOT NULL DEFAULT '', + `rev_content_format` varbinary(64) DEFAULT NULL, + `rev_content_model` varbinary(32) DEFAULT NULL, + PRIMARY KEY (`rev_id`), + UNIQUE KEY `rev_page_id` (`rev_page`,`rev_id`), + KEY `rev_timestamp` (`rev_timestamp`), + KEY `page_timestamp` (`rev_page`,`rev_timestamp`), + KEY `user_timestamp` (`rev_user`,`rev_timestamp`), + KEY `usertext_timestamp` (`rev_user_text`,`rev_timestamp`), + KEY `page_user_timestamp` (`rev_page`,`rev_user`,`rev_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=1024; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `searchindex` ( + `si_page` int(10) unsigned NOT NULL, + `si_title` varchar(255) NOT NULL DEFAULT '', + `si_text` mediumtext NOT NULL, + UNIQUE KEY `si_page` (`si_page`), + FULLTEXT KEY `si_title` (`si_title`), + FULLTEXT KEY `si_text` (`si_text`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_identifiers` ( + `si_site` int(10) unsigned NOT NULL, + `si_type` varbinary(32) NOT NULL, + `si_key` varbinary(32) NOT NULL, + UNIQUE KEY `site_ids_type` (`si_type`,`si_key`), + KEY `site_ids_site` (`si_site`), + KEY `site_ids_key` (`si_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `site_stats` ( + `ss_row_id` int(10) unsigned NOT NULL, + `ss_total_edits` bigint(20) unsigned DEFAULT '0', + `ss_good_articles` bigint(20) unsigned DEFAULT '0', + `ss_total_pages` bigint(20) DEFAULT '-1', + `ss_users` bigint(20) DEFAULT '-1', + `ss_active_users` bigint(20) DEFAULT '-1', + `ss_images` int(11) DEFAULT '0', + UNIQUE KEY `ss_row_id` (`ss_row_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `sites` ( + `site_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `site_global_key` varbinary(32) NOT NULL, + `site_type` varbinary(32) NOT NULL, + `site_group` varbinary(32) NOT NULL, + `site_source` varbinary(32) NOT NULL, + `site_language` varbinary(32) NOT NULL, + `site_protocol` varbinary(32) NOT NULL, + `site_domain` varchar(255) NOT NULL, + `site_data` blob NOT NULL, + `site_forward` tinyint(1) NOT NULL, + `site_config` blob NOT NULL, + PRIMARY KEY (`site_id`), + UNIQUE KEY `sites_global_key` (`site_global_key`), + KEY `sites_type` (`site_type`), + KEY `sites_group` (`site_group`), + KEY `sites_source` (`site_source`), + KEY `sites_language` (`site_language`), + KEY `sites_protocol` (`site_protocol`), + KEY `sites_domain` (`site_domain`), + KEY `sites_forward` (`site_forward`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `tag_summary` ( + `ts_rc_id` int(11) DEFAULT NULL, + `ts_log_id` int(11) DEFAULT NULL, + `ts_rev_id` int(11) DEFAULT NULL, + `ts_tags` blob NOT NULL, + UNIQUE KEY `tag_summary_rc_id` (`ts_rc_id`), + UNIQUE KEY `tag_summary_log_id` (`ts_log_id`), + UNIQUE KEY `tag_summary_rev_id` (`ts_rev_id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `templatelinks` ( + `tl_from` int(10) unsigned NOT NULL DEFAULT '0', + `tl_namespace` int(11) NOT NULL DEFAULT '0', + `tl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `tl_from_namespace` int(11) NOT NULL DEFAULT '0', + UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`), + UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`), + KEY `tl_backlinks_namespace` (`tl_namespace`,`tl_title`,`tl_from_namespace`,`tl_from`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `text` ( + `old_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `old_text` mediumblob NOT NULL, + `old_flags` tinyblob NOT NULL, + PRIMARY KEY (`old_id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=10240; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread` ( + `thread_id` int(8) unsigned NOT NULL AUTO_INCREMENT, + `thread_root` int(8) unsigned NOT NULL, + `thread_ancestor` int(8) unsigned NOT NULL, + `thread_parent` int(8) unsigned DEFAULT NULL, + `thread_summary_page` int(8) unsigned DEFAULT NULL, + `thread_subject` varchar(255) DEFAULT NULL, + `thread_author_id` int(10) unsigned DEFAULT NULL, + `thread_author_name` varchar(255) DEFAULT NULL, + `thread_modified` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_created` char(14) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `thread_editedness` int(1) NOT NULL DEFAULT '0', + `thread_article_namespace` int(11) NOT NULL, + `thread_article_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL, + `thread_article_id` int(8) unsigned NOT NULL, + `thread_type` int(4) unsigned NOT NULL DEFAULT '0', + `thread_sortkey` varchar(255) NOT NULL DEFAULT '', + `thread_replies` int(8) DEFAULT '-1', + `thread_signature` tinyblob, + PRIMARY KEY (`thread_id`), + UNIQUE KEY `thread_root` (`thread_root`), + UNIQUE KEY `thread_root_2` (`thread_root`), + KEY `thread_ancestor` (`thread_ancestor`,`thread_parent`), + KEY `thread_article_title` (`thread_article_namespace`,`thread_article_title`,`thread_sortkey`), + KEY `thread_article` (`thread_article_id`,`thread_sortkey`), + KEY `thread_modified` (`thread_modified`), + KEY `thread_created` (`thread_created`), + KEY `thread_summary_page` (`thread_summary_page`), + KEY `thread_author_name` (`thread_author_id`,`thread_author_name`), + KEY `thread_sortkey` (`thread_sortkey`), + KEY `thread_parent` (`thread_parent`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_history` ( + `th_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `th_thread` int(10) unsigned NOT NULL, + `th_timestamp` varbinary(14) NOT NULL, + `th_user` int(10) unsigned NOT NULL, + `th_user_text` varchar(255) NOT NULL, + `th_change_type` int(10) unsigned NOT NULL, + `th_change_object` int(10) unsigned NOT NULL, + `th_change_comment` tinytext NOT NULL, + `th_content` longblob NOT NULL, + PRIMARY KEY (`th_id`), + KEY `th_thread_timestamp` (`th_thread`,`th_timestamp`), + KEY `th_timestamp_thread` (`th_timestamp`,`th_thread`), + KEY `th_user_text` (`th_user`,`th_user_text`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_pending_relationship` ( + `tpr_thread` int(10) unsigned NOT NULL, + `tpr_relationship` varbinary(64) NOT NULL, + `tpr_title` varbinary(255) NOT NULL, + `tpr_type` varbinary(32) NOT NULL, + PRIMARY KEY (`tpr_thread`,`tpr_relationship`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `thread_reaction` ( + `tr_thread` int(10) unsigned NOT NULL, + `tr_user` int(10) unsigned NOT NULL, + `tr_user_text` varbinary(255) NOT NULL, + `tr_type` varbinary(64) NOT NULL, + `tr_value` int(11) NOT NULL, + PRIMARY KEY (`tr_thread`,`tr_user`,`tr_user_text`,`tr_type`,`tr_value`), + KEY `tr_user_text_value` (`tr_user`,`tr_user_text`,`tr_type`,`tr_value`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `trackbacks` ( + `tb_id` int(11) NOT NULL AUTO_INCREMENT, + `tb_page` int(11) DEFAULT NULL, + `tb_title` varchar(255) NOT NULL, + `tb_url` blob NOT NULL, + `tb_ex` text, + `tb_name` varchar(255) DEFAULT NULL, + PRIMARY KEY (`tb_id`), + KEY `tb_page` (`tb_page`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `transcache` ( + `tc_url` varbinary(255) NOT NULL, + `tc_contents` text, + `tc_time` binary(14) DEFAULT NULL, + UNIQUE KEY `tc_url_idx` (`tc_url`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `updatelog` ( + `ul_key` varchar(255) NOT NULL, + `ul_value` blob, + PRIMARY KEY (`ul_key`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `uploadstash` ( + `us_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `us_user` int(10) unsigned NOT NULL, + `us_key` varchar(255) NOT NULL, + `us_orig_path` varchar(255) NOT NULL, + `us_path` varchar(255) NOT NULL, + `us_source_type` varchar(50) DEFAULT NULL, + `us_timestamp` varbinary(14) NOT NULL, + `us_status` varchar(50) NOT NULL, + `us_size` int(10) unsigned NOT NULL, + `us_sha1` varchar(31) NOT NULL, + `us_mime` varchar(255) DEFAULT NULL, + `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') DEFAULT NULL, + `us_image_width` int(10) unsigned DEFAULT NULL, + `us_image_height` int(10) unsigned DEFAULT NULL, + `us_image_bits` smallint(5) unsigned DEFAULT NULL, + `us_chunk_inx` int(10) unsigned DEFAULT NULL, + `us_props` blob, + PRIMARY KEY (`us_id`), + UNIQUE KEY `us_key` (`us_key`), + KEY `us_user` (`us_user`), + KEY `us_timestamp` (`us_timestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user` ( + `user_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_real_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `user_password` tinyblob NOT NULL, + `user_newpassword` tinyblob NOT NULL, + `user_newpass_time` binary(14) DEFAULT NULL, + `user_email` tinytext NOT NULL, + `user_touched` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + `user_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', + `user_email_authenticated` binary(14) DEFAULT NULL, + `user_email_token` binary(32) DEFAULT NULL, + `user_email_token_expires` binary(14) DEFAULT NULL, + `user_registration` binary(14) DEFAULT NULL, + `user_editcount` int(11) DEFAULT NULL, + PRIMARY KEY (`user_id`), + UNIQUE KEY `user_name` (`user_name`), + KEY `user_email_token` (`user_email_token`), + KEY `user_email` (`user_email`(50)) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_former_groups` ( + `ufg_user` int(10) unsigned NOT NULL DEFAULT '0', + `ufg_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ufg_user_group` (`ufg_user`,`ufg_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_groups` ( + `ug_user` int(10) unsigned NOT NULL DEFAULT '0', + `ug_group` varbinary(255) NOT NULL DEFAULT '', + UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`), + KEY `ug_group` (`ug_group`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_message_state` ( + `ums_user` int(10) unsigned NOT NULL, + `ums_thread` int(8) unsigned NOT NULL, + `ums_conversation` int(8) unsigned NOT NULL DEFAULT '0', + `ums_read_timestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`ums_user`,`ums_thread`), + KEY `ums_user_conversation` (`ums_user`,`ums_conversation`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_newtalk` ( + `user_id` int(10) unsigned NOT NULL DEFAULT '0', + `user_ip` varbinary(40) NOT NULL DEFAULT '', + `user_last_timestamp` varbinary(14) DEFAULT NULL, + KEY `un_user_id` (`user_id`), + KEY `un_user_ip` (`user_ip`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `user_properties` ( + `up_user` int(11) NOT NULL, + `up_property` varbinary(255) DEFAULT NULL, + `up_value` blob, + UNIQUE KEY `user_properties_user_property` (`up_user`,`up_property`), + KEY `user_properties_property` (`up_property`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `valid_tag` ( + `vt_tag` varchar(255) NOT NULL, + PRIMARY KEY (`vt_tag`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE IF NOT EXISTS `watchlist` ( + `wl_id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `wl_user` int(10) unsigned NOT NULL, + `wl_namespace` int(11) NOT NULL DEFAULT '0', + `wl_title` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL DEFAULT '', + `wl_notificationtimestamp` varbinary(14) DEFAULT NULL, + PRIMARY KEY (`wl_id`), + UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`), + KEY `namespace_title` (`wl_namespace`,`wl_title`), + KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; +