Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
禁878
DolphinScheduler
提交
af8efe51
DolphinScheduler
项目概览
禁878
/
DolphinScheduler
与 Fork 源项目一致
Fork自
apache / DolphinScheduler
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
DolphinScheduler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
af8efe51
编写于
3月 27, 2020
作者:
L
lgcareer
提交者:
GitHub
3月 27, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add worker group and remove worker group id in dll (#2313)
上级
7e9f45e5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
186 addition
and
3 deletion
+186
-3
sql/soft_version
sql/soft_version
+1
-1
sql/upgrade/1.2.2_schema/mysql/dolphinscheduler_ddl.sql
sql/upgrade/1.2.2_schema/mysql/dolphinscheduler_ddl.sql
+120
-0
sql/upgrade/1.2.2_schema/postgresql/dolphinscheduler_ddl.sql
sql/upgrade/1.2.2_schema/postgresql/dolphinscheduler_ddl.sql
+65
-2
未找到文件。
sql/soft_version
浏览文件 @
af8efe51
1.2.0
\ No newline at end of file
1.2.2
\ No newline at end of file
sql/upgrade/1.2.2_schema/mysql/dolphinscheduler_ddl.sql
浏览文件 @
af8efe51
...
...
@@ -35,3 +35,123 @@ d//
delimiter
;
CALL
uc_dolphin_T_t_ds_process_definition_A_modify_by
;
DROP
PROCEDURE
uc_dolphin_T_t_ds_process_definition_A_modify_by
;
-- ac_dolphin_T_t_ds_process_instance_A_worker_group
drop
PROCEDURE
if
EXISTS
ac_dolphin_T_t_ds_process_instance_A_worker_group
;
delimiter
d
//
CREATE
PROCEDURE
ac_dolphin_T_t_ds_process_instance_A_worker_group
()
BEGIN
IF
NOT
EXISTS
(
SELECT
1
FROM
information_schema
.
COLUMNS
WHERE
TABLE_NAME
=
't_ds_process_instance'
AND
TABLE_SCHEMA
=
(
SELECT
DATABASE
())
AND
COLUMN_NAME
=
'worker_group'
)
THEN
ALTER
TABLE
t_ds_process_instance
ADD
`worker_group`
varchar
(
255
)
DEFAULT
''
COMMENT
'worker group'
;
END
IF
;
END
;
d
//
delimiter
;
CALL
ac_dolphin_T_t_ds_process_instance_A_worker_group
;
DROP
PROCEDURE
ac_dolphin_T_t_ds_process_instance_A_worker_group
;
-- dc_dolphin_T_t_ds_process_instance_D_worker_group_id
drop
PROCEDURE
if
EXISTS
dc_dolphin_T_t_ds_process_instance_D_worker_group_id
;
delimiter
d
//
CREATE
PROCEDURE
dc_dolphin_T_t_ds_process_instance_D_worker_group_id
()
BEGIN
IF
EXISTS
(
SELECT
1
FROM
information_schema
.
COLUMNS
WHERE
TABLE_NAME
=
't_ds_process_instance'
AND
TABLE_SCHEMA
=
(
SELECT
DATABASE
())
AND
COLUMN_NAME
=
'worker_group_id'
)
THEN
ALTER
TABLE
t_ds_process_instance
DROP
COLUMN
worker_group_id
;
END
IF
;
END
;
d
//
delimiter
;
CALL
dc_dolphin_T_t_ds_process_instance_D_worker_group_id
;
DROP
PROCEDURE
dc_dolphin_T_t_ds_process_instance_D_worker_group_id
;
-- ac_dolphin_T_t_ds_task_instance_A_worker_group
drop
PROCEDURE
if
EXISTS
ac_dolphin_T_t_ds_task_instance_A_worker_group
;
delimiter
d
//
CREATE
PROCEDURE
ac_dolphin_T_t_ds_task_instance_A_worker_group
()
BEGIN
IF
NOT
EXISTS
(
SELECT
1
FROM
information_schema
.
COLUMNS
WHERE
TABLE_NAME
=
't_ds_task_instance'
AND
TABLE_SCHEMA
=
(
SELECT
DATABASE
())
AND
COLUMN_NAME
=
'worker_group'
)
THEN
ALTER
TABLE
t_ds_task_instance
ADD
`worker_group`
varchar
(
255
)
DEFAULT
''
COMMENT
'worker group'
;
END
IF
;
END
;
d
//
delimiter
;
CALL
ac_dolphin_T_t_ds_task_instance_A_worker_group
;
DROP
PROCEDURE
ac_dolphin_T_t_ds_task_instance_A_worker_group
;
-- dc_dolphin_T_t_ds_task_instance_D_worker_group_id
drop
PROCEDURE
if
EXISTS
dc_dolphin_T_t_ds_task_instance_D_worker_group_id
;
delimiter
d
//
CREATE
PROCEDURE
dc_dolphin_T_t_ds_task_instance_D_worker_group_id
()
BEGIN
IF
EXISTS
(
SELECT
1
FROM
information_schema
.
COLUMNS
WHERE
TABLE_NAME
=
't_ds_task_instance'
AND
TABLE_SCHEMA
=
(
SELECT
DATABASE
())
AND
COLUMN_NAME
=
'worker_group_id'
)
THEN
ALTER
TABLE
t_ds_task_instance
DROP
COLUMN
worker_group_id
;
END
IF
;
END
;
d
//
delimiter
;
CALL
dc_dolphin_T_t_ds_task_instance_D_worker_group_id
;
DROP
PROCEDURE
dc_dolphin_T_t_ds_task_instance_D_worker_group_id
;
-- ac_dolphin_T_t_ds_schedules_A_worker_group
drop
PROCEDURE
if
EXISTS
ac_dolphin_T_t_ds_schedules_A_worker_group
;
delimiter
d
//
CREATE
PROCEDURE
ac_dolphin_T_t_ds_schedules_A_worker_group
()
BEGIN
IF
NOT
EXISTS
(
SELECT
1
FROM
information_schema
.
COLUMNS
WHERE
TABLE_NAME
=
't_ds_schedules'
AND
TABLE_SCHEMA
=
(
SELECT
DATABASE
())
AND
COLUMN_NAME
=
'worker_group'
)
THEN
ALTER
TABLE
t_ds_schedules
ADD
`worker_group`
varchar
(
255
)
DEFAULT
''
COMMENT
'worker group'
;
END
IF
;
END
;
d
//
delimiter
;
CALL
ac_dolphin_T_t_ds_schedules_A_worker_group
;
DROP
PROCEDURE
ac_dolphin_T_t_ds_schedules_A_worker_group
;
-- dc_dolphin_T_t_ds_schedules_D_worker_group_id
drop
PROCEDURE
if
EXISTS
dc_dolphin_T_t_ds_schedules_D_worker_group_id
;
delimiter
d
//
CREATE
PROCEDURE
dc_dolphin_T_t_ds_schedules_D_worker_group_id
()
BEGIN
IF
EXISTS
(
SELECT
1
FROM
information_schema
.
COLUMNS
WHERE
TABLE_NAME
=
't_ds_schedules'
AND
TABLE_SCHEMA
=
(
SELECT
DATABASE
())
AND
COLUMN_NAME
=
'worker_group_id'
)
THEN
ALTER
TABLE
t_ds_schedules
DROP
COLUMN
worker_group_id
;
END
IF
;
END
;
d
//
delimiter
;
CALL
dc_dolphin_T_t_ds_schedules_D_worker_group_id
;
DROP
PROCEDURE
dc_dolphin_T_t_ds_schedules_D_worker_group_id
;
\ No newline at end of file
sql/upgrade/1.2.2_schema/postgresql/dolphinscheduler_ddl.sql
浏览文件 @
af8efe51
...
...
@@ -53,6 +53,27 @@ delimiter ;
select
ac_dolphin_T_t_ds_process_instance_A_worker_group
();
DROP
FUNCTION
ac_dolphin_T_t_ds_process_instance_A_worker_group
();
-- dc_dolphin_T_t_ds_process_instance_D_worker_group_id
delimiter
;
DROP
FUNCTION
IF
EXISTS
dc_dolphin_T_t_ds_process_instance_D_worker_group_id
();
delimiter
d
//
CREATE
FUNCTION
dc_dolphin_T_t_ds_process_instance_D_worker_group_id
()
RETURNS
void
AS
$$
BEGIN
IF
EXISTS
(
SELECT
1
FROM
information_schema
.
COLUMNS
WHERE
TABLE_CATALOG
=
current_database
()
AND
TABLE_SCHEMA
=
current_schema
()
AND
TABLE_NAME
=
't_ds_process_instance'
AND
COLUMN_NAME
=
'worker_group_id'
)
THEN
ALTER
TABLE
t_ds_process_instance
DROP
COLUMN
worker_group_id
;
END
IF
;
END
;
$$
LANGUAGE
plpgsql
;
d
//
delimiter
;
select
dc_dolphin_T_t_ds_process_instance_D_worker_group_id
();
DROP
FUNCTION
dc_dolphin_T_t_ds_process_instance_D_worker_group_id
();
-- ac_dolphin_T_t_ds_task_instance_A_worker_group
delimiter
;
...
...
@@ -75,9 +96,30 @@ delimiter ;
select
ac_dolphin_T_t_ds_task_instance_A_worker_group
();
DROP
FUNCTION
ac_dolphin_T_t_ds_task_instance_A_worker_group
();
-- dc_dolphin_T_t_ds_task_instance_D_worker_group_id
delimiter
;
delimiter
;
DROP
FUNCTION
IF
EXISTS
dc_dolphin_T_t_ds_task_instance_D_worker_group_id
();
delimiter
d
//
CREATE
FUNCTION
dc_dolphin_T_t_ds_task_instance_D_worker_group_id
()
RETURNS
void
AS
$$
BEGIN
IF
EXISTS
(
SELECT
1
FROM
information_schema
.
COLUMNS
WHERE
TABLE_CATALOG
=
current_database
()
AND
TABLE_SCHEMA
=
current_schema
()
AND
TABLE_NAME
=
't_ds_task_instance'
AND
COLUMN_NAME
=
'worker_group_id'
)
THEN
ALTER
TABLE
t_ds_task_instance
DROP
COLUMN
worker_group_id
;
END
IF
;
END
;
$$
LANGUAGE
plpgsql
;
d
//
delimiter
;
select
dc_dolphin_T_t_ds_task_instance_D_worker_group_id
();
DROP
FUNCTION
dc_dolphin_T_t_ds_task_instance_D_worker_group_id
();
-- ac_dolphin_T_t_ds_schedules_A_worker_group
delimiter
;
DROP
FUNCTION
IF
EXISTS
ac_dolphin_T_t_ds_schedules_A_worker_group
();
delimiter
d
//
CREATE
FUNCTION
ac_dolphin_T_t_ds_schedules_A_worker_group
()
RETURNS
void
AS
$$
BEGIN
...
...
@@ -96,3 +138,24 @@ delimiter ;
select
ac_dolphin_T_t_ds_schedules_A_worker_group
();
DROP
FUNCTION
ac_dolphin_T_t_ds_schedules_A_worker_group
();
-- dc_dolphin_T_t_ds_schedules_D_worker_group_id
delimiter
;
DROP
FUNCTION
IF
EXISTS
dc_dolphin_T_t_ds_schedules_D_worker_group_id
();
delimiter
d
//
CREATE
FUNCTION
dc_dolphin_T_t_ds_schedules_D_worker_group_id
()
RETURNS
void
AS
$$
BEGIN
IF
EXISTS
(
SELECT
1
FROM
information_schema
.
COLUMNS
WHERE
TABLE_CATALOG
=
current_database
()
AND
TABLE_SCHEMA
=
current_schema
()
AND
TABLE_NAME
=
't_ds_schedules'
AND
COLUMN_NAME
=
'worker_group_id'
)
THEN
ALTER
TABLE
t_ds_schedules
DROP
COLUMN
worker_group_id
;
END
IF
;
END
;
$$
LANGUAGE
plpgsql
;
d
//
delimiter
;
select
dc_dolphin_T_t_ds_schedules_D_worker_group_id
();
DROP
FUNCTION
dc_dolphin_T_t_ds_schedules_D_worker_group_id
();
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录