INSERT INTO `text` (`old_id`, `old_text`, `old_flags`) VALUES
(492, 0x[encoded data, 24458 characters], 0x7574662d38);
INSERT INTO `text` (`old_id`, `old_text`, `old_flags`) VALUES
(493, 0x[encoded data, 80292 characters], 0x7574662d38);
INSERT INTO `text` (`old_id`, `old_text`, `old_flags`) VALUES
(494, 0x72657475726e207b0a7d, 0x7574662d38),
(495, 0x2d2d2046756e6374696f6e20616c6c6f77696e6720666f7220636f6e73697374656e742074726561746d656e74206f6620626f6f6c65616e2d6c696b652077696b697465787420696e7075742e0a2d2d20497420776f726b732073696d696c61726c7920746f207468652074656d706c617465207b7b7965736e6f7d7d2e0a0a72657475726e2066756e6374696f6e202876616c2c2064656661756c74290a092d2d20496620796f75722077696b692075736573206e6f6e2d6173636969206368617261637465727320666f7220616e79206f662022796573222c20226e6f222c206574632e2c20796f750a092d2d2073686f756c64207265706c616365202276616c3a6c6f776572282922207769746820226d772e75737472696e672e6c6f7765722876616c292220696e207468650a092d2d20666f6c6c6f77696e67206c696e652e0a0976616c203d20747970652876616c29203d3d2027737472696e672720616e64206d772e75737472696e672e6c6f7765722876616c29206f722076616c0a0969662076616c203d3d206e696c207468656e0a090972657475726e206e696c0a09656c736569662076616c203d3d2074727565200a09096f722076616c203d3d2027796573270a09096f722076616c203d3d202779270a09096f722076616c203d3d202774727565270a09096f722076616c203d3d202774270a09096f722076616c203d3d20276f6e270a09096f722076616c203d3d2027d8a8d984d987270a09096f722076616c203d3d2027d8a2d8b1d987270a09096f722076616c203d3d2027d8afd8b1d8b3d8aa270a09096f722076616c203d3d2027d8b5d8addb8cd8ad270a09096f722076616c203d3d2027d8b1d988d8b4d986270a09096f7220746f6e756d6265722876616c29203d3d20310a097468656e0a090972657475726e20747275650a09656c736569662076616c203d3d2066616c73650a09096f722076616c203d3d20276e6f270a09096f722076616c203d3d20276e270a09096f722076616c203d3d202766616c7365270a09096f722076616c203d3d202766270a09096f722076616c203d3d20276f6666270a09096f722076616c203d3d2027d8aedb8cd8b1270a09096f722076616c203d3d2027d986d987270a09096f722076616c203d3d2027d8bad984d8b7270a09096f722076616c203d3d2027d8a7d8b4d8aad8a8d8a7d987270a09096f722076616c203d3d2027d8aed8a7d985d988d8b4270a09096f7220746f6e756d6265722876616c29203d3d20300a097468656e0a090972657475726e2066616c73650a09656c73650a090972657475726e2064656661756c740a09656e640a656e64, 0x7574662d38),
(496, 0x72657475726e207b0a096d61696e203d2066756e6374696f6e20286672616d65290a09096c6f63616c2064617461203d207b207d0a0909666f72207620696e206d772e746578742e6773706c6974286672616d652e617267735b315d2c20272c272920646f0a0909096c6f63616c2074203d206d772e746578742e73706c697428762c20273a27290a0909097461626c652e696e7365727428646174612c207b20745b315d2c20746f6e756d62657228745b325d29207d290a0909656e640a09096c6f63616c20726573756c74203d20273c756c3e270a09096c6f63616c206265666f7265203d2022d8a8db8cd8b420d8a7d8b220220a09096c6f63616c206166746572203d202220d986d988d8b4d8aad8a7d8b1220a09096c6f63616c20696e646578203d20310a0909666f7220692c207620696e20697061697273287b20313030303030302c203530303030302c203235303030302c20313030303030207d2920646f0a090909726573756c74203d20726573756c74202e2e20223c6c693e22202e2e206265666f7265202e2e0a090909096d772e676574436f6e74656e744c616e677561676528293a666f726d61744e756d287629202e2e206166746572202e2e20273a2027202e2e0a09090909273c64697620636c6173733d22686c69737420696e6c696e65223e5c6e270a0909090a0909097768696c6520646174615b696e6465785d207e3d206e696c20616e6420646174615b696e6465785d5b325d203e3d207620646f0a090909096c6f63616c206c616e67203d20646174615b696e6465785d5b315d0a090909096966206c616e67203d3d202763656227206f72206c616e67203d3d202777617227206f72206c616e67203d3d20276d696e27207468656e0a09090909092d2d20617320656e77696b692c207365656d73206f6e6c79206d6163726f6c616e6775616765730a09090909656c73656966206c616e67203d3d2027666127207468656e0a09090909092d2d20726573756c74203d20726573756c74202e2e20222a202727275b5bd988db8cdaa9db8ce2808cd9bed8afdb8cd8a7db8c20d981d8a7d8b1d8b3db8c7cd981d8a7d8b1d8b3db8c5d5d2727275c6e220a09090909656c73656966206c616e67203d3d202773696d706c6527207468656e0a0909090909726573756c74203d20726573756c74202e2e20272a203c7370616e206c616e673d22656e223e5b5b3a73696d706c653a7c27202e2e0a0909090909096d772e6c616e67756167652e66657463684c616e67756167654e616d65286c616e6729202e2e20275d5d3c2f7370616e3e27202e2e0a09090909090927203c736d616c6c3e285b5bd988db8cdaa9db8ce2808cd9bed8afdb8cd8a7db8c20d8a7d986daafd984db8cd8b3db8c20d8b3d8a7d8afd9877cd8a7d986daafd984db8cd8b3db8c20d8b3d8a7d8afd9875d5d293c2f736d616c6c3e5c6e270a656c73656966206c616e67203d3d2027736827207468656e0a0909090909726573756c74203d20726573756c74202e2e20272a203c7370616e206c616e673d22656e223e5b5b3a73683a7c737270736b6f6872766174736b695d5d3c2f7370616e3e27202e2e0a09090909090927203c736d616c6c3e285b5bd8b2d8a8d8a7d98620d8b5d8b1d8a8db8ce2808cdaa9d8b1d988d8a7d8aadb8c7cd8b5d8b1d8a8db8ce2808cdaa9d8b1d988d8a7d8aadb8c5d5d293c2f736d616c6c3e5c6e270a09090909656c73650a09090909096c6f63616c207065727369616e4e616d65203d206d772e6c616e67756167652e66657463684c616e67756167654e616d65286c616e672c2022666122290a09090909096966206c616e67203d3d2027617a6227207468656e207065727369616e4e616d65203d2027d8aad8b1daa9db8c20d8a2d8b0d8b1d8a8d8a7db8cd8acd8a7d986db8c2720656e640a09090909096966206c616e67203d3d20276e6f27207468656e207065727369616e4e616d65203d2027d986d8b1d988da98db8c2720656e640a0909090909726573756c74203d20726573756c74202e2e20272a205b5b3a27202e2e20206c616e672e2e20273a7c3c7370616e206c616e673d2227202e2e0a0909090909096c616e67202e2e2027223e27202e2e206d772e6c616e67756167652e66657463684c616e67756167654e616d65286c616e6729202e2e0a090909090909275d5d27202e2e20273c2f7370616e3e27202e2e2027203c736d616c6c3e2827202e2e20275b5bd8b2d8a8d8a7d9862027202e2e200a0909090909097065727369616e4e616d65202e2e20277c27202e2e207065727369616e4e616d6520202e2e20275d5d293c2f736d616c6c3e5c6e270a09090909656e640a09090909696e646578203d20696e646578202b20310a090909656e640a0a090909726573756c74203d20726573756c74202e2e20273c2f6469763e3c2f6c693e270a0909656e640a090972657475726e20726573756c74202e2e20273c2f756c3e270a09656e640a7d, 0x7574662d38),
(497, 0x2a206e617669676174696f6e0a2a2a206d61696e706167657c6d61696e706167652d6465736372697074696f6e0a2a2a20726563656e746368616e6765732d75726c7c726563656e746368616e6765730a2a20544f4f4c424f580a2a2a205052494e547c7072696e7461626c6576657273696f6e0a2a20d9bedb8cd988d986d8afd987d8a7db8c20d985d8b1d8aad8a8d8b70a2a2a2068747470733a2f2f61722e6661726167686169622e69727cd8b9d8b1d8a8db8c0a2a2a2068747470733a2f2f656e2e6661726167686169622e69727cd8a7d986daafd984db8cd8b3db8c0a2a2a2068747470733a2f2f66612e6661726167686169622e69727cd981d8a7d8b1d8b3db8c, 0x7574662d38),
(498, 0x0a0a0a0a0a0a5b5b66613a30393335363935393033355d5d, 0x7574662d38);

-- --------------------------------------------------------

--
-- Table structure for table `updatelog`
--

CREATE TABLE `updatelog` (
  `ul_key` varbinary(255) NOT NULL,
  `ul_value` blob DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=binary;

--
-- Dumping data for table `updatelog`
--

INSERT INTO `updatelog` (`ul_key`, `ul_value`) VALUES
(0x436f6e76657274446a76754d65746164617461, NULL),
(0x466978496e636f6e73697374656e74526564697265637473, NULL),
(0x4d6564696157696b695c457874656e73696f6e5c416275736546696c7465725c4d61696e74656e616e63655c4d6967726174654163746f72734146, NULL),
(0x4d696772617465426c6f636b73, NULL),
(0x4d69677261746545787465726e616c6c696e6b73, NULL),
(0x4d6967726174654c696e6b735461626c65706167656c696e6b73, NULL),
(0x4d6967726174654c696e6b735461626c6574656d706c6174656c696e6b73, NULL),
(0x4d6967726174655265766973696f6e4163746f7254656d70, NULL),
(0x4d6967726174655265766973696f6e436f6d6d656e7454656d70, NULL),
(0x506f70756c61746555736572497354656d70, NULL),
(0x557064617465436f6c6c6174696f6e3a3a757070657263617365, NULL),
(0x617263686976652d61725f74696d657374616d702d64726f7044656661756c74, NULL),
(0x617263686976652d61725f7469746c652d70617463682d617263686976652d61725f7469746c652d76617262696e6172792e73716c, NULL),
(0x63617465676f72792d6361745f7469746c652d70617463682d63617465676f72792d6361745f7469746c652d76617262696e6172792e73716c, NULL),
(0x63617465676f72796c696e6b732d636c5f746f2d70617463682d63617465676f72796c696e6b732d636c5f746f2d76617262696e6172792e73716c, NULL),
(0x6368616e67655f7461672d63745f72635f69642d70617463682d6368616e67655f7461672d63745f72635f69642e73716c, NULL),
(0x636f6e74656e745f6d6f64656c732d6d6f64656c5f69642d70617463682d636f6e74656e745f6d6f64656c732d6d6f64656c5f69642e73716c, NULL),
(0x63726561746520616275736566696c7465722d626c6f636b65722d75736572, NULL),
(0x66696c65617263686976652d66615f64656c657465645f74696d657374616d702d64726f7044656661756c74, NULL),
(0x66696c65617263686976652d66615f69642d70617463682d66696c65617263686976652d66615f69642e73716c, NULL),
(0x66696c65617263686976652d66615f6d616a6f725f6d696d652d70617463682d66615f6d616a6f725f6d696d652d6368656d6963616c2e73716c, NULL),
(0x66696c65617263686976652d66615f6e616d652d70617463682d66696c65617263686976652d66615f6e616d652e73716c, NULL),
(0x66696c65617263686976652d66615f73697a652d70617463682d66696c65617263686976652d66615f73697a655f746f5f626967696e742e73716c, NULL),
(0x66696c65617263686976652d66615f74696d657374616d702d64726f7044656661756c74, NULL),
(0x696d6167652d696d675f6d616a6f725f6d696d652d70617463682d696d6167652d696d675f6d616a6f725f6d696d652d64656661756c742e73716c, NULL),
(0x696d6167652d696d675f6d616a6f725f6d696d652d70617463682d696d675f6d616a6f725f6d696d652d6368656d6963616c2e73716c, NULL),
(0x696d6167652d696d675f6e616d652d70617463682d696d6167652d696d675f6e616d652d76617262696e6172792e73716c, NULL),
(0x696d6167652d696d675f73697a652d70617463682d696d6167652d696d675f73697a655f746f5f626967696e742e73716c, NULL),
(0x696d6167652d696d675f74696d657374616d702d64726f7044656661756c74, NULL),
(0x696d6167652d696d675f74696d657374616d702d70617463682d696d6167652d696d675f74696d657374616d702e73716c, NULL),
(0x696d6167656c696e6b732d696c5f746f2d70617463682d696d6167656c696e6b732d696c5f746f2d76617262696e6172792e73716c, NULL),
(0x69705f6368616e6765732d6970635f7265765f74696d657374616d702d64726f7044656661756c74, NULL),
(0x6970626c6f636b735f7265737472696374696f6e732d69725f6970625f69642d70617463682d6970626c6f636b735f7265737472696374696f6e732d69725f6970625f69642e73716c, NULL),
(0x6970626c6f636b735f7265737472696374696f6e732d69725f747970652d70617463682d6970626c6f636b735f7265737472696374696f6e732d69725f747970652e73716c, NULL),
(0x6970626c6f636b735f7265737472696374696f6e732d69725f76616c75652d70617463682d6970626c6f636b735f7265737472696374696f6e732d69725f76616c75652e73716c, NULL),
(0x69776c696e6b732d69776c5f7469746c652d70617463682d69776c696e6b732d69776c5f7469746c652d76617262696e6172792e73716c, NULL),
(0x6a6f622d6a6f625f74696d657374616d702d70617463682d6a6f625f6a6f625f74696d657374616d702e73716c, NULL),
(0x6a6f622d6a6f625f7469746c652d70617463682d6a6f622d6a6f625f7469746c652d76617262696e6172792e73716c, NULL),
(0x6a6f622d6a6f625f746f6b656e5f74696d657374616d702d70617463682d6a6f625f6a6f625f746f6b656e5f74696d657374616d702e73716c, NULL),
(0x6c616e676c696e6b732d6c6c5f7469746c652d70617463682d6c616e676c696e6b732d6c6c5f7469746c652d76617262696e6172792e73716c, NULL),
(0x6c696e7465722d6c696e7465725f706172616d732d2f686f6d652f6661726167686169622f7075626c69635f68746d6c2f656e2f772f657874656e73696f6e732f4c696e7465722f73716c2f6d7973716c2f70617463682d6c696e7465722d6669782d706172616d732d6e756c6c2d646566696e6974696f6e2e73716c, NULL),
(0x6c6f6767696e672d6c6f675f7469746c652d70617463682d6c6f6767696e672d6c6f675f7469746c652d76617262696e6172792e73716c, NULL),
(0x6f626a65637463616368652d65787074696d652d70617463682d6f626a65637463616368652d65787074696d652d6e6f746e756c6c2e73716c, NULL),
(0x6f6c64696d6167652d6f695f6d616a6f725f6d696d652d70617463682d6f695f6d616a6f725f6d696d652d6368656d6963616c2e73716c, NULL),
(0x6f6c64696d6167652d6f695f6e616d652d70617463682d6f6c64696d6167652d6f695f6e616d652d76617262696e6172792e73716c, NULL),
(0x6f6c64696d6167652d6f695f73697a652d70617463682d6f6c64696d6167652d6f695f73697a655f746f5f626967696e742e73716c, NULL),
(0x6f6c64696d6167652d6f695f74696d657374616d702d64726f7044656661756c74, NULL),
(0x706167652d706167655f6c696e6b735f757064617465642d70617463682d706167652d706167655f6c696e6b735f757064617465642d6e6f696e66696e6974652e73716c, NULL),
(0x706167652d706167655f7469746c652d70617463682d706167652d706167655f7469746c652d76617262696e6172792e73716c, NULL),
(0x706167652d706167655f746f75636865642d64726f7044656661756c74, NULL),
(0x706167655f70726f70732d70705f706167652d70617463682d706167655f70726f70732d70705f706167652e73716c, NULL),
(0x706167655f7265737472696374696f6e732d70725f706167652d70617463682d706167655f7265737472696374696f6e732d70725f706167652e73716c, NULL),
(0x70726f7465637465645f7469746c65732d70745f6578706972792d64726f7044656661756c74, NULL),
(0x70726f7465637465645f7469746c65732d70745f7469746c652d70617463682d70726f7465637465645f7469746c65732d70745f7469746c652d76617262696e6172792e73716c, NULL),
(0x717565727963616368652d71635f7469746c652d70617463682d717565727963616368652d71635f7469746c652d76617262696e6172792e73716c, NULL),
(0x7175657279636163686574776f2d7163635f7469746c652d70617463682d7175657279636163686574776f2d7163635f7469746c652d76617262696e6172792e73716c, NULL),
(0x726563656e746368616e6765732d72635f69642d70617463682d726563656e746368616e6765732d72635f69642d626967696e742e73716c, NULL),
(0x726563656e746368616e6765732d72635f69642d70617463682d726563656e746368616e6765732d72635f69642e73716c, NULL),
(0x726563656e746368616e6765732d72635f74696d657374616d702d64726f7044656661756c74, NULL),
(0x726563656e746368616e6765732d72635f74696d657374616d702d70617463682d726563656e746368616e6765732d72635f74696d657374616d702e73716c, NULL),
(0x726563656e746368616e6765732d72635f7469746c652d70617463682d726563656e746368616e6765732d72635f7469746c652d76617262696e6172792e73716c, NULL),
(0x72656469726563742d72645f7469746c652d70617463682d72656469726563742d72645f7469746c652d76617262696e6172792e73716c, NULL),
(0x7265766973696f6e2d7265765f69642d70617463682d7265766973696f6e2d636c65616e75702e73716c, NULL),
(0x7265766973696f6e2d7265765f74696d657374616d702d64726f7044656661756c74, NULL),
(0x736561726368696e6465782d706b2d7469746c656c656e677468, NULL),
(0x736561726368696e6465782d7461626c656f7074696f6e2d757466386d6234, NULL),
(0x736c6f745f726f6c65732d726f6c655f69642d70617463682d736c6f745f726f6c65732d726f6c655f69642e73716c, NULL),
(0x75706c6f616473746173682d75735f73697a652d70617463682d75706c6f616473746173682d75735f73697a655f746f5f626967696e742e73716c, NULL),
(0x75706c6f616473746173682d75735f74696d657374616d702d70617463682d75706c6f616473746173682d75735f74696d657374616d702e73716c, NULL),
(0x757365722d757365725f65646974636f756e742d70617463682d757365722d757365725f65646974636f756e742e73716c, NULL),
(0x757365722d757365725f6e616d652d70617463682d757365725f7461626c652d757064617465732e73716c, NULL),
(0x757365725f666f726d65725f67726f7570732d7566675f67726f75702d70617463682d7566675f67726f75702d6c656e6774682d696e6372656173652d3235352e73716c, NULL),
(0x757365725f67726f7570732d75675f67726f75702d70617463682d75675f67726f75702d6c656e6774682d696e6372656173652d3235352e73716c, NULL),
(0x757365725f6e657774616c6b2d757365725f6c6173745f74696d657374616d702d70617463682d757365725f6e657774616c6b2d757365725f6c6173745f74696d657374616d702d62696e6172792e73716c, NULL),
(0x757365725f70726f706572746965732d75705f70726f70657274792d70617463682d75705f70726f70657274792e73716c, NULL),
(0x77617463686c6973742d776c5f6e6f74696669636174696f6e74696d657374616d702d70617463682d77617463686c6973742d776c5f6e6f74696669636174696f6e74696d657374616d702e73716c, NULL),
(0x77617463686c6973742d776c5f7469746c652d70617463682d77617463686c6973742d776c5f7469746c652d76617262696e6172792e73716c, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `uploadstash`
--

CREATE TABLE `uploadstash` (
  `us_id` int(10) UNSIGNED NOT NULL,
  `us_user` int(10) UNSIGNED NOT NULL,
  `us_key` varbinary(255) NOT NULL,
  `us_orig_path` varbinary(255) NOT NULL,
  `us_path` varbinary(255) NOT NULL,
  `us_source_type` varbinary(50) DEFAULT NULL,
  `us_timestamp` binary(14) NOT NULL,
  `us_status` varbinary(50) NOT NULL,
  `us_chunk_inx` int(10) UNSIGNED DEFAULT NULL,
  `us_props` blob DEFAULT NULL,
  `us_size` bigint(20) UNSIGNED NOT NULL,
  `us_sha1` varbinary(31) NOT NULL,
  `us_mime` varbinary(255) DEFAULT NULL,
  `us_media_type` enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE','3D') 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
) ENGINE=InnoDB DEFAULT CHARSET=binary;

-- --------------------------------------------------------

--
-- Table structure for table `user`
--

CREATE TABLE `user` (
  `user_id` int(10) UNSIGNED NOT NULL,
  `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_touched` binary(14) NOT NULL,
  `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(10) UNSIGNED DEFAULT NULL,
  `user_password_expires` varbinary(14) DEFAULT NULL,
  `user_is_temp` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=binary;

--
-- Dumping data for table `user`
--

INSERT INTO `user` (`user_id`, `user_name`, `user_real_name`, `user_password`, `user_newpassword`, `user_newpass_time`, `user_email`, `user_touched`, `user_token`, `user_email_authenticated`, `user_email_token`, `user_email_token_expires`, `user_registration`, `user_editcount`, `user_password_expires`, `user_is_temp`) VALUES
(1, 0x41646d696e, '', 0x3a70626b6466323a7368613531323a33303030303a36343a37577a4d2f796b436934546531676b556c41546c42413d3d3a727a495a6d4e58735270517439683157446a6b6b43395168426966564c4c3037664a7750334d6c71714947374c34454234654d6a6f6f63564f316b6e4175564e4d76652b2b53582b4e4e39397737765a47326f4d4f673d3d, '', NULL, 0x657366616e646961726939353040676d61696c2e636f6d, 0x3230323531313330313030383435, 0x6134386534373835633039373935663365323834643930393838643136376564, 0x3230323531313330303833363231, 0x3866393965636366613731643864313862393063363335363261383763333136, 0x3230323531323037303833353537, 0x3230323531313330303830343337, 5, NULL, 0),
(2, 0x4d6564696157696b692064656661756c74, '', '', '', NULL, '', 0x3230323531313330303830343337, 0x2a2a2a20494e56414c4944202a2a2a0000000000000000000000000000000000, NULL, NULL, NULL, 0x3230323531313330303830343337, 0, NULL, 0),
(3, 0xe2a7bc616275736566696c7465722d626c6f636b6572e2a7bd, '', '', '', NULL, '', 0x3230323531313330303830343338, 0x2a2a2a20494e56414c4944202a2a2a0000000000000000000000000000000000, NULL, NULL, NULL, 0x3230323531313330303830343338, 0, NULL, 0);

-- --------------------------------------------------------

--
-- Table structure for table `user_autocreate_serial`
--

CREATE TABLE `user_autocreate_serial` (
  `uas_shard` int(10) UNSIGNED NOT NULL,
  `uas_year` smallint(5) UNSIGNED NOT NULL,
  `uas_value` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=binary;

-- --------------------------------------------------------

--
-- Table structure for table `user_former_groups`
--

CREATE TABLE `user_former_groups` (
  `ufg_user` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `ufg_group` varbinary(255) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=binary;

-- --------------------------------------------------------

--
-- Table structure for table `user_groups`
--

CREATE TABLE `user_groups` (
  `ug_user` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `ug_group` varbinary(255) NOT NULL DEFAULT '',
  `ug_expiry` varbinary(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=binary;

--
-- Dumping data for table `user_groups`
--

INSERT INTO `user_groups` (`ug_user`, `ug_group`, `ug_expiry`) VALUES
(1, 0x62757265617563726174, NULL),
(1, 0x696e746572666163652d61646d696e, NULL),
(1, 0x7379736f70, NULL),
(3, 0x7379736f70, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `user_newtalk`
--

CREATE TABLE `user_newtalk` (
  `user_id` int(10) UNSIGNED NOT NULL DEFAULT 0,
  `user_ip` varbinary(40) NOT NULL DEFAULT '',
  `user_last_timestamp` binary(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=binary;

-- --------------------------------------------------------

--
-- Table structure for table `user_properties`
--

CREATE TABLE `user_properties` (
  `up_user` int(10) UNSIGNED NOT NULL,
  `up_property` varbinary(255) NOT NULL,
  `up_value` blob DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=binary;

--
-- Dumping data for table `user_properties`
--

INSERT INTO `user_properties` (`up_user`, `up_property`, `up_value`) VALUES
(1, 0x616275736566696c7465722d70726f7465637465642d766172732d766965772d61677265656d656e74, ''),
(1, 0x64617465, 0x49534f2038363031),
(1, 0x6563686f2d737562736372697074696f6e732d656d61696c2d61727469636c652d6c696e6b6564, ''),
(1, 0x6761646765742d7075726765746162, 0x31),
(1, 0x74696d65636f7272656374696f6e, 0x53797374656d7c30),
(1, 0x76697375616c656469746f722d686964656265746177656c636f6d65, 0x31);

-- --------------------------------------------------------

--
-- Table structure for table `watchlist`
--

CREATE TABLE `watchlist` (
  `wl_id` int(10) UNSIGNED NOT NULL,
  `wl_user` int(10) UNSIGNED NOT NULL,
  `wl_namespace` int(11) NOT NULL DEFAULT 0,
  `wl_title` varbinary(255) NOT NULL DEFAULT '',
  `wl_notificationtimestamp` binary(14) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=binary;

--
-- Dumping data for table `watchlist`
--

INSERT INTO `watchlist` (`wl_id`, `wl_user`, `wl_namespace`, `wl_title`, `wl_notificationtimestamp`) VALUES
(1, 1, 2, 0x41646d696e, NULL),
(2, 1, 3, 0x41646d696e, NULL),
(3, 1, 0, 0x4d61696e5f50616765, NULL),
(4, 1, 1, 0x4d61696e5f50616765, NULL),
(5, 1, 8, 0x53696465626172, NULL),
(6, 1, 9, 0x53696465626172, NULL),
(7, 1, 0, 0x3039333536393539303335, NULL),
(8, 1, 1, 0x3039333536393539303335, NULL);

-- --------------------------------------------------------

--
-- Table structure for table `watchlist_expiry`
--

CREATE TABLE `watchlist_expiry` (
  `we_item` int(10) UNSIGNED NOT NULL,
  `we_expiry` binary(14) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=binary;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `abuse_filter`
--
ALTER TABLE `abuse_filter`
  ADD PRIMARY KEY (`af_id`),
  ADD KEY `af_actor` (`af_actor`),
  ADD KEY `af_group_enabled` (`af_group`,`af_enabled`,`af_id`);

--
-- Indexes for table `abuse_filter_action`
--
ALTER TABLE `abuse_filter_action`
  ADD PRIMARY KEY (`afa_filter`,`afa_consequence`),
  ADD KEY `afa_consequence` (`afa_consequence`);

--
-- Indexes for table `abuse_filter_history`
--
ALTER TABLE `abuse_filter_history`
  ADD PRIMARY KEY (`afh_id`),
  ADD KEY `afh_filter` (`afh_filter`),
  ADD KEY `afh_actor` (`afh_actor`),
  ADD KEY `afh_timestamp` (`afh_timestamp`);

--
-- Indexes for table `abuse_filter_log`
--
ALTER TABLE `abuse_filter_log`
  ADD PRIMARY KEY (`afl_id`),
  ADD KEY `afl_filter_timestamp_full` (`afl_global`,`afl_filter_id`,`afl_timestamp`),
  ADD KEY `afl_user_timestamp` (`afl_user`,`afl_user_text`,`afl_timestamp`),
  ADD KEY `afl_timestamp` (`afl_timestamp`),
  ADD KEY `afl_page_timestamp` (`afl_namespace`,`afl_title`,`afl_timestamp`),
  ADD KEY `afl_ip_timestamp` (`afl_ip`,`afl_timestamp`),
  ADD KEY `afl_rev_id` (`afl_rev_id`),
  ADD KEY `afl_wiki_timestamp` (`afl_wiki`,`afl_timestamp`);

--
-- Indexes for table `actor`
--
ALTER TABLE `actor`
  ADD PRIMARY KEY (`actor_id`),
  ADD UNIQUE KEY `actor_name` (`actor_name`),
  ADD UNIQUE KEY `actor_user` (`actor_user`);

--
-- Indexes for table `archive`
--
ALTER TABLE `archive`
  ADD PRIMARY KEY (`ar_id`),
  ADD UNIQUE KEY `ar_revid_uniq` (`ar_rev_id`),
  ADD KEY `ar_name_title_timestamp` (`ar_namespace`,`ar_title`,`ar_timestamp`),
  ADD KEY `ar_actor_timestamp` (`ar_actor`,`ar_timestamp`);

--
-- Indexes for table `block`
--
ALTER TABLE `block`
  ADD PRIMARY KEY (`bl_id`),
  ADD KEY `bl_timestamp` (`bl_timestamp`),
  ADD KEY `bl_target` (`bl_target`),
  ADD KEY `bl_expiry` (`bl_expiry`),
  ADD KEY `bl_parent_block_id` (`bl_parent_block_id`);

--
-- Indexes for table `block_target`
--
ALTER TABLE `block_target`
  ADD PRIMARY KEY (`bt_id`),
  ADD KEY `bt_address` (`bt_address`(42)),
  ADD KEY `bt_ip_user_text` (`bt_ip_hex`(35),`bt_user_text`),
  ADD KEY `bt_range` (`bt_range_start`(35),`bt_range_end`(35)),
  ADD KEY `bt_user` (`bt_user`);

--
-- Indexes for table `bot_passwords`
--
ALTER TABLE `bot_passwords`
  ADD PRIMARY KEY (`bp_user`,`bp_app_id`);

--
-- Indexes for table `category`
--
ALTER TABLE `category`
  ADD PRIMARY KEY (`cat_id`),
  ADD UNIQUE KEY `cat_title` (`cat_title`),
  ADD KEY `cat_pages` (`cat_pages`);

--
-- Indexes for table `categorylinks`
--
ALTER TABLE `categorylinks`
  ADD PRIMARY KEY (`cl_from`,`cl_to`),
  ADD KEY `cl_sortkey` (`cl_to`,`cl_type`,`cl_sortkey`,`cl_from`),
  ADD KEY `cl_timestamp` (`cl_to`,`cl_timestamp`);

--
-- Indexes for table `change_tag`
--
ALTER TABLE `change_tag`
  ADD PRIMARY KEY (`ct_id`),
  ADD UNIQUE KEY `ct_rc_tag_id` (`ct_rc_id`,`ct_tag_id`),
  ADD UNIQUE KEY `ct_log_tag_id` (`ct_log_id`,`ct_tag_id`),
  ADD UNIQUE KEY `ct_rev_tag_id` (`ct_rev_id`,`ct_tag_id`),
  ADD KEY `ct_tag_id_id` (`ct_tag_id`,`ct_rc_id`,`ct_rev_id`,`ct_log_id`);

--
-- Indexes for table `change_tag_def`
--
ALTER TABLE `change_tag_def`
  ADD PRIMARY KEY (`ctd_id`),
  ADD UNIQUE KEY `ctd_name` (`ctd_name`),
  ADD KEY `ctd_count` (`ctd_count`),
  ADD KEY `ctd_user_defined` (`ctd_user_defined`);

--
-- Indexes for table `comment`
--
ALTER TABLE `comment`
  ADD PRIMARY KEY (`comment_id`),
  ADD KEY `comment_hash` (`comment_hash`);

--
-- Indexes for table `content`
--
ALTER TABLE `content`
  ADD PRIMARY KEY (`content_id`);

--
-- Indexes for table `content_models`
--
ALTER TABLE `content_models`
  ADD PRIMARY KEY (`model_id`),
  ADD UNIQUE KEY `model_name` (`model_name`);

--
-- Indexes for table `discussiontools_items`
--
ALTER TABLE `discussiontools_items`
  ADD PRIMARY KEY (`it_id`),
  ADD UNIQUE KEY `it_itemname` (`it_itemname`);

--
-- Indexes for table `discussiontools_item_ids`
--
ALTER TABLE `discussiontools_item_ids`
  ADD PRIMARY KEY (`itid_id`),
  ADD UNIQUE KEY `itid_itemid` (`itid_itemid`);

--
-- Indexes for table `discussiontools_item_pages`
--
ALTER TABLE `discussiontools_item_pages`
  ADD PRIMARY KEY (`itp_id`),
  ADD UNIQUE KEY `itp_items_id_page_id` (`itp_items_id`,`itp_page_id`),
  ADD UNIQUE KEY `itp_items_id_newest_revision_id` (`itp_items_id`,`itp_newest_revision_id`);

--
-- Indexes for table `discussiontools_item_revisions`
--
ALTER TABLE `discussiontools_item_revisions`
  ADD PRIMARY KEY (`itr_id`),
  ADD UNIQUE KEY `itr_itemid_id_revision_id` (`itr_itemid_id`,`itr_revision_id`),
  ADD KEY `itr_revision_id` (`itr_revision_id`);

--
-- Indexes for table `discussiontools_subscription`
--
ALTER TABLE `discussiontools_subscription`
  ADD PRIMARY KEY (`sub_id`),
  ADD UNIQUE KEY `discussiontools_subscription_itemuser` (`sub_item`,`sub_user`),
  ADD KEY `discussiontools_subscription_user` (`sub_user`);

--
-- Indexes for table `echo_email_batch`
--
ALTER TABLE `echo_email_batch`
  ADD PRIMARY KEY (`eeb_id`),
  ADD UNIQUE KEY `echo_email_batch_user_event` (`eeb_user_id`,`eeb_event_id`),
  ADD KEY `echo_email_batch_user_hash_priority` (`eeb_user_id`,`eeb_event_hash`,`eeb_event_priority`);

--
-- Indexes for table `echo_event`
--
ALTER TABLE `echo_event`
  ADD PRIMARY KEY (`event_id`),
  ADD KEY `echo_event_type` (`event_type`),
  ADD KEY `echo_event_page_id` (`event_page_id`);

--
-- Indexes for table `echo_notification`
--
ALTER TABLE `echo_notification`
  ADD PRIMARY KEY (`notification_user`,`notification_event`),
  ADD KEY `echo_user_timestamp` (`notification_user`,`notification_timestamp`),
  ADD KEY `echo_notification_event` (`notification_event`),
  ADD KEY `echo_notification_user_read_timestamp` (`notification_user`,`notification_read_timestamp`);

--
-- Indexes for table `echo_push_provider`
--
ALTER TABLE `echo_push_provider`
  ADD PRIMARY KEY (`epp_id`);

--
-- Indexes for table `echo_push_subscription`
--
ALTER TABLE `echo_push_subscription`
  ADD PRIMARY KEY (`eps_id`),
  ADD UNIQUE KEY `eps_token_sha256` (`eps_token_sha256`),
  ADD KEY `eps_provider` (`eps_provider`),
  ADD KEY `eps_topic` (`eps_topic`),
  ADD KEY `eps_user` (`eps_user`),
  ADD KEY `eps_token` (`eps_token`(10));

--
-- Indexes for table `echo_push_topic`
--
ALTER TABLE `echo_push_topic`
  ADD PRIMARY KEY (`ept_id`);

--
-- Indexes for table `echo_target_page`
--
ALTER TABLE `echo_target_page`
  ADD PRIMARY KEY (`etp_id`),
  ADD KEY `echo_target_page_event` (`etp_event`),
  ADD KEY `echo_target_page_page_event` (`etp_page`,`etp_event`);

--
-- Indexes for table `externallinks`
--
ALTER TABLE `externallinks`
  ADD PRIMARY KEY (`el_id`),
  ADD KEY `el_from` (`el_from`),
  ADD KEY `el_to_domain_index_to_path` (`el_to_domain_index`,`el_to_path`(60));

--
-- Indexes for table `filearchive`
--
ALTER TABLE `filearchive`
  ADD PRIMARY KEY (`fa_id`),
  ADD KEY `fa_name` (`fa_name`,`fa_timestamp`),
  ADD KEY `fa_storage_group` (`fa_storage_group`,`fa_storage_key`),
  ADD KEY `fa_deleted_timestamp` (`fa_deleted_timestamp`),
  ADD KEY `fa_actor_timestamp` (`fa_actor`,`fa_timestamp`),
  ADD KEY `fa_sha1` (`fa_sha1`(10));

--
-- Indexes for table `image`
--
ALTER TABLE `image`
  ADD PRIMARY KEY (`img_name`),
  ADD KEY `img_actor_timestamp` (`img_actor`,`img_timestamp`),
  ADD KEY `img_size` (`img_size`),
  ADD KEY `img_timestamp` (`img_timestamp`),
  ADD KEY `img_sha1` (`img_sha1`(10)),
  ADD KEY `img_media_mime` (`img_media_type`,`img_major_mime`,`img_minor_mime`);

--
-- Indexes for table `imagelinks`
--
ALTER TABLE `imagelinks`
  ADD PRIMARY KEY (`il_from`,`il_to`),
  ADD KEY `il_to` (`il_to`,`il_from`),
  ADD KEY `il_backlinks_namespace` (`il_from_namespace`,`il_to`,`il_from`);

--
-- Indexes for table `interwiki`
--
ALTER TABLE `interwiki`
  ADD PRIMARY KEY (`iw_prefix`);

--
-- Indexes for table `ipblocks_restrictions`
--
ALTER TABLE `ipblocks_restrictions`
  ADD PRIMARY KEY (`ir_ipb_id`,`ir_type`,`ir_value`),
  ADD KEY `ir_type_value` (`ir_type`,`ir_value`);

--
-- Indexes for table `ip_changes`
--
ALTER TABLE `ip_changes`
  ADD PRIMARY KEY (`ipc_rev_id`),
  ADD KEY `ipc_rev_timestamp` (`ipc_rev_timestamp`),
  ADD KEY `ipc_hex_time` (`ipc_hex`,`ipc_rev_timestamp`);

--
-- Indexes for table `iwlinks`
--
ALTER TABLE `iwlinks`
  ADD PRIMARY KEY (`iwl_from`,`iwl_prefix`,`iwl_title`),
  ADD KEY `iwl_prefix_title_from` (`iwl_prefix`,`iwl_title`,`iwl_from`);

--
-- Indexes for table `job`
--
ALTER TABLE `job`
  ADD PRIMARY KEY (`job_id`),
  ADD KEY `job_sha1` (`job_sha1`),
  ADD KEY `job_cmd_token` (`job_cmd`,`job_token`,`job_random`),
  ADD KEY `job_cmd_token_id` (`job_cmd`,`job_token`,`job_id`),
  ADD KEY `job_cmd` (`job_cmd`,`job_namespace`,`job_title`,`job_params`(128)),
  ADD KEY `job_timestamp` (`job_timestamp`);

--
-- Indexes for table `l10n_cache`
--
ALTER TABLE `l10n_cache`
  ADD PRIMARY KEY (`lc_lang`,`lc_key`);

--
-- Indexes for table `langlinks`
--
ALTER TABLE `langlinks`
  ADD PRIMARY KEY (`ll_from`,`ll_lang`),
  ADD KEY `ll_lang` (`ll_lang`,`ll_title`);

--
-- Indexes for table `linktarget`
--
ALTER TABLE `linktarget`
  ADD PRIMARY KEY (`lt_id`),
  ADD UNIQUE KEY `lt_namespace_title` (`lt_namespace`,`lt_title`);

--
-- Indexes for table `linter`
--
ALTER TABLE `linter`
  ADD PRIMARY KEY (`linter_id`),
  ADD UNIQUE KEY `linter_cat_page_position` (`linter_cat`,`linter_page`,`linter_start`,`linter_end`),
  ADD KEY `linter_page` (`linter_page`),
  ADD KEY `linter_cat_namespace` (`linter_cat`,`linter_namespace`),
  ADD KEY `linter_cat_template` (`linter_cat`,`linter_template`),
  ADD KEY `linter_cat_tag` (`linter_cat`,`linter_tag`);

--
-- Indexes for table `logging`
--
ALTER TABLE `logging`
  ADD PRIMARY KEY (`log_id`),
  ADD KEY `log_type_time` (`log_type`,`log_timestamp`),
  ADD KEY `log_actor_time` (`log_actor`,`log_timestamp`),
  ADD KEY `log_page_time` (`log_namespace`,`log_title`,`log_timestamp`),
  ADD KEY `log_times` (`log_timestamp`),
  ADD KEY `log_actor_type_time` (`log_actor`,`log_type`,`log_timestamp`),
  ADD KEY `log_page_id_time` (`log_page`,`log_timestamp`),
  ADD KEY `log_type_action` (`log_type`,`log_action`,`log_timestamp`);

--
-- Indexes for table `loginnotify_seen_net`
--
ALTER TABLE `loginnotify_seen_net`
  ADD PRIMARY KEY (`lsn_id`),
  ADD UNIQUE KEY `loginnotify_seen_net_user` (`lsn_user`,`lsn_subnet`,`lsn_time_bucket`);

--
-- Indexes for table `log_search`
--
ALTER TABLE `log_search`
  ADD PRIMARY KEY (`ls_field`,`ls_value`,`ls_log_id`),
  ADD KEY `ls_log_id` (`ls_log_id`);

--
-- Indexes for table `module_deps`
--
ALTER TABLE `module_deps`
  ADD PRIMARY KEY (`md_module`,`md_skin`);

--
-- Indexes for table `oathauth_devices`
--
ALTER TABLE `oathauth_devices`
  ADD PRIMARY KEY (`oad_id`),
  ADD KEY `oad_user` (`oad_user`);

--
-- Indexes for table `oathauth_types`
--
ALTER TABLE `oathauth_types`
  ADD PRIMARY KEY (`oat_id`),
  ADD UNIQUE KEY `oat_name` (`oat_name`);

--
-- Indexes for table `objectcache`
--
ALTER TABLE `objectcache`
  ADD PRIMARY KEY (`keyname`),
  ADD KEY `exptime` (`exptime`);

--
-- Indexes for table `oldimage`
--
ALTER TABLE `oldimage`
  ADD KEY `oi_actor_timestamp` (`oi_actor`,`oi_timestamp`),
  ADD KEY `oi_name_timestamp` (`oi_name`,`oi_timestamp`),
  ADD KEY `oi_name_archive_name` (`oi_name`,`oi_archive_name`(14)),
  ADD KEY `oi_sha1` (`oi_sha1`(10)),
  ADD KEY `oi_timestamp` (`oi_timestamp`);

--
-- Indexes for table `page`
--
ALTER TABLE `page`
  ADD PRIMARY KEY (`page_id`),
  ADD UNIQUE KEY `page_name_title` (`page_namespace`,`page_title`),
  ADD KEY `page_random` (`page_random`),
  ADD KEY `page_len` (`page_len`),
  ADD KEY `page_redirect_namespace_len` (`page_is_redirect`,`page_namespace`,`page_len`);

--
-- Indexes for table `pagelinks`
--
ALTER TABLE `pagelinks`
  ADD PRIMARY KEY (`pl_from`,`pl_target_id`),
  ADD KEY `pl_target_id` (`pl_target_id`,`pl_from`),
  ADD KEY `pl_backlinks_namespace_target_id` (`pl_from_namespace`,`pl_target_id`,`pl_from`);

--
-- Indexes for table `page_props`
--
ALTER TABLE `page_props`
  ADD PRIMARY KEY (`pp_page`,`pp_propname`),
  ADD UNIQUE KEY `pp_propname_page` (`pp_propname`,`pp_page`),
  ADD UNIQUE KEY `pp_propname_sortkey_page` (`pp_propname`,`pp_sortkey`,`pp_page`);

--
-- Indexes for table `page_restrictions`
--
ALTER TABLE `page_restrictions`
  ADD PRIMARY KEY (`pr_id`),
  ADD UNIQUE KEY `pr_pagetype` (`pr_page`,`pr_type`),
  ADD KEY `pr_typelevel` (`pr_type`,`pr_level`),
  ADD KEY `pr_level` (`pr_level`),
  ADD KEY `pr_cascade` (`pr_cascade`);

--
-- Indexes for table `protected_titles`
--
ALTER TABLE `protected_titles`
  ADD PRIMARY KEY (`pt_namespace`,`pt_title`),
  ADD KEY `pt_timestamp` (`pt_timestamp`);

--
-- Indexes for table `querycache`
--
ALTER TABLE `querycache`
  ADD KEY `qc_type` (`qc_type`,`qc_value`);

--
-- Indexes for table `querycachetwo`
--
ALTER TABLE `querycachetwo`
  ADD KEY `qcc_type` (`qcc_type`,`qcc_value`),
  ADD KEY `qcc_title` (`qcc_type`,`qcc_namespace`,`qcc_title`),
  ADD KEY `qcc_titletwo` (`qcc_type`,`qcc_namespacetwo`,`qcc_titletwo`);

--
-- Indexes for table `querycache_info`
--
ALTER TABLE `querycache_info`
  ADD PRIMARY KEY (`qci_type`);

--
-- Indexes for table `recentchanges`
--
ALTER TABLE `recentchanges`
  ADD PRIMARY KEY (`rc_id`),
  ADD KEY `rc_timestamp` (`rc_timestamp`),
  ADD KEY `rc_namespace_title_timestamp` (`rc_namespace`,`rc_title`,`rc_timestamp`),
  ADD KEY `rc_cur_id` (`rc_cur_id`),
  ADD KEY `rc_new_name_timestamp` (`rc_new`,`rc_namespace`,`rc_timestamp`),
  ADD KEY `rc_ip` (`rc_ip`),
  ADD KEY `rc_ns_actor` (`rc_namespace`,`rc_actor`),
  ADD KEY `rc_actor` (`rc_actor`,`rc_timestamp`),
  ADD KEY `rc_name_type_patrolled_timestamp` (`rc_namespace`,`rc_type`,`rc_patrolled`,`rc_timestamp`),
  ADD KEY `rc_this_oldid` (`rc_this_oldid`);

--
-- Indexes for table `redirect`
--
ALTER TABLE `redirect`
  ADD PRIMARY KEY (`rd_from`),
  ADD KEY `rd_ns_title` (`rd_namespace`,`rd_title`,`rd_from`);

--
-- Indexes for table `revision`
--
ALTER TABLE `revision`
  ADD PRIMARY KEY (`rev_id`),
  ADD KEY `rev_timestamp` (`rev_timestamp`),
  ADD KEY `rev_page_timestamp` (`rev_page`,`rev_timestamp`),
  ADD KEY `rev_actor_timestamp` (`rev_actor`,`rev_timestamp`,`rev_id`),
  ADD KEY `rev_page_actor_timestamp` (`rev_page`,`rev_actor`,`rev_timestamp`);

--
-- Indexes for table `searchindex`
--
ALTER TABLE `searchindex`
  ADD PRIMARY KEY (`si_page`);
ALTER TABLE `searchindex` ADD FULLTEXT KEY `si_title` (`si_title`);
ALTER TABLE `searchindex` ADD FULLTEXT KEY `si_text` (`si_text`);

--
-- Indexes for table `sites`
--
ALTER TABLE `sites`
  ADD PRIMARY KEY (`site_id`),
  ADD UNIQUE KEY `site_global_key` (`site_global_key`);

--
-- Indexes for table `site_identifiers`
--
ALTER TABLE `site_identifiers`
  ADD PRIMARY KEY (`si_type`,`si_key`),
  ADD KEY `si_site` (`si_site`),
  ADD KEY `si_key` (`si_key`);

--
-- Indexes for table `site_stats`
--
ALTER TABLE `site_stats`
  ADD PRIMARY KEY (`ss_row_id`);

--
-- Indexes for table `slots`
--
ALTER TABLE `slots`
  ADD PRIMARY KEY (`slot_revision_id`,`slot_role_id`),
  ADD KEY `slot_revision_origin_role` (`slot_revision_id`,`slot_origin`,`slot_role_id`);

--
-- Indexes for table `slot_roles`
--
ALTER TABLE `slot_roles`
  ADD PRIMARY KEY (`role_id`),
  ADD UNIQUE KEY `role_name` (`role_name`);

--
-- Indexes for table `templatelinks`
--
ALTER TABLE `templatelinks`
  ADD PRIMARY KEY (`tl_from`,`tl_target_id`),
  ADD KEY `tl_target_id` (`tl_target_id`,`tl_from`),
  ADD KEY `tl_backlinks_namespace_target_id` (`tl_from_namespace`,`tl_target_id`,`tl_from`);

--
-- Indexes for table `text`
--
ALTER TABLE `text`
  ADD PRIMARY KEY (`old_id`);

--
-- Indexes for table `updatelog`
--
ALTER TABLE `updatelog`
  ADD PRIMARY KEY (`ul_key`);

--
-- Indexes for table `uploadstash`
--
ALTER TABLE `uploadstash`
  ADD PRIMARY KEY (`us_id`),
  ADD UNIQUE KEY `us_key` (`us_key`),
  ADD KEY `us_user` (`us_user`),
  ADD KEY `us_timestamp` (`us_timestamp`);

--
-- Indexes for table `user`
--
ALTER TABLE `user`
  ADD PRIMARY KEY (`user_id`),
  ADD UNIQUE KEY `user_name` (`user_name`),
  ADD KEY `user_email_token` (`user_email_token`),
  ADD KEY `user_email` (`user_email`(50));

--
-- Indexes for table `user_autocreate_serial`
--
ALTER TABLE `user_autocreate_serial`
  ADD PRIMARY KEY (`uas_shard`,`uas_year`);

--
-- Indexes for table `user_former_groups`
--
ALTER TABLE `user_former_groups`
  ADD PRIMARY KEY (`ufg_user`,`ufg_group`);

--
-- Indexes for table `user_groups`
--
ALTER TABLE `user_groups`
  ADD PRIMARY KEY (`ug_user`,`ug_group`),
  ADD KEY `ug_group` (`ug_group`),
  ADD KEY `ug_expiry` (`ug_expiry`);

--
-- Indexes for table `user_newtalk`
--
ALTER TABLE `user_newtalk`
  ADD KEY `un_user_id` (`user_id`),
  ADD KEY `un_user_ip` (`user_ip`);

--
-- Indexes for table `user_properties`
--
ALTER TABLE `user_properties`
  ADD PRIMARY KEY (`up_user`,`up_property`),
  ADD KEY `up_property` (`up_property`);

--
-- Indexes for table `watchlist`
--
ALTER TABLE `watchlist`
  ADD PRIMARY KEY (`wl_id`),
  ADD UNIQUE KEY `wl_user` (`wl_user`,`wl_namespace`,`wl_title`),
  ADD KEY `wl_namespace_title` (`wl_namespace`,`wl_title`),
  ADD KEY `wl_user_notificationtimestamp` (`wl_user`,`wl_notificationtimestamp`);

--
-- Indexes for table `watchlist_expiry`
--
ALTER TABLE `watchlist_expiry`
  ADD PRIMARY KEY (`we_item`),
  ADD KEY `we_expiry` (`we_expiry`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `abuse_filter`
--
ALTER TABLE `abuse_filter`
  MODIFY `af_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `abuse_filter_history`
--
ALTER TABLE `abuse_filter_history`
  MODIFY `afh_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `abuse_filter_log`
--
ALTER TABLE `abuse_filter_log`
  MODIFY `afl_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `actor`
--
ALTER TABLE `actor`
  MODIFY `actor_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;

--
-- AUTO_INCREMENT for table `archive`
--
ALTER TABLE `archive`
  MODIFY `ar_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `block`
--
ALTER TABLE `block`
  MODIFY `bl_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `block_target`
--
ALTER TABLE `block_target`
  MODIFY `bt_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `category`
--
ALTER TABLE `category`
  MODIFY `cat_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;

--
-- AUTO_INCREMENT for table `change_tag`
--
ALTER TABLE `change_tag`
  MODIFY `ct_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `change_tag_def`
--
ALTER TABLE `change_tag_def`
  MODIFY `ctd_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `comment`
--
ALTER TABLE `comment`
  MODIFY `comment_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=324;

--
-- AUTO_INCREMENT for table `content`
--
ALTER TABLE `content`
  MODIFY `content_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=499;

--
-- AUTO_INCREMENT for table `content_models`
--
ALTER TABLE `content_models`
  MODIFY `model_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;

--
-- AUTO_INCREMENT for table `discussiontools_items`
--
ALTER TABLE `discussiontools_items`
  MODIFY `it_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `discussiontools_item_ids`
--
ALTER TABLE `discussiontools_item_ids`
  MODIFY `itid_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `discussiontools_item_pages`
--
ALTER TABLE `discussiontools_item_pages`
  MODIFY `itp_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `discussiontools_item_revisions`
--
ALTER TABLE `discussiontools_item_revisions`
  MODIFY `itr_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `discussiontools_subscription`
--
ALTER TABLE `discussiontools_subscription`
  MODIFY `sub_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `echo_email_batch`
--
ALTER TABLE `echo_email_batch`
  MODIFY `eeb_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `echo_event`
--
ALTER TABLE `echo_event`
  MODIFY `event_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=200;

--
-- AUTO_INCREMENT for table `echo_push_provider`
--
ALTER TABLE `echo_push_provider`
  MODIFY `epp_id` tinyint(3) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `echo_push_subscription`
--
ALTER TABLE `echo_push_subscription`
  MODIFY `eps_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `echo_push_topic`
--
ALTER TABLE `echo_push_topic`
  MODIFY `ept_id` tinyint(3) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `echo_target_page`
--
ALTER TABLE `echo_target_page`
  MODIFY `etp_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=197;

--
-- AUTO_INCREMENT for table `externallinks`
--
ALTER TABLE `externallinks`
  MODIFY `el_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=328;

--
-- AUTO_INCREMENT for table `filearchive`
--
ALTER TABLE `filearchive`
  MODIFY `fa_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `job`
--
ALTER TABLE `job`
  MODIFY `job_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=951;

--
-- AUTO_INCREMENT for table `linktarget`
--
ALTER TABLE `linktarget`
  MODIFY `lt_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=601;

--
-- AUTO_INCREMENT for table `linter`
--
ALTER TABLE `linter`
  MODIFY `linter_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `logging`
--
ALTER TABLE `logging`
  MODIFY `log_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=489;

--
-- AUTO_INCREMENT for table `loginnotify_seen_net`
--
ALTER TABLE `loginnotify_seen_net`
  MODIFY `lsn_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `oathauth_devices`
--
ALTER TABLE `oathauth_devices`
  MODIFY `oad_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `oathauth_types`
--
ALTER TABLE `oathauth_types`
  MODIFY `oat_id` int(11) NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `page`
--
ALTER TABLE `page`
  MODIFY `page_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=483;

--
-- AUTO_INCREMENT for table `page_restrictions`
--
ALTER TABLE `page_restrictions`
  MODIFY `pr_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `recentchanges`
--
ALTER TABLE `recentchanges`
  MODIFY `rc_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=491;

--
-- AUTO_INCREMENT for table `revision`
--
ALTER TABLE `revision`
  MODIFY `rev_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1450;

--
-- AUTO_INCREMENT for table `sites`
--
ALTER TABLE `sites`
  MODIFY `site_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `slot_roles`
--
ALTER TABLE `slot_roles`
  MODIFY `role_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `text`
--
ALTER TABLE `text`
  MODIFY `old_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=499;

--
-- AUTO_INCREMENT for table `uploadstash`
--
ALTER TABLE `uploadstash`
  MODIFY `us_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;

--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
  MODIFY `user_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;

--
-- AUTO_INCREMENT for table `watchlist`
--
ALTER TABLE `watchlist`
  MODIFY `wl_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
COMMIT;

