-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbunzilla.sql
130 lines (119 loc) · 4.96 KB
/
bunzilla.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
-- database dump for: bunzilla 0.2b
-- tracked by Bunzilla v0.2b
-- 2015-10-15 09:36:44pm
CREATE DATABASE IF NOT EXISTS `bunzilla`;
USE `bunzilla`;
CREATE TABLE IF NOT EXISTS `categories` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`caption` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` tinyint(4) NOT NULL,
`reproduce` tinyint(4) NOT NULL,
`expected` tinyint(4) NOT NULL,
`actual` tinyint(4) NOT NULL,
`color` char(6) COLLATE utf8mb4_unicode_ci NOT NULL,
`icon` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
FULLTEXT KEY `title` (`title`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `change_log` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`version` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`time` int(10) unsigned NOT NULL,
`message` text COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
KEY `version` (`version`),
FULLTEXT KEY `message` (`message`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `comments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`report` int(10) unsigned NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`epenis` tinyint(1) NOT NULL,
`time` int(10) unsigned NOT NULL,
`ip` varbinary(16) NOT NULL,
`message` text COLLATE utf8mb4_unicode_ci NOT NULL,
`edit_time` int(10) unsigned DEFAULT NULL,
`reply_to` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `report` (`report`),
FULLTEXT KEY `message` (`message`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `priorities` (
`id` tinyint(3) unsigned NOT NULL,
`title` tinytext COLLATE utf8mb4_unicode_ci NOT NULL,
`color` char(6) COLLATE utf8mb4_unicode_ci NOT NULL,
`icon` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL,
`default` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
FULLTEXT KEY `title` (`title`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `reports` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`ip` varbinary(16) NOT NULL,
`time` int(10) unsigned NOT NULL,
`category` int(10) unsigned NOT NULL,
`subject` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`reproduce` text COLLATE utf8mb4_unicode_ci,
`expected` text COLLATE utf8mb4_unicode_ci,
`actual` text COLLATE utf8mb4_unicode_ci,
`closed` tinyint(1) NOT NULL,
`epenis` tinyint(1) NOT NULL,
`edit_time` int(10) unsigned DEFAULT NULL,
`status` int(10) unsigned DEFAULT NULL,
`priority` tinyint(3) unsigned NOT NULL,
`updated_at` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `category` (`category`),
KEY `status` (`status`),
FULLTEXT KEY `subject` (`subject`),
FULLTEXT KEY `description` (`description`),
FULLTEXT KEY `reproduce` (`reproduce`),
FULLTEXT KEY `expected` (`expected`),
FULLTEXT KEY `actual` (`actual`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `status_log` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`report` int(10) unsigned DEFAULT NULL,
`category` int(10) unsigned DEFAULT NULL,
`priority` tinyint(3) unsigned DEFAULT NULL,
`status` int(10) unsigned DEFAULT NULL,
`tag` int(10) unsigned DEFAULT NULL,
`who` tinytext COLLATE utf8mb4_unicode_ci NOT NULL,
`time` int(10) unsigned NOT NULL,
`message` text COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
KEY `report` (`report`),
KEY `category` (`category`),
KEY `priority` (`priority`),
KEY `status` (`status`),
KEY `tag` (`tag`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `statuses` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`color` char(6) COLLATE utf8mb4_unicode_ci NOT NULL,
`icon` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL,
`default` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
FULLTEXT KEY `title` (`title`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `tag_joins` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`report` int(10) unsigned NOT NULL DEFAULT '0',
`tag` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `report` (`report`),
KEY `tag` (`tag`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
CREATE TABLE IF NOT EXISTS `tags` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(35) COLLATE utf8mb4_unicode_ci NOT NULL,
`color` char(6) COLLATE utf8mb4_unicode_ci NOT NULL,
`icon` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
FULLTEXT KEY `title` (`title`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- executed in 0.045275926589966s