-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.txt
57 lines (52 loc) · 1.52 KB
/
database.txt
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
Rockbuild uses an SQL database to store build history used for making
predictions about future build client performance.
This is how it is configured:
CREATE TABLE `builds` (
`time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIME
STAMP,
`revision` varchar(48) NOT NULL,
`id` varchar(64) NOT NULL,
`client` varchar(64) NOT NULL,
`timeused` decimal(6,2) NOT NULL,
`bogomips` int(9) NOT NULL,
`ultime` int(9) NOT NULL,
`ulsize` int(9) NOT NULL,
`errors` int(9) NOT NULL DEFAULT '1',
`warnings` int(9) NOT NULL,
`ramsize` int(9) NOT NULL,
`binsize` int(9) NOT NULL,
PRIMARY KEY (`revision`,`id`),
KEY `revision` (`revision`),
KEY `id` (`id`),
KEY `client` (`client`),
KEY `time` (`time`)
)
CREATE TABLE `clients` (
`name` varchar(32) NOT NULL,
`lastrev` varchar(48) NOT NULL,
`totscore` int(9) NOT NULL,
`builds` int(9) NOT NULL,
`blocked` int(1) NOT NULL,
PRIMARY KEY (`name`),
KEY `lastrev` (`lastrev`),
KEY `name` (`name`)
)
CREATE TABLE `log` (
`revision` varchar(48) NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAM
P,
`client` varchar(32) NOT NULL,
`type` varchar(16) NOT NULL,
`value` varchar(128) NOT NULL,
KEY `revision` (`revision`),
KEY `client` (`client`)
)
CREATE TABLE `rounds` (
`revision` varchar(48) NOT NULL,
`took` int(9) NOT NULL,
`clients` int(9) NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAM
P,
PRIMARY KEY (`revision`),
KEY `revision` (`revision`)
)