-
Notifications
You must be signed in to change notification settings - Fork 35
/
install.sql
30 lines (25 loc) · 858 Bytes
/
install.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
set names utf8;
CREATE DATABASE IF NOT EXISTS common_db_name DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE TABLE IF NOT EXISTS common_db_name.`sys` (
`id` int(11) NOT NULL ,
`list` blob NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ;
CREATE TABLE IF NOT EXISTS common_db_name.`ticket` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`acter_id` varchar(200) NOT NULL,
`reporter_id` varchar(200) NOT NULL,
`caty` int(11) NOT NULL,
`priority` int(11) NOT NULL,
`department` varchar(200) NOT NULL,
`title` varchar(200) NOT NULL,
`content` text NOT NULL,
`log` blob NOT NULL,
`t` int(11) NOT NULL,
`last_t` int(11) NOT NULL,
`status` TINYINT(4) NOT NULL,
`test_status` TINYINT(4) NOT NULL,
`test_report` blob NOT NULL,
`version` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10000 ;