Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
DolphinScheduler
提交
ba4cb9d2
DolphinScheduler
项目概览
apache
/
DolphinScheduler
上一次同步 1 年多
通知
707
Star
9572
Fork
3514
代码
文件
提交
分支
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,发现更多精彩内容 >>
未验证
提交
ba4cb9d2
编写于
10月 14, 2021
作者:
大数据猿人
提交者:
GitHub
10月 14, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[Fix-5876][SQL] Support more resources files in the task (#6457)
* change the type of resource_ids from varchar to text
上级
6495a204
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
15 addition
and
8 deletion
+15
-8
sql/dolphinscheduler_h2.sql
sql/dolphinscheduler_h2.sql
+2
-2
sql/dolphinscheduler_mysql.sql
sql/dolphinscheduler_mysql.sql
+2
-2
sql/dolphinscheduler_postgre.sql
sql/dolphinscheduler_postgre.sql
+2
-2
sql/upgrade/1.4.0_schema/mysql/dolphinscheduler_ddl.sql
sql/upgrade/1.4.0_schema/mysql/dolphinscheduler_ddl.sql
+5
-2
sql/upgrade/1.4.0_schema/postgresql/dolphinscheduler_ddl.sql
sql/upgrade/1.4.0_schema/postgresql/dolphinscheduler_ddl.sql
+4
-0
未找到文件。
sql/dolphinscheduler_h2.sql
浏览文件 @
ba4cb9d2
...
...
@@ -475,7 +475,7 @@ CREATE TABLE t_ds_task_definition
timeout_notify_strategy
tinyint
(
4
)
DEFAULT
NULL
,
timeout
int
(
11
)
DEFAULT
'0'
,
delay_time
int
(
11
)
DEFAULT
'0'
,
resource_ids
varchar
(
255
)
DEFAULT
NULL
,
resource_ids
text
,
create_time
datetime
NOT
NULL
,
update_time
datetime
DEFAULT
NULL
,
PRIMARY
KEY
(
id
,
code
)
...
...
@@ -506,7 +506,7 @@ CREATE TABLE t_ds_task_definition_log
timeout_notify_strategy
tinyint
(
4
)
DEFAULT
NULL
,
timeout
int
(
11
)
DEFAULT
'0'
,
delay_time
int
(
11
)
DEFAULT
'0'
,
resource_ids
varchar
(
255
)
DEFAULT
NULL
,
resource_ids
text
,
operator
int
(
11
)
DEFAULT
NULL
,
operate_time
datetime
DEFAULT
NULL
,
create_time
datetime
NOT
NULL
,
...
...
sql/dolphinscheduler_mysql.sql
浏览文件 @
ba4cb9d2
...
...
@@ -474,7 +474,7 @@ CREATE TABLE `t_ds_task_definition` (
`timeout_notify_strategy`
tinyint
(
4
)
DEFAULT
NULL
COMMENT
'timeout notification policy: 0 warning, 1 fail'
,
`timeout`
int
(
11
)
DEFAULT
'0'
COMMENT
'timeout length,unit: minute'
,
`delay_time`
int
(
11
)
DEFAULT
'0'
COMMENT
'delay execution time,unit: minute'
,
`resource_ids`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'resource id, separated by comma'
,
`resource_ids`
text
COMMENT
'resource id, separated by comma'
,
`create_time`
datetime
NOT
NULL
COMMENT
'create time'
,
`update_time`
datetime
DEFAULT
NULL
COMMENT
'update time'
,
PRIMARY
KEY
(
`id`
,
`code`
)
...
...
@@ -504,7 +504,7 @@ CREATE TABLE `t_ds_task_definition_log` (
`timeout_notify_strategy`
tinyint
(
4
)
DEFAULT
NULL
COMMENT
'timeout notification policy: 0 warning, 1 fail'
,
`timeout`
int
(
11
)
DEFAULT
'0'
COMMENT
'timeout length,unit: minute'
,
`delay_time`
int
(
11
)
DEFAULT
'0'
COMMENT
'delay execution time,unit: minute'
,
`resource_ids`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'resource id, separated by comma'
,
`resource_ids`
text
DEFAULT
NULL
COMMENT
'resource id, separated by comma'
,
`operator`
int
(
11
)
DEFAULT
NULL
COMMENT
'operator user id'
,
`operate_time`
datetime
DEFAULT
NULL
COMMENT
'operate time'
,
`create_time`
datetime
NOT
NULL
COMMENT
'create time'
,
...
...
sql/dolphinscheduler_postgre.sql
浏览文件 @
ba4cb9d2
...
...
@@ -382,7 +382,7 @@ CREATE TABLE t_ds_task_definition (
timeout_notify_strategy
int
DEFAULT
NULL
,
timeout
int
DEFAULT
'0'
,
delay_time
int
DEFAULT
'0'
,
resource_ids
varchar
(
255
)
DEFAULT
NULL
,
resource_ids
text
,
create_time
timestamp
DEFAULT
NULL
,
update_time
timestamp
DEFAULT
NULL
,
PRIMARY
KEY
(
id
)
...
...
@@ -411,7 +411,7 @@ CREATE TABLE t_ds_task_definition_log (
timeout_notify_strategy
int
DEFAULT
NULL
,
timeout
int
DEFAULT
'0'
,
delay_time
int
DEFAULT
'0'
,
resource_ids
varchar
(
255
)
DEFAULT
NULL
,
resource_ids
text
,
operator
int
DEFAULT
NULL
,
operate_time
timestamp
DEFAULT
NULL
,
create_time
timestamp
DEFAULT
NULL
,
...
...
sql/upgrade/1.4.0_schema/mysql/dolphinscheduler_ddl.sql
浏览文件 @
ba4cb9d2
...
...
@@ -398,7 +398,7 @@ CREATE TABLE `t_ds_task_definition` (
`timeout_notify_strategy`
tinyint
(
4
)
DEFAULT
NULL
COMMENT
'timeout notification policy: 0 warning, 1 fail'
,
`timeout`
int
(
11
)
DEFAULT
'0'
COMMENT
'timeout length,unit: minute'
,
`delay_time`
int
(
11
)
DEFAULT
'0'
COMMENT
'delay execution time,unit: minute'
,
`resource_ids`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'resource id, separated by comma'
,
`resource_ids`
text
COMMENT
'resource id, separated by comma'
,
`create_time`
datetime
NOT
NULL
COMMENT
'create time'
,
`update_time`
datetime
DEFAULT
NULL
COMMENT
'update time'
,
PRIMARY
KEY
(
`id`
,
`code`
)
...
...
@@ -428,7 +428,7 @@ CREATE TABLE `t_ds_task_definition_log` (
`timeout_notify_strategy`
tinyint
(
4
)
DEFAULT
NULL
COMMENT
'timeout notification policy: 0 warning, 1 fail'
,
`timeout`
int
(
11
)
DEFAULT
'0'
COMMENT
'timeout length,unit: minute'
,
`delay_time`
int
(
11
)
DEFAULT
'0'
COMMENT
'delay execution time,unit: minute'
,
`resource_ids`
varchar
(
255
)
DEFAULT
NULL
COMMENT
'resource id, separated by comma'
,
`resource_ids`
text
COMMENT
'resource id, separated by comma'
,
`operator`
int
(
11
)
DEFAULT
NULL
COMMENT
'operator user id'
,
`operate_time`
datetime
DEFAULT
NULL
COMMENT
'operate time'
,
`create_time`
datetime
NOT
NULL
COMMENT
'create time'
,
...
...
@@ -443,6 +443,9 @@ ALTER TABLE t_ds_process_instance ADD COLUMN `environment_code` bigint(20) defau
ALTER
TABLE
t_ds_task_instance
ADD
COLUMN
`environment_code`
bigint
(
20
)
default
'-1'
COMMENT
'environment code'
AFTER
`worker_group`
;
ALTER
TABLE
t_ds_task_instance
ADD
COLUMN
`environment_config`
text
COMMENT
'environment config'
AFTER
`environment_code`
;
ALTER
TABLE
t_ds_task_definition
MODIFY
COLUMN
`resource_ids`
text
;
ALTER
TABLE
t_ds_task_definition_log
MODIFY
COLUMN
`resource_ids`
text
;
-- ----------------------------
-- Table structure for t_ds_environment_worker_group_relation
-- ----------------------------
...
...
sql/upgrade/1.4.0_schema/postgresql/dolphinscheduler_ddl.sql
浏览文件 @
ba4cb9d2
...
...
@@ -396,6 +396,10 @@ delimiter ;
SELECT
uc_dolphin_T_t_ds_task_definition_A_drop_UN_taskName
();
DROP
FUNCTION
IF
EXISTS
uc_dolphin_T_t_ds_task_definition_A_drop_UN_taskName
();
ALTER
TABLE
t_ds_task_definition
ALTER
COLUMN
resource_ids
TYPE
text
;
ALTER
TABLE
t_ds_task_definition_log
ALTER
COLUMN
resource_ids
TYPE
text
;
-- ----------------------------
-- These columns will not be used in the new version,if you determine that the historical data is useless, you can delete it using the sql below
-- ----------------------------
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录