|
|
@ -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; |
|
|
|
|
|
|
|
|
|
|
|