Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added sql code in test-data/database-schema.sql to create database sc…

…hema.
  • Loading branch information...
commit 1bc8dceb8fc9176c8d10b690dcf54ac92e8ab471 1 parent bb4a2bb
@lucadealfaro lucadealfaro authored
Showing with 1,105 additions and 0 deletions.
  1. +1,105 −0 test-scripts/database-schema.sql
View
1,105 test-scripts/database-schema.sql
@@ -0,0 +1,1105 @@
+-- MySQL dump 10.13 Distrib 5.1.37, for debian-linux-gnu (x86_64)
+--
+-- Host: localhost Database: enwikidb
+-- ------------------------------------------------------
+-- Server version 5.1.37-1ubuntu5.1
+
+/*!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 */;
+
+--
+-- Table structure for table `archive`
+--
+
+DROP TABLE IF EXISTS `archive`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `archive` (
+ `ar_namespace` int(11) NOT NULL DEFAULT '0',
+ `ar_title` varbinary(255) NOT NULL DEFAULT '',
+ `ar_text` mediumblob NOT NULL,
+ `ar_comment` tinyblob NOT NULL,
+ `ar_user` int(10) unsigned NOT NULL DEFAULT '0',
+ `ar_user_text` varbinary(255) 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,
+ KEY `name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`),
+ KEY `usertext_timestamp` (`ar_user_text`,`ar_timestamp`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `category`
+--
+
+DROP TABLE IF EXISTS `category`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `category` (
+ `cat_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+ `cat_title` varbinary(255) 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',
+ `cat_hidden` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ PRIMARY KEY (`cat_id`),
+ UNIQUE KEY `cat_title` (`cat_title`),
+ KEY `cat_pages` (`cat_pages`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `categorylinks`
+--
+
+DROP TABLE IF EXISTS `categorylinks`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `categorylinks` (
+ `cl_from` int(10) unsigned NOT NULL DEFAULT '0',
+ `cl_to` varbinary(255) NOT NULL DEFAULT '',
+ `cl_sortkey` varbinary(70) NOT NULL DEFAULT '',
+ `cl_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ UNIQUE KEY `cl_from` (`cl_from`,`cl_to`),
+ KEY `cl_sortkey` (`cl_to`,`cl_sortkey`,`cl_from`),
+ KEY `cl_timestamp` (`cl_to`,`cl_timestamp`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `change_tag`
+--
+
+DROP TABLE IF EXISTS `change_tag`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `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` varbinary(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=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `externallinks`
+--
+
+DROP TABLE IF EXISTS `externallinks`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `externallinks` (
+ `el_from` int(10) unsigned NOT NULL DEFAULT '0',
+ `el_to` blob NOT NULL,
+ `el_index` blob NOT NULL,
+ KEY `el_from` (`el_from`,`el_to`(40)),
+ KEY `el_to` (`el_to`(60),`el_from`),
+ KEY `el_index` (`el_index`(60))
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `filearchive`
+--
+
+DROP TABLE IF EXISTS `filearchive`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `filearchive` (
+ `fa_id` int(11) NOT NULL AUTO_INCREMENT,
+ `fa_name` varbinary(255) NOT NULL DEFAULT '',
+ `fa_archive_name` varbinary(255) 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` blob,
+ `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') DEFAULT 'unknown',
+ `fa_minor_mime` varbinary(32) DEFAULT 'unknown',
+ `fa_description` tinyblob,
+ `fa_user` int(10) unsigned DEFAULT '0',
+ `fa_user_text` varbinary(255) 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',
+ 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`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `hitcounter`
+--
+
+DROP TABLE IF EXISTS `hitcounter`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `hitcounter` (
+ `hc_id` int(10) unsigned NOT NULL
+) ENGINE=MEMORY DEFAULT CHARSET=binary MAX_ROWS=25000;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `image`
+--
+
+DROP TABLE IF EXISTS `image`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `image` (
+ `img_name` varbinary(255) 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') NOT NULL DEFAULT 'unknown',
+ `img_minor_mime` varbinary(32) NOT NULL DEFAULT 'unknown',
+ `img_description` tinyblob NOT NULL,
+ `img_user` int(10) unsigned NOT NULL DEFAULT '0',
+ `img_user_text` varbinary(255) 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`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `imagelinks`
+--
+
+DROP TABLE IF EXISTS `imagelinks`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `imagelinks` (
+ `il_from` int(10) unsigned NOT NULL DEFAULT '0',
+ `il_to` varbinary(255) NOT NULL DEFAULT '',
+ UNIQUE KEY `il_from` (`il_from`,`il_to`),
+ UNIQUE KEY `il_to` (`il_to`,`il_from`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `interwiki`
+--
+
+DROP TABLE IF EXISTS `interwiki`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `interwiki` (
+ `iw_prefix` varbinary(32) NOT NULL,
+ `iw_url` blob 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=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `ipblocks`
+--
+
+DROP TABLE IF EXISTS `ipblocks`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `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` varbinary(255) NOT NULL DEFAULT '',
+ `ipb_reason` tinyblob 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',
+ 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`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `job`
+--
+
+DROP TABLE IF EXISTS `job`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `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` varbinary(255) NOT NULL,
+ `job_params` blob NOT NULL,
+ PRIMARY KEY (`job_id`),
+ KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `langlinks`
+--
+
+DROP TABLE IF EXISTS `langlinks`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `langlinks` (
+ `ll_from` int(10) unsigned NOT NULL DEFAULT '0',
+ `ll_lang` varbinary(20) NOT NULL DEFAULT '',
+ `ll_title` varbinary(255) NOT NULL DEFAULT '',
+ UNIQUE KEY `ll_from` (`ll_from`,`ll_lang`),
+ KEY `ll_lang` (`ll_lang`,`ll_title`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `logging`
+--
+
+DROP TABLE IF EXISTS `logging`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `logging` (
+ `log_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+ `log_type` varbinary(10) NOT NULL DEFAULT '',
+ `log_action` varbinary(10) NOT NULL DEFAULT '',
+ `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` varbinary(255) NOT NULL DEFAULT '',
+ `log_comment` varbinary(255) 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`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `math`
+--
+
+DROP TABLE IF EXISTS `math`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `math` (
+ `math_inputhash` varbinary(16) NOT NULL,
+ `math_outputhash` varbinary(16) NOT NULL,
+ `math_html_conservativeness` tinyint(4) NOT NULL,
+ `math_html` blob,
+ `math_mathml` blob,
+ UNIQUE KEY `math_inputhash` (`math_inputhash`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `oaiaudit`
+--
+
+DROP TABLE IF EXISTS `oaiaudit`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `oaiaudit` (
+ `oa_client` int(11) DEFAULT NULL,
+ `oa_timestamp` varbinary(14) DEFAULT NULL,
+ `oa_dbname` varbinary(32) DEFAULT NULL,
+ `oa_response_size` int(11) DEFAULT NULL,
+ `oa_ip` varbinary(32) DEFAULT NULL,
+ `oa_agent` blob,
+ `oa_request` blob,
+ KEY `oa_client` (`oa_client`,`oa_timestamp`),
+ KEY `oa_timestamp` (`oa_timestamp`,`oa_client`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `oaiharvest`
+--
+
+DROP TABLE IF EXISTS `oaiharvest`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `oaiharvest` (
+ `oh_repository` varbinary(255) DEFAULT NULL,
+ `oh_last_timestamp` varbinary(14) DEFAULT NULL,
+ UNIQUE KEY `oh_repository` (`oh_repository`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `oaiuser`
+--
+
+DROP TABLE IF EXISTS `oaiuser`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `oaiuser` (
+ `ou_id` int(11) NOT NULL AUTO_INCREMENT,
+ `ou_name` varbinary(255) DEFAULT NULL,
+ `ou_password_hash` tinyblob,
+ PRIMARY KEY (`ou_id`),
+ UNIQUE KEY `ou_name` (`ou_name`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `objectcache`
+--
+
+DROP TABLE IF EXISTS `objectcache`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `objectcache` (
+ `keyname` varbinary(255) NOT NULL DEFAULT '',
+ `value` mediumblob,
+ `exptime` datetime DEFAULT NULL,
+ PRIMARY KEY (`keyname`),
+ KEY `exptime` (`exptime`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `oldimage`
+--
+
+DROP TABLE IF EXISTS `oldimage`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `oldimage` (
+ `oi_name` varbinary(255) NOT NULL DEFAULT '',
+ `oi_archive_name` varbinary(255) 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` tinyblob NOT NULL,
+ `oi_user` int(10) unsigned NOT NULL DEFAULT '0',
+ `oi_user_text` varbinary(255) 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') NOT NULL DEFAULT 'unknown',
+ `oi_minor_mime` varbinary(32) 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=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `page`
+--
+
+DROP TABLE IF EXISTS `page`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `page` (
+ `page_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
+ `page_namespace` int(11) NOT NULL,
+ `page_title` varbinary(255) NOT NULL,
+ `page_restrictions` tinyblob NOT NULL,
+ `page_counter` bigint(20) unsigned NOT NULL DEFAULT '0',
+ `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,
+ PRIMARY KEY (`page_id`),
+ UNIQUE KEY `name_title` (`page_namespace`,`page_title`),
+ KEY `page_random` (`page_random`),
+ KEY `page_len` (`page_len`),
+ KEY `page_title_prefix5` (`page_title`(5))
+) ENGINE=InnoDB AUTO_INCREMENT=31034762 DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `page_props`
+--
+
+DROP TABLE IF EXISTS `page_props`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `page_props` (
+ `pp_page` int(11) NOT NULL,
+ `pp_propname` varbinary(60) NOT NULL,
+ `pp_value` blob NOT NULL,
+ UNIQUE KEY `pp_page_propname` (`pp_page`,`pp_propname`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `page_restrictions`
+--
+
+DROP TABLE IF EXISTS `page_restrictions`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `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 DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `pagelinks`
+--
+
+DROP TABLE IF EXISTS `pagelinks`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `pagelinks` (
+ `pl_from` int(10) unsigned NOT NULL DEFAULT '0',
+ `pl_namespace` int(11) NOT NULL DEFAULT '0',
+ `pl_title` varbinary(255) NOT NULL DEFAULT '',
+ UNIQUE KEY `pl_from` (`pl_from`,`pl_namespace`,`pl_title`),
+ UNIQUE KEY `pl_namespace` (`pl_namespace`,`pl_title`,`pl_from`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `protected_titles`
+--
+
+DROP TABLE IF EXISTS `protected_titles`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `protected_titles` (
+ `pt_namespace` int(11) NOT NULL,
+ `pt_title` varbinary(255) NOT NULL,
+ `pt_user` int(10) unsigned NOT NULL,
+ `pt_reason` tinyblob,
+ `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=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `querycache`
+--
+
+DROP TABLE IF EXISTS `querycache`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `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` varbinary(255) NOT NULL DEFAULT '',
+ KEY `qc_type` (`qc_type`,`qc_value`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `querycache_info`
+--
+
+DROP TABLE IF EXISTS `querycache_info`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `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=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `querycachetwo`
+--
+
+DROP TABLE IF EXISTS `querycachetwo`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `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` varbinary(255) NOT NULL DEFAULT '',
+ `qcc_namespacetwo` int(11) NOT NULL DEFAULT '0',
+ `qcc_titletwo` varbinary(255) 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=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `recentchanges`
+--
+
+DROP TABLE IF EXISTS `recentchanges`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `recentchanges` (
+ `rc_id` int(11) NOT NULL AUTO_INCREMENT,
+ `rc_timestamp` varbinary(14) NOT NULL DEFAULT '',
+ `rc_cur_time` varbinary(14) NOT NULL DEFAULT '',
+ `rc_user` int(10) unsigned NOT NULL DEFAULT '0',
+ `rc_user_text` varbinary(255) NOT NULL,
+ `rc_namespace` int(11) NOT NULL DEFAULT '0',
+ `rc_title` varbinary(255) NOT NULL DEFAULT '',
+ `rc_comment` varbinary(255) 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_moved_to_ns` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `rc_moved_to_title` varbinary(255) NOT NULL DEFAULT '',
+ `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,
+ 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 DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `redirect`
+--
+
+DROP TABLE IF EXISTS `redirect`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `redirect` (
+ `rd_from` int(10) unsigned NOT NULL DEFAULT '0',
+ `rd_namespace` int(11) NOT NULL DEFAULT '0',
+ `rd_title` varbinary(255) NOT NULL DEFAULT '',
+ PRIMARY KEY (`rd_from`),
+ KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `revision`
+--
+
+DROP TABLE IF EXISTS `revision`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `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` tinyblob NOT NULL,
+ `rev_user` int(10) unsigned NOT NULL DEFAULT '0',
+ `rev_user_text` varbinary(255) 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,
+ 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 `wt_revision_id_timestamp_idx` (`rev_id`,`rev_timestamp`)
+) ENGINE=InnoDB AUTO_INCREMENT=416371926 DEFAULT CHARSET=binary MAX_ROWS=10000000 AVG_ROW_LENGTH=1024;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `searchindex`
+--
+
+DROP TABLE IF EXISTS `searchindex`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `searchindex` (
+ `si_page` int(10) unsigned NOT NULL,
+ `si_title` varbinary(255) NOT NULL DEFAULT '',
+ `si_text` mediumblob NOT NULL,
+ UNIQUE KEY `si_page` (`si_page`)
+) ENGINE=MyISAM DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `site_stats`
+--
+
+DROP TABLE IF EXISTS `site_stats`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `site_stats` (
+ `ss_row_id` int(10) unsigned NOT NULL,
+ `ss_total_views` bigint(20) unsigned DEFAULT '0',
+ `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_admins` int(11) DEFAULT '-1',
+ `ss_images` int(11) DEFAULT '0',
+ UNIQUE KEY `ss_row_id` (`ss_row_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `tag_summary`
+--
+
+DROP TABLE IF EXISTS `tag_summary`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `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=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `templatelinks`
+--
+
+DROP TABLE IF EXISTS `templatelinks`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `templatelinks` (
+ `tl_from` int(10) unsigned NOT NULL DEFAULT '0',
+ `tl_namespace` int(11) NOT NULL DEFAULT '0',
+ `tl_title` varbinary(255) NOT NULL DEFAULT '',
+ UNIQUE KEY `tl_from` (`tl_from`,`tl_namespace`,`tl_title`),
+ UNIQUE KEY `tl_namespace` (`tl_namespace`,`tl_title`,`tl_from`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `text`
+--
+
+DROP TABLE IF EXISTS `text`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `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 DEFAULT CHARSET=binary MAX_ROWS=10000000 AVG_ROW_LENGTH=10240;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `trackbacks`
+--
+
+DROP TABLE IF EXISTS `trackbacks`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `trackbacks` (
+ `tb_id` int(11) NOT NULL AUTO_INCREMENT,
+ `tb_page` int(11) DEFAULT NULL,
+ `tb_title` varbinary(255) NOT NULL,
+ `tb_url` blob NOT NULL,
+ `tb_ex` blob,
+ `tb_name` varbinary(255) DEFAULT NULL,
+ PRIMARY KEY (`tb_id`),
+ KEY `tb_page` (`tb_page`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `transcache`
+--
+
+DROP TABLE IF EXISTS `transcache`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `transcache` (
+ `tc_url` varbinary(255) NOT NULL,
+ `tc_contents` blob,
+ `tc_time` int(11) NOT NULL,
+ UNIQUE KEY `tc_url_idx` (`tc_url`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `updatelog`
+--
+
+DROP TABLE IF EXISTS `updatelog`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `updatelog` (
+ `ul_key` varbinary(255) NOT NULL,
+ PRIMARY KEY (`ul_key`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `updates`
+--
+
+DROP TABLE IF EXISTS `updates`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `updates` (
+ `up_page` int(10) unsigned NOT NULL,
+ `up_action` enum('modify','create','delete') NOT NULL DEFAULT 'modify',
+ `up_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0',
+ `up_sequence` int(10) unsigned NOT NULL AUTO_INCREMENT,
+ PRIMARY KEY (`up_page`),
+ KEY `up_timestamp` (`up_timestamp`),
+ KEY `up_sequence` (`up_sequence`,`up_timestamp`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `user`
+--
+
+DROP TABLE IF EXISTS `user`;
+/*!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` varbinary(255) NOT NULL DEFAULT '',
+ `user_real_name` varbinary(255) NOT NULL DEFAULT '',
+ `user_password` tinyblob NOT NULL,
+ `user_newpassword` tinyblob NOT NULL,
+ `user_newpass_time` binary(14) DEFAULT NULL,
+ `user_email` tinyblob NOT NULL,
+ `user_options` blob 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`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `user_groups`
+--
+
+DROP TABLE IF EXISTS `user_groups`;
+/*!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(16) NOT NULL DEFAULT '',
+ UNIQUE KEY `ug_user_group` (`ug_user`,`ug_group`),
+ KEY `ug_group` (`ug_group`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `user_newtalk`
+--
+
+DROP TABLE IF EXISTS `user_newtalk`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `user_newtalk` (
+ `user_id` int(11) NOT NULL DEFAULT '0',
+ `user_ip` varbinary(40) NOT NULL DEFAULT '',
+ `user_last_timestamp` binary(14) NOT NULL DEFAULT '\0\0\0\0\0\0\0\0\0\0\0\0\0\0',
+ KEY `user_id` (`user_id`),
+ KEY `user_ip` (`user_ip`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `valid_tag`
+--
+
+DROP TABLE IF EXISTS `valid_tag`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `valid_tag` (
+ `vt_tag` varbinary(255) NOT NULL,
+ PRIMARY KEY (`vt_tag`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `watchlist`
+--
+
+DROP TABLE IF EXISTS `watchlist`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `watchlist` (
+ `wl_user` int(10) unsigned NOT NULL,
+ `wl_namespace` int(11) NOT NULL DEFAULT '0',
+ `wl_title` varbinary(255) 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`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `wikitrust_blob`
+--
+
+DROP TABLE IF EXISTS `wikitrust_blob`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `wikitrust_blob` (
+ `blob_id` decimal(24,0) NOT NULL,
+ `blob_content` longblob NOT NULL,
+ PRIMARY KEY (`blob_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `wikitrust_global`
+--
+
+DROP TABLE IF EXISTS `wikitrust_global`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `wikitrust_global` (
+ `median` float DEFAULT NULL,
+ `rep_0` float DEFAULT NULL,
+ `rep_1` float DEFAULT NULL,
+ `rep_2` float DEFAULT NULL,
+ `rep_3` float DEFAULT NULL,
+ `rep_4` float DEFAULT NULL,
+ `rep_5` float DEFAULT NULL,
+ `rep_6` float DEFAULT NULL,
+ `rep_7` float DEFAULT NULL,
+ `rep_8` float DEFAULT NULL,
+ `rep_9` float DEFAULT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `wikitrust_page`
+--
+
+DROP TABLE IF EXISTS `wikitrust_page`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `wikitrust_page` (
+ `page_id` int(11) NOT NULL,
+ `page_title` varbinary(255) DEFAULT NULL,
+ `page_info` blob NOT NULL,
+ `last_blob` int(11) DEFAULT '2',
+ PRIMARY KEY (`page_id`),
+ UNIQUE KEY `page_title` (`page_title`),
+ KEY `wikitrust_page_title_idx` (`page_title`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `wikitrust_queue`
+--
+
+DROP TABLE IF EXISTS `wikitrust_queue`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `wikitrust_queue` (
+ `page_id` int(11) NOT NULL,
+ `page_title` varbinary(255) NOT NULL,
+ `requested_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ `processed` enum('unprocessed','processing','processed') NOT NULL DEFAULT 'unprocessed',
+ `priority` int(10) unsigned DEFAULT '0',
+ PRIMARY KEY (`page_id`),
+ KEY `wikitrust_queue_idx` (`processed`,`requested_on`),
+ KEY `wikitrust_queue_priority_idx` (`priority`,`processed`) USING BTREE
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `wikitrust_revision`
+--
+
+DROP TABLE IF EXISTS `wikitrust_revision`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `wikitrust_revision` (
+ `revision_id` int(11) NOT NULL,
+ `page_id` int(11) DEFAULT NULL,
+ `text_id` int(11) DEFAULT NULL,
+ `time_string` binary(14) DEFAULT NULL,
+ `user_id` int(11) DEFAULT NULL,
+ `username` varbinary(255) DEFAULT NULL,
+ `is_minor` tinyint(3) unsigned DEFAULT NULL,
+ `comment` tinyblob,
+ `quality_info` blob NOT NULL,
+ `blob_id` int(11) NOT NULL,
+ `reputation_delta` float DEFAULT '0',
+ `overall_trust` float DEFAULT '0',
+ `overall_quality` float DEFAULT NULL,
+ PRIMARY KEY (`revision_id`),
+ KEY `wikitrust_revision_id_timestamp_idx` (`page_id`,`time_string`,`revision_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `wikitrust_running_wikis`
+--
+
+DROP TABLE IF EXISTS `wikitrust_running_wikis`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `wikitrust_running_wikis` (
+ `wiki` varbinary(32) NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `wikitrust_text_cache`
+--
+
+DROP TABLE IF EXISTS `wikitrust_text_cache`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `wikitrust_text_cache` (
+ `revision_id` int(11) NOT NULL,
+ `page_id` int(11) DEFAULT NULL,
+ `time_string` binary(14) DEFAULT NULL,
+ `revision_text` longblob NOT NULL,
+ PRIMARY KEY (`revision_id`),
+ KEY `wikitrust_text_cache` (`revision_id`,`time_string`,`page_id`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `wikitrust_user`
+--
+
+DROP TABLE IF EXISTS `wikitrust_user`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `wikitrust_user` (
+ `user_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
+ `username` varbinary(255) DEFAULT NULL,
+ `user_rep` float DEFAULT '0',
+ PRIMARY KEY (`user_id`),
+ UNIQUE KEY `user_id` (`user_id`),
+ KEY `wikitrust_usernames_idx` (`username`)
+) ENGINE=InnoDB AUTO_INCREMENT=12512490 DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `wikitrust_vote`
+--
+
+DROP TABLE IF EXISTS `wikitrust_vote`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `wikitrust_vote` (
+ `revision_id` int(11) NOT NULL,
+ `page_id` int(11) NOT NULL,
+ `voter_name` varbinary(255) NOT NULL,
+ `voted_on` varbinary(32) NOT NULL,
+ `processed` tinyint(1) DEFAULT '0',
+ PRIMARY KEY (`revision_id`,`voter_name`),
+ KEY `wikitrust_voted_processed_idx` (`voted_on`,`processed`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Table structure for table `wikitrust_waiting_wikis`
+--
+
+DROP TABLE IF EXISTS `wikitrust_waiting_wikis`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `wikitrust_waiting_wikis` (
+ `wiki` varbinary(32) NOT NULL,
+ PRIMARY KEY (`wiki`)
+) ENGINE=InnoDB DEFAULT CHARSET=binary;
+/*!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 */;
+
+-- Dump completed on 2011-02-28 5:32:14
Please sign in to comment.
Something went wrong with that request. Please try again.