1 |
dpavlin |
1.1 |
drop table gantt; |
2 |
|
|
|
3 |
|
|
create table gantt ( |
4 |
|
|
start datetime default now(), |
5 |
|
|
finish datetime default now(), |
6 |
dpavlin |
1.2 |
sessionid varchar(20) not null, |
7 |
dpavlin |
1.1 |
type varchar(80) not null, |
8 |
|
|
status varchar(80) not null, |
9 |
|
|
user_group_host varchar(80) not null, |
10 |
dpavlin |
1.2 |
specification varchar(80) not null, |
11 |
dpavlin |
1.3 |
device text, |
12 |
|
|
host text, |
13 |
dpavlin |
1.4 |
primary key (sessionid,type,status,user_group_host) |
14 |
dpavlin |
1.1 |
); |
15 |
|
|
|
16 |
|
|
create index ind_sessionid on gantt ( sessionid ); |
17 |
|
|
create index ind_type on gantt ( type ); |
18 |
|
|
create index ind_status on gantt ( status ); |
19 |
|
|
create index ind_user on gantt ( user_group_host ); |
20 |
|
|
create index ind_specification on gantt ( specification ); |
21 |
dpavlin |
1.3 |
create index ind_device on gantt ( device ); |
22 |
|
|
create index ind_host on gantt ( host ); |
23 |
dpavlin |
1.1 |
|