切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
tangxvhui
2 years ago
提交
6227bb4a9873e47f80bde442d992e22ed537f539
1 个父辈
5bb46d4b
更新sql脚本
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
85 行增加
和
5 行删除
sql/1.3.0.sql
sql/1.3.0.sql
查看文件 @
6227bb4
-- 增加指标分类字段, 默认0
ALTER
TABLE
public
.
evaluation_item_used
ADD
indicator_type
int4
NOT
NULL
DEFAULT
0
;
ALTER
TABLE
public
.
evaluation_item_used
ADD
indicator_type
int4
NOT
NULL
DEFAULT
0
;
COMMENT
ON
COLUMN
public
.
evaluation_item_used
.
indicator_type
IS
'指标类型'
;
-- 增加项目表-任务负责人ID
ALTER
TABLE
public
.
evaluation_project
ADD
principal_id
text
NULL
;
ALTER
TABLE
public
.
evaluation_project
ADD
principal_id
text
NULL
;
COMMENT
ON
COLUMN
public
.
evaluation_project
.
principal_id
IS
'任务负责人ID'
;
-- 增加评估Cache数据缓存表-任务里程碑JSON
ALTER
TABLE
public
.
staff_assess_cache
ADD
assess_task_stages
jsonb
NULL
;
COMMENT
ON
COLUMN
public
.
staff_assess_cache
.
assess_task_stages
IS
'任务里程碑内容'
;
\ No newline at end of file
ALTER
TABLE
public
.
staff_assess_cache
ADD
assess_task_stages
jsonb
NULL
;
COMMENT
ON
COLUMN
public
.
staff_assess_cache
.
assess_task_stages
IS
'任务里程碑内容'
;
-- 添加表 task
CREATE
TABLE
public
.
task
(
id
bigserial
NOT
NULL
,
created_at
timestamptz
NULL
,
updated_at
timestamptz
NULL
,
deleted_at
timestamptz
NULL
,
"name"
text
NULL
,
alias
text
NULL
,
company_id
int8
NULL
,
leader
jsonb
NULL
,
status
int8
NULL
,
"level"
int8
NULL
,
level_name
text
NULL
,
related_user
jsonb
NULL
,
run_at
int8
NULL
,
stop_at
int8
NULL
,
anomaly
int8
NULL
DEFAULT
0
,
warn_flag
int4
NULL
,
current_stage
jsonb
NULL
,
last_stage
jsonb
NULL
,
CONSTRAINT
task_pkey
PRIMARY
KEY
(
id
)
);
-- 添加表 task_ignore
CREATE
TABLE
public
.
task_ignore
(
id
bigserial
NOT
NULL
,
task_id
int8
NULL
,
user_id
int8
NULL
,
created_at
timestamptz
NULL
);
-- 添加表 task_level
CREATE
TABLE
public
.
task_level
(
id
bigserial
NOT
NULL
,
level_name
text
NULL
,
company_id
int8
NULL
,
CONSTRAINT
task_level_pkey
PRIMARY
KEY
(
id
)
);
-- 添加表 task_record
CREATE
TABLE
public
.
task_record
(
id
bigserial
NOT
NULL
,
company_id
int8
NULL
,
staff_assess_id
int8
NULL
,
task_id
int8
NULL
,
task_category
text
NULL
,
task_name
text
NULL
,
task_alias
text
NULL
,
task_leader
jsonb
NULL
,
assist_level
int8
NULL
,
assist_content
text
NULL
,
task_stages
jsonb
NULL
,
task_stage_check
jsonb
NULL
,
created_at
timestamptz
NULL
,
updated_at
timestamptz
NULL
,
deleted_at
timestamptz
NULL
,
anomaly_state
int8
NULL
DEFAULT
0
,
CONSTRAINT
task_record_pkey
PRIMARY
KEY
(
id
)
);
-- 添加表 task_stage
CREATE
TABLE
public
.
task_stage
(
id
bigserial
NOT
NULL
,
task_id
int8
NULL
,
created_at
timestamptz
NULL
,
updated_at
timestamptz
NULL
,
deleted_at
timestamptz
NULL
,
"name"
text
NULL
,
sort_by
int8
NULL
,
plan_completed_at
int8
NULL
,
real_completed_at
int8
NULL
,
CONSTRAINT
task_stage_pkey
PRIMARY
KEY
(
id
)
);
...
...
请
注册
或
登录
后发表评论