-
Notifications
You must be signed in to change notification settings - Fork 4
/
schema.sql
76 lines (64 loc) · 2.22 KB
/
schema.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
-- MySQL dump 10.13 Distrib 5.5.49, for debian-linux-gnu (x86_64)
--
-- Host: tools-db Database: s52475__wpx_p
-- ------------------------------------------------------
-- Server version 5.5.39-MariaDB-log
CREATE DATABASE `wpx`
DEFAULT CHARACTER SET utf8mb4
DEFAULT COLLATE utf8mb4_unicode_ci;
--
-- Table structure for table `project_config`
--
DROP TABLE IF EXISTS `project_config`;
CREATE TABLE `project_config` (
`config_site` VARCHAR(191) NOT NULL,
`config_json` MEDIUMTEXT NOT NULL,
PRIMARY KEY (`config_site`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `last_update`
--
DROP TABLE IF EXISTS `last_update`;
CREATE TABLE `last_update` (
`lu_site` VARCHAR(191) NOT NULL,
`lu_key` VARCHAR(191) NOT NULL,
`lu_timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`lu_site`, `lu_key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `base_page`
--
DROP TABLE IF EXISTS `base_page`;
CREATE TABLE `base_page` (
`page_id` INT(8) UNSIGNED NOT NULL,
`page_talk_id` INT(8) UNSIGNED NOT NULL,
`page_title` VARCHAR(255) NOT NULL,
`page_ns` INT(11) NOT NULL,
`page_is_redirect` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`page_id`),
UNIQUE KEY (`page_talk_id`),
KEY `title_ns` (`page_title`(191), `page_ns`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `base_project`
--
DROP TABLE IF EXISTS `base_project`;
CREATE TABLE `base_project` (
`project_id` INT(8) UNSIGNED NOT NULL,
`project_title` VARCHAR(255) NOT NULL,
PRIMARY KEY (`project_id`),
KEY (`project_title`(191))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Table structure for table `base_index`
--
DROP TABLE IF EXISTS `base_index`;
CREATE TABLE `base_index` (
`index_id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`index_page` INT(8) UNSIGNED NOT NULL,
`index_project` INT(8) UNSIGNED NOT NULL,
PRIMARY KEY (`index_id`),
KEY (`index_page`),
KEY (`index_project`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Dump completed on 2016-06-23 9:46:05