|
|
@@ -5,7 +5,7 @@ create table if not exists devcloud.func_test_case
|
|
|
project_id int not null,
|
|
|
title varchar(63) null,
|
|
|
pass tinyint(1) default 0 not null
|
|
|
-) DEFAULT CHARSET=utf8;
|
|
|
+) CHARSET=utf8;
|
|
|
|
|
|
create table if not exists devcloud.func_test_record
|
|
|
(
|
|
|
@@ -14,7 +14,7 @@ create table if not exists devcloud.func_test_record
|
|
|
timestamp timestamp default CURRENT_TIMESTAMP not null,
|
|
|
operation_type varchar(15) null,
|
|
|
pipeline_record_id int null
|
|
|
-) DEFAULT CHARSET=utf8;
|
|
|
+) CHARSET=utf8;
|
|
|
|
|
|
create table if not exists devcloud.func_test_step
|
|
|
(
|
|
|
@@ -27,7 +27,7 @@ create table if not exists devcloud.func_test_step
|
|
|
constraint test_step_test_case_id_fk
|
|
|
foreign key (test_case_id) references devcloud.func_test_case (id)
|
|
|
on delete set null
|
|
|
-) DEFAULT CHARSET=utf8;
|
|
|
+) CHARSET=utf8;
|
|
|
|
|
|
create table if not exists devcloud.project
|
|
|
(
|
|
|
@@ -55,7 +55,7 @@ create table if not exists devcloud.commit
|
|
|
email varchar(63) null,
|
|
|
constraint commit_project_id_fk
|
|
|
foreign key (project_id) references devcloud.project (id)
|
|
|
-) DEFAULT CHARSET=utf8;
|
|
|
+) CHARSET=utf8;
|
|
|
|
|
|
create table if not exists devcloud.pipeline
|
|
|
(
|
|
|
@@ -68,7 +68,7 @@ create table if not exists devcloud.pipeline
|
|
|
constraint pipeline_project_id_fk
|
|
|
foreign key (project_id) references devcloud.project (id)
|
|
|
on delete set null
|
|
|
-) DEFAULT CHARSET=utf8;
|
|
|
+) CHARSET=utf8;
|
|
|
|
|
|
create table if not exists devcloud.deployment
|
|
|
(
|
|
|
@@ -83,7 +83,7 @@ create table if not exists devcloud.deployment
|
|
|
unique (pipeline_id),
|
|
|
constraint deployment_pipeline_id_fk
|
|
|
foreign key (pipeline_id) references devcloud.pipeline (id)
|
|
|
-) DEFAULT CHARSET=utf8;
|
|
|
+) CHARSET=utf8;
|
|
|
|
|
|
create table if not exists devcloud.project_related
|
|
|
(
|
|
|
@@ -97,7 +97,7 @@ create table if not exists devcloud.project_related
|
|
|
constraint project_related_project_id_fk_2
|
|
|
foreign key (project_id_b) references devcloud.project (id)
|
|
|
on delete cascade
|
|
|
-) DEFAULT CHARSET=utf8;
|
|
|
+) CHARSET=utf8;
|
|
|
|
|
|
create table if not exists devcloud.stage
|
|
|
(
|
|
|
@@ -107,7 +107,7 @@ create table if not exists devcloud.stage
|
|
|
description text null,
|
|
|
name varchar(63) null,
|
|
|
skippable tinyint(1) default 0 not null
|
|
|
-) DEFAULT CHARSET=utf8;
|
|
|
+) CHARSET=utf8;
|
|
|
|
|
|
create table if not exists devcloud.stage_config
|
|
|
(
|
|
|
@@ -119,7 +119,7 @@ create table if not exists devcloud.stage_config
|
|
|
stage_id int null,
|
|
|
constraint stage_config_stage_id_fk
|
|
|
foreign key (stage_id) references devcloud.stage (id)
|
|
|
-) DEFAULT CHARSET=utf8;
|
|
|
+) CHARSET=utf8;
|
|
|
|
|
|
create table if not exists devcloud.test_info
|
|
|
(
|
|
|
@@ -133,7 +133,7 @@ create table if not exists devcloud.test_info
|
|
|
params json null,
|
|
|
qps int not null,
|
|
|
method varchar(255) not null
|
|
|
-) DEFAULT CHARSET=utf8;
|
|
|
+) CHARSET=utf8;
|
|
|
|
|
|
create table if not exists devcloud.test_result
|
|
|
(
|
|
|
@@ -148,7 +148,7 @@ create table if not exists devcloud.test_result
|
|
|
min_time int not null,
|
|
|
average_time double not null,
|
|
|
pipeline_record_id int null
|
|
|
-) DEFAULT CHARSET=utf8;
|
|
|
+) CHARSET=utf8;
|
|
|
|
|
|
create table if not exists devcloud.tree_node
|
|
|
(
|
|
|
@@ -167,7 +167,7 @@ create table if not exists devcloud.tree_node
|
|
|
deep int null,
|
|
|
parent_id int null,
|
|
|
processor_id int null
|
|
|
-) DEFAULT CHARSET=utf8;
|
|
|
+) CHARSET=utf8;
|
|
|
|
|
|
create table if not exists devcloud.user
|
|
|
(
|
|
|
@@ -178,7 +178,7 @@ create table if not exists devcloud.user
|
|
|
email varchar(63) null,
|
|
|
role varchar(11) null,
|
|
|
with_gitlab tinyint(1) null
|
|
|
-) DEFAULT CHARSET=utf8;
|
|
|
+) CHARSET=utf8;
|
|
|
|
|
|
create table if not exists devcloud.bug_list
|
|
|
(
|
|
|
@@ -197,7 +197,7 @@ create table if not exists devcloud.bug_list
|
|
|
foreign key (project_id) references devcloud.project (id),
|
|
|
constraint bug_list_user_id_fk
|
|
|
foreign key (processor_id) references devcloud.user (id)
|
|
|
-) DEFAULT CHARSET=utf8;
|
|
|
+) CHARSET=utf8;
|
|
|
|
|
|
create table if not exists devcloud.pipeline_record
|
|
|
(
|
|
|
@@ -212,5 +212,5 @@ create table if not exists devcloud.pipeline_record
|
|
|
foreign key (pipeline_id) references devcloud.pipeline (id),
|
|
|
constraint pipeline_record_user_id_fk
|
|
|
foreign key (user_id) references devcloud.user (id)
|
|
|
-) DEFAULT CHARSET=utf8;
|
|
|
+) CHARSET=utf8;
|
|
|
|