httpPropertyList) {
+ if(httpPropertyList != null && httpPropertyList.size() > 0){
+ for (HttpProperty property: httpPropertyList){
+ if(property.getHttpParametersType() != null) {
+ if (property.getHttpParametersType().equals(HttpParametersType.HEADERS)) {
+ request.addHeader(property.getProp(), property.getValue());
+ }
+ }
+ }
+ }
+ }
+
+ protected CloseableHttpClient createHttpClient() {
+ final RequestConfig requestConfig = requestConfig();
+ HttpClientBuilder httpClientBuilder;
+ httpClientBuilder = HttpClients.custom().setDefaultRequestConfig(requestConfig);
+ return httpClientBuilder.build();
+ }
+
+ private RequestConfig requestConfig() {
+ return RequestConfig.custom().setSocketTimeout(MAX_CONNECTION_MILLISECONDS).setConnectTimeout(MAX_CONNECTION_MILLISECONDS).build();
+ }
+
+ protected RequestBuilder createRequestBuilder() {
+ if (httpParameters.getHttpMethod().equals(HttpMethod.GET)) {
+ return RequestBuilder.get();
+ } else if (httpParameters.getHttpMethod().equals(HttpMethod.POST)) {
+ return RequestBuilder.post();
+ } else if (httpParameters.getHttpMethod().equals(HttpMethod.HEAD)) {
+ return RequestBuilder.head();
+ } else if (httpParameters.getHttpMethod().equals(HttpMethod.PUT)) {
+ return RequestBuilder.put();
+ } else if (httpParameters.getHttpMethod().equals(HttpMethod.DELETE)) {
+ return RequestBuilder.delete();
+ } else {
+ return null;
+ }
+ }
+
+ @Override
+ public AbstractParameters getParameters() {
+ return this.httpParameters;
+ }
+}
diff --git a/escheduler-ui/package.json b/escheduler-ui/package.json
index 014205ba16..3a8d532e01 100644
--- a/escheduler-ui/package.json
+++ b/escheduler-ui/package.json
@@ -23,7 +23,6 @@
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
- "babel-plugin-transform-remove-console": "^6.9.4",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-plugin-transform-vue-jsx": "^3.5.0",
"babel-preset-env": "^1.6.1",
diff --git a/escheduler-ui/src/js/conf/home/pages/dag/_source/config.js b/escheduler-ui/src/js/conf/home/pages/dag/_source/config.js
index 5305bf7476..54c0cdc5f5 100644
--- a/escheduler-ui/src/js/conf/home/pages/dag/_source/config.js
+++ b/escheduler-ui/src/js/conf/home/pages/dag/_source/config.js
@@ -275,6 +275,10 @@ let tasksType = {
'DEPENDENT': {
desc: 'DEPENDENT',
color: '#2FBFD8'
+ },
+ 'HTTP': {
+ desc: 'HTTP',
+ color: '#E46F13'
}
}
diff --git a/escheduler-ui/src/js/conf/home/pages/dag/_source/dag.scss b/escheduler-ui/src/js/conf/home/pages/dag/_source/dag.scss
index 37d3acaa19..fefdbe670d 100644
--- a/escheduler-ui/src/js/conf/home/pages/dag/_source/dag.scss
+++ b/escheduler-ui/src/js/conf/home/pages/dag/_source/dag.scss
@@ -82,6 +82,9 @@
.icos-DEPENDENT {
background: url("../img/toolbar_DEPENDENT.png") no-repeat 50% 50%;
}
+ .icos-HTTP {
+ background: url("../img/toobar_HTTP.png") no-repeat 50% 50%;
+ }
.toolbar {
width: 60px;
height: 100%;
diff --git a/escheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue b/escheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue
index a46b894d11..53da59643b 100644
--- a/escheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue
+++ b/escheduler-ui/src/js/conf/home/pages/dag/_source/formModel/formModel.vue
@@ -165,6 +165,12 @@
ref="DEPENDENT"
:backfill-item="backfillItem">
+
+
@@ -189,6 +195,7 @@
import JSP from './../plugIn/jsPlumbHandle'
import mProcedure from './tasks/procedure'
import mDependent from './tasks/dependent'
+ import mHttp from './tasks/http'
import mSubProcess from './tasks/sub_process'
import mSelectInput from './_source/selectInput'
import mTimeoutAlarm from './_source/timeoutAlarm'
@@ -465,6 +472,7 @@
mFlink,
mPython,
mDependent,
+ mHttp,
mSelectInput,
mTimeoutAlarm,
mPriority,
diff --git a/escheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/commcon.js b/escheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/commcon.js
index 1897940064..1781455f8d 100644
--- a/escheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/commcon.js
+++ b/escheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/commcon.js
@@ -202,10 +202,26 @@ const sqlTypeList = [
}
]
+const positionList = [
+ {
+ id: 'PARAMETER',
+ code: "Parameter"
+ },
+ {
+ id: 'BODY',
+ code: "Body"
+ },
+ {
+ id: 'HEADERS',
+ code: "Headers"
+ }
+]
+
export {
cycleList,
dateValueList,
typeList,
directList,
- sqlTypeList
+ sqlTypeList,
+ positionList
}
diff --git a/escheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/httpParams.vue b/escheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/httpParams.vue
new file mode 100644
index 0000000000..343104f286
--- /dev/null
+++ b/escheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/_source/httpParams.vue
@@ -0,0 +1,242 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+
+
+
+
+
+
diff --git a/escheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/http.vue b/escheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/http.vue
new file mode 100644
index 0000000000..3e40fce93c
--- /dev/null
+++ b/escheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/http.vue
@@ -0,0 +1,191 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+
+
+ {{$t('Http Url')}}
+
+
+
+
+
+
+ {{$t('Http Method')}}
+
+
+
+
+
+
+
+
+ {{$t('Http Parameters')}}
+
+
+
+
+
+
+ {{$t('Http Check Condition')}}
+
+
+
+
+
+
+
+
+ {{$t('Http Condition')}}
+
+
+
+
+
+
+ {{$t('Custom Parameters')}}
+
+
+
+
+
+
+
+
diff --git a/escheduler-ui/src/js/conf/home/pages/dag/img/toobar_HTTP.png b/escheduler-ui/src/js/conf/home/pages/dag/img/toobar_HTTP.png
new file mode 100644
index 0000000000..a0ca7bd141
Binary files /dev/null and b/escheduler-ui/src/js/conf/home/pages/dag/img/toobar_HTTP.png differ
diff --git a/escheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/timing.vue b/escheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/timing.vue
index 1dd6630c41..749529ce3f 100644
--- a/escheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/timing.vue
+++ b/escheduler-ui/src/js/conf/home/pages/projects/pages/definition/pages/list/_source/timing.vue
@@ -253,7 +253,12 @@
let msg = ''
this.store.dispatch(api, searchParams).then(res => {
- this.previewTimes = res
+ if (res.length) {
+ this.previewTimes = res
+ } else {
+ this.$message.warning('该时间段无数据')
+ this.$message.warning(`${i18n.$t('There is no data for this period of time')}`)
+ }
})
}
},
diff --git a/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/defineUserCount.vue b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/defineUserCount.vue
index 818765dae1..83eaec2e09 100644
--- a/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/defineUserCount.vue
+++ b/escheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/defineUserCount.vue
@@ -21,7 +21,8 @@
data () {
return {
isSpin: true,
- msg: ''
+ msg: '',
+ parameter: {projectId: 0}
}
},
props: {
@@ -54,7 +55,8 @@
},
created () {
this.isSpin = true
- this.getDefineUserCount(this.projectId).then(res => {
+ this.parameter.projectId = this.projectId;
+ this.getDefineUserCount(this.parameter).then(res => {
this.defineUserList = []
this._handleDefineUser(res)
this.isSpin = false
diff --git a/escheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/_source/list.vue b/escheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/_source/list.vue
index 9efc9f721a..09b39517f3 100644
--- a/escheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/_source/list.vue
+++ b/escheduler-ui/src/js/conf/home/pages/projects/pages/instance/pages/list/_source/list.vue
@@ -12,31 +12,34 @@
{{$t('Process Name')}}
|
-
+ |
{{$t('Run Type')}}
|
-
+ |
+ {{$t('Scheduling Time')}}
+ |
+
{{$t('Start Time')}}
|
-
+ |
{{$t('End Time')}}
|
-
+ |
{{$t('Duration')}}s
|
-
+ |
{{$t('Run Times')}}
|
{{$t('host')}}
|
-
+ |
{{$t('fault-tolerant sign')}}
|
-
+ |
{{$t('State')}}
|
-
+ |
{{$t('Operation')}}
|
@@ -46,9 +49,13 @@
{{parseInt(pageNo === 1 ? ($index + 1) : (($index + 1) + (pageSize * (pageNo - 1))))}}
- {{item.name}}
+ {{item.name}}
|
{{_rtRunningType(item.commandType)}} |
+
+
+ {{item.scheduleTime | formatDate}}
+ |
{{item.startTime | formatDate}} |
{{item.endTime | formatDate}}
diff --git a/escheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/_source/list.vue b/escheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/_source/list.vue
index c41828b39b..37e8563117 100644
--- a/escheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/_source/list.vue
+++ b/escheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/_source/list.vue
@@ -12,7 +12,7 @@
|
{{$t('Process Instance')}}
|
-
+ |
{{$t('Node Type')}}
|
diff --git a/escheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/createUdf.vue b/escheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/createUdf.vue
index 37be2ebf22..feb7a86c17 100644
--- a/escheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/createUdf.vue
+++ b/escheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/createUdf.vue
@@ -27,7 +27,7 @@
diff --git a/escheduler-ui/src/js/module/i18n/locale/en_US.js b/escheduler-ui/src/js/module/i18n/locale/en_US.js
index e90e7fcf6d..13477fec34 100644
--- a/escheduler-ui/src/js/module/i18n/locale/en_US.js
+++ b/escheduler-ui/src/js/module/i18n/locale/en_US.js
@@ -196,7 +196,9 @@ export default {
'Non Query': 'Non Query',
'prop(required)': 'prop(required)',
'value(optional)': 'value(optional)',
+ 'value(required)': 'value(required)',
'prop is empty': 'prop is empty',
+ 'value is empty': 'value is empty',
'prop is repeat': 'prop is repeat',
'Start Time': 'Start Time',
'End Time': 'End Time',
@@ -230,6 +232,7 @@ export default {
'Service-Worker': 'Service-Worker',
'Process Name': 'Process Name',
'Run Type': 'Run Type',
+ 'Scheduling Time': 'Scheduling Time',
'Run Times': 'Run Times',
'host': 'host',
'fault-tolerant sign': 'fault-tolerant sign',
@@ -475,5 +478,16 @@ export default {
'warning of timeout': 'warning of timeout',
'Next five execution times': 'Next five execution times',
'Execute time': 'Execute time',
- 'Complement range': 'Complement range'
+ 'Complement range': 'Complement range',
+ 'Http Url':'Http Url',
+ 'Http Method':'Http Method',
+ 'Http Parameters':'Http Parameters',
+ 'Http Parameters Key':'Http Parameters Key',
+ 'Http Parameters Position':'Http Parameters Position',
+ 'Http Parameters Value':'Http Parameters Value',
+ 'Http Check Condition':'Http Check Condition',
+ 'Http Condition':'Http Condition',
+ 'Please Enter Http Url': 'Please Enter Http Url(required)',
+ 'Please Enter Http Condition': 'Please Enter Http Condition',
+ 'There is no data for this period of time': 'There is no data for this period of time'
}
diff --git a/escheduler-ui/src/js/module/i18n/locale/zh_CN.js b/escheduler-ui/src/js/module/i18n/locale/zh_CN.js
index cfa0224185..bdea1b827f 100644
--- a/escheduler-ui/src/js/module/i18n/locale/zh_CN.js
+++ b/escheduler-ui/src/js/module/i18n/locale/zh_CN.js
@@ -196,7 +196,9 @@ export default {
'Non Query': '非查询',
'prop(required)': 'prop(必填)',
'value(optional)': 'value(选填)',
+ 'value(required)': 'value(必填)',
'prop is empty': 'prop不能为空',
+ 'value is empty': 'value不能为空',
'prop is repeat': 'prop中有重复',
'Start Time': '开始时间',
'End Time': '结束时间',
@@ -230,6 +232,7 @@ export default {
'Service-Worker': '服务管理-Worker',
'Process Name': '工作流名称',
'Run Type': '运行类型',
+ 'Scheduling Time': '调度时间',
'Run Times': '运行次数',
'host': 'host',
'fault-tolerant sign': '容错标识',
@@ -480,5 +483,16 @@ export default {
'slot':'slot数量',
'taskManager':'taskManage数量',
'jobManagerMemory':'jobManager内存数',
- 'taskManagerMemory':'taskManager内存数'
+ 'taskManagerMemory':'taskManager内存数',
+ 'Http Url':'请求地址',
+ 'Http Method':'请求类型',
+ 'Http Parameters':'请求参数',
+ 'Http Parameters Key':'参数名',
+ 'Http Parameters Position':'参数位置',
+ 'Http Parameters Value':'参数值',
+ 'Http Check Condition':'校验条件',
+ 'Http Condition':'校验内容',
+ 'Please Enter Http Url': '请填写请求地址(必填)',
+ 'Please Enter Http Condition': '请填写校验内容',
+ 'There is no data for this period of time': '该时间段无数据'
}
diff --git a/escheduler-ui/src/lib/@analysys/ans-ui/package.json b/escheduler-ui/src/lib/@analysys/ans-ui/package.json
index 061f54a7ad..856dc6b243 100644
--- a/escheduler-ui/src/lib/@analysys/ans-ui/package.json
+++ b/escheduler-ui/src/lib/@analysys/ans-ui/package.json
@@ -49,7 +49,6 @@
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
- "babel-plugin-transform-remove-console": "^6.9.4",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-plugin-transform-vue-jsx": "^3.7.0",
"babel-preset-env": "^1.5.2",
diff --git a/script/escheduler-daemon.sh b/script/escheduler-daemon.sh
index d54272c886..bb075f7aa8 100644
--- a/script/escheduler-daemon.sh
+++ b/script/escheduler-daemon.sh
@@ -50,7 +50,7 @@ elif [ "$command" = "worker-server" ]; then
LOG_FILE="-Dspring.config.location=conf/application_worker.properties -Ddruid.mysql.usePingMethod=false"
CLASS=cn.escheduler.server.worker.WorkerServer
elif [ "$command" = "alert-server" ]; then
- LOG_FILE="-Dlogback.configurationFile=conf/alert_logback.xml"
+ LOG_FILE="-Dspring.config.location=conf/application_alert.properties -Ddruid.mysql.usePingMethod=false"
CLASS=cn.escheduler.alert.AlertServer
elif [ "$command" = "logger-server" ]; then
CLASS=cn.escheduler.server.rpc.LoggerServer
diff --git a/sql/upgrade/1.2.0_schema/mysql/dolphinscheduler_ddl.sql b/sql/upgrade/1.2.0_schema/mysql/dolphinscheduler_ddl.sql
index e69de29bb2..5faeba33bc 100644
--- a/sql/upgrade/1.2.0_schema/mysql/dolphinscheduler_ddl.sql
+++ b/sql/upgrade/1.2.0_schema/mysql/dolphinscheduler_ddl.sql
@@ -0,0 +1,486 @@
+SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
+-- ut_dolphin_T_t_dolphinscheduler_access_token
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_access_token;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_access_token()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_access_token'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_access_token RENAME t_dolphinscheduler_access_token;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_access_token;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_access_token;
+
+-- ut_dolphin_T_t_dolphinscheduler_alert
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_alert;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_alert()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_alert'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_alert RENAME t_dolphinscheduler_alert;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_alert;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_alert;
+
+-- ut_dolphin_T_t_dolphinscheduler_alertgroup
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_alertgroup;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_alertgroup()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_alertgroup'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_alertgroup RENAME t_dolphinscheduler_alertgroup;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_alertgroup;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_alertgroup;
+
+-- ut_dolphin_T_t_dolphinscheduler_command
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_command;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_command()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_command'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_command RENAME t_dolphinscheduler_command;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_command;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_command;
+
+-- ut_dolphin_T_t_dolphinscheduler_datasource
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_datasource;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_datasource()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_datasource'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_datasource RENAME t_dolphinscheduler_datasource;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_datasource;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_datasource;
+
+-- ut_dolphin_T_t_dolphinscheduler_error_command
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_error_command;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_error_command()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_error_command'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_error_command RENAME t_dolphinscheduler_error_command;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_error_command;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_error_command;
+
+-- ut_dolphin_T_t_dolphinscheduler_master_server
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_master_server;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_master_server()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_master_server'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_master_server RENAME t_dolphinscheduler_master_server;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_master_server;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_master_server;
+
+-- ut_dolphin_T_t_dolphinscheduler_process_definition
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_process_definition;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_process_definition()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_process_definition'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_process_definition RENAME t_dolphinscheduler_process_definition;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_process_definition;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_process_definition;
+
+-- ut_dolphin_T_t_dolphinscheduler_process_instance
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_process_instance;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_process_instance()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_process_instance'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_process_instance RENAME t_dolphinscheduler_process_instance;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_process_instance;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_process_instance;
+
+-- ut_dolphin_T_t_dolphinscheduler_project
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_project;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_project()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_project'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_project RENAME t_dolphinscheduler_project;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_project;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_project;
+
+-- ut_dolphin_T_t_dolphinscheduler_queue
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_queue;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_queue()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_queue'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_queue RENAME t_dolphinscheduler_queue;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_queue;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_queue;
+
+-- ut_dolphin_T_t_dolphinscheduler_relation_datasource_user
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_relation_datasource_user;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_relation_datasource_user()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_relation_datasource_user'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_relation_datasource_user RENAME t_dolphinscheduler_relation_datasource_user;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_relation_datasource_user;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_relation_datasource_user;
+
+-- ut_dolphin_T_t_dolphinscheduler_relation_process_instance
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_relation_process_instance;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_relation_process_instance()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_relation_process_instance'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_relation_process_instance RENAME t_dolphinscheduler_relation_process_instance;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_relation_process_instance;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_relation_process_instance;
+
+-- ut_dolphin_T_t_dolphinscheduler_relation_project_user
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_relation_project_user;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_relation_project_user()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_relation_project_user'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_relation_project_user RENAME t_dolphinscheduler_relation_project_user;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_relation_project_user;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_relation_project_user;
+
+-- ut_dolphin_T_t_dolphinscheduler_relation_resources_user
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_relation_resources_user;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_relation_resources_user()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_relation_resources_user'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_relation_resources_user RENAME t_dolphinscheduler_relation_resources_user;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_relation_resources_user;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_relation_resources_user;
+
+-- ut_dolphin_T_t_dolphinscheduler_relation_udfs_user
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_relation_udfs_user;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_relation_udfs_user()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_relation_udfs_user'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_relation_udfs_user RENAME t_dolphinscheduler_relation_udfs_user;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_relation_udfs_user;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_relation_udfs_user;
+
+-- ut_dolphin_T_t_dolphinscheduler_relation_user_alertgroup
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_relation_user_alertgroup;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_relation_user_alertgroup()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_relation_user_alertgroup'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_relation_user_alertgroup RENAME t_dolphinscheduler_relation_user_alertgroup;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_relation_user_alertgroup;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_relation_user_alertgroup;
+
+-- ut_dolphin_T_t_dolphinscheduler_resources
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_resources;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_resources()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_resources'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_resources RENAME t_dolphinscheduler_resources;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_resources;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_resources;
+
+-- ut_dolphin_T_t_dolphinscheduler_schedules
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_schedules;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_schedules()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_schedules'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_schedules RENAME t_dolphinscheduler_schedules;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_schedules;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_schedules;
+
+-- ut_dolphin_T_t_dolphinscheduler_session
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_session;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_session()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_session'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_session RENAME t_dolphinscheduler_session;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_session;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_session;
+
+-- ut_dolphin_T_t_dolphinscheduler_task_instance
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_task_instance;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_task_instance()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_task_instance'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_task_instance RENAME t_dolphinscheduler_task_instance;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_task_instance;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_task_instance;
+
+-- ut_dolphin_T_t_dolphinscheduler_tenant
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_tenant;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_tenant()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_tenant'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_tenant RENAME t_dolphinscheduler_tenant;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_tenant;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_tenant;
+
+-- ut_dolphin_T_t_dolphinscheduler_udfs
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_udfs;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_udfs()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_udfs'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_udfs RENAME t_dolphinscheduler_udfs;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_udfs;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_udfs;
+
+-- ut_dolphin_T_t_dolphinscheduler_user
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_user;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_user()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_user'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_user RENAME t_dolphinscheduler_user;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_user;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_user;
+
+-- ut_dolphin_T_t_dolphinscheduler_version
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_version;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_version()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_version'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_version RENAME t_dolphinscheduler_version;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_version;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_version;
+
+-- ut_dolphin_T_t_dolphinscheduler_worker_group
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_worker_group;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_worker_group()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_worker_group'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_worker_group RENAME t_dolphinscheduler_worker_group;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_worker_group;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_worker_group;
+
+-- ut_dolphin_T_t_dolphinscheduler_worker_server
+drop PROCEDURE if EXISTS ut_dolphin_T_t_dolphinscheduler_worker_server;
+delimiter d//
+CREATE PROCEDURE ut_dolphin_T_t_dolphinscheduler_worker_server()
+ BEGIN
+ IF EXISTS (SELECT 1 FROM information_schema.TABLES
+ WHERE TABLE_NAME='t_escheduler_worker_server'
+ AND TABLE_SCHEMA=(SELECT DATABASE()))
+ THEN
+ ALTER TABLE t_escheduler_worker_server RENAME t_dolphinscheduler_worker_server;
+ END IF;
+ END;
+d//
+
+delimiter ;
+CALL ut_dolphin_T_t_dolphinscheduler_worker_server;
+DROP PROCEDURE ut_dolphin_T_t_dolphinscheduler_worker_server;
\ No newline at end of file
|