Browse Source

modify t_ds_task_instance app_link change sql (#2861)

pull/3/MERGE
Yelli 5 years ago committed by GitHub
parent
commit
3cbe865776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      sql/upgrade/1.3.0_schema/mysql/dolphinscheduler_ddl.sql
  2. 2
      sql/upgrade/1.3.0_schema/postgresql/dolphinscheduler_ddl.sql

4
sql/upgrade/1.3.0_schema/mysql/dolphinscheduler_ddl.sql

@ -61,12 +61,12 @@ drop PROCEDURE if EXISTS uc_dolphin_T_t_ds_task_instance_C_app_link;
delimiter d// delimiter d//
CREATE PROCEDURE uc_dolphin_T_t_ds_task_instance_C_app_link() CREATE PROCEDURE uc_dolphin_T_t_ds_task_instance_C_app_link()
BEGIN BEGIN
IF NOT EXISTS (SELECT 1 FROM information_schema.COLUMNS IF EXISTS (SELECT 1 FROM information_schema.COLUMNS
WHERE TABLE_NAME='t_ds_task_instance' WHERE TABLE_NAME='t_ds_task_instance'
AND TABLE_SCHEMA=(SELECT DATABASE()) AND TABLE_SCHEMA=(SELECT DATABASE())
AND COLUMN_NAME ='app_link') AND COLUMN_NAME ='app_link')
THEN THEN
ALTER TABLE t_ds_task_instance CHANGE COLUMN app_link app_link text COMMENT 'yarn app id'; ALTER TABLE t_ds_task_instance CHANGE `app_link` `app_link` text COMMENT 'yarn app id';
END IF; END IF;
END; END;

2
sql/upgrade/1.3.0_schema/postgresql/dolphinscheduler_ddl.sql

@ -54,7 +54,7 @@ DROP FUNCTION IF EXISTS uc_dolphin_T_t_ds_task_instance_A_executor_id();
delimiter d// delimiter d//
CREATE OR REPLACE FUNCTION uc_dolphin_T_t_ds_task_instance_C_app_link() RETURNS void AS $$ CREATE OR REPLACE FUNCTION uc_dolphin_T_t_ds_task_instance_C_app_link() RETURNS void AS $$
BEGIN BEGIN
IF NOT EXISTS (SELECT 1 FROM information_schema.COLUMNS IF EXISTS (SELECT 1 FROM information_schema.COLUMNS
WHERE TABLE_NAME='t_ds_task_instance' WHERE TABLE_NAME='t_ds_task_instance'
AND COLUMN_NAME ='app_link') AND COLUMN_NAME ='app_link')
THEN THEN

Loading…
Cancel
Save