|
@@ -4,7 +4,9 @@ create table if not exists devcloud.project
|
|
|
primary key,
|
|
primary key,
|
|
|
name varchar(128) null,
|
|
name varchar(128) null,
|
|
|
description varchar(512) null,
|
|
description varchar(512) null,
|
|
|
- git_remote_url varchar(512) not null
|
|
|
|
|
|
|
+ git_remote_url varchar(512) not null,
|
|
|
|
|
+ constraint project_name_uindex
|
|
|
|
|
+ unique (name)
|
|
|
)
|
|
)
|
|
|
charset = utf8;
|
|
charset = utf8;
|
|
|
|
|
|
|
@@ -90,7 +92,7 @@ create table if not exists devcloud.tree_node
|
|
|
title varchar(24) not null,
|
|
title varchar(24) not null,
|
|
|
description varchar(512) null,
|
|
description varchar(512) null,
|
|
|
type varchar(32) default '0' not null,
|
|
type varchar(32) default '0' not null,
|
|
|
- priority int default 0 null,
|
|
|
|
|
|
|
+ priority varchar(32) default '0' null,
|
|
|
state varchar(32) default '0' not null,
|
|
state varchar(32) default '0' not null,
|
|
|
time_to_take int default 0 not null,
|
|
time_to_take int default 0 not null,
|
|
|
start_time datetime default CURRENT_TIMESTAMP not null,
|
|
start_time datetime default CURRENT_TIMESTAMP not null,
|
|
@@ -140,7 +142,7 @@ create table if not exists devcloud.pipeline_history
|
|
|
start_time timestamp default CURRENT_TIMESTAMP not null,
|
|
start_time timestamp default CURRENT_TIMESTAMP not null,
|
|
|
user_id int null,
|
|
user_id int null,
|
|
|
result varchar(15) null,
|
|
result varchar(15) null,
|
|
|
- details text null,
|
|
|
|
|
|
|
+ details longtext null,
|
|
|
constraint pipeline_history_pipeline_id_fk
|
|
constraint pipeline_history_pipeline_id_fk
|
|
|
foreign key (pipeline_id) references devcloud.pipeline (id),
|
|
foreign key (pipeline_id) references devcloud.pipeline (id),
|
|
|
constraint pipeline_history_user_id_fk
|
|
constraint pipeline_history_user_id_fk
|