|
|
|
@ -364,6 +364,9 @@ comment on column t_ds_task_instance.environment_code is 'environment code';
|
|
|
|
|
ALTER TABLE t_ds_task_instance ADD COLUMN environment_config text; |
|
|
|
|
comment on column t_ds_task_instance.environment_config is 'environment config'; |
|
|
|
|
|
|
|
|
|
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; |
|
|
|
|
|
|
|
|
|
-- |
|
|
|
|
-- Table structure for table t_ds_environment_worker_group_relation |
|
|
|
|
-- |
|
|
|
@ -379,27 +382,6 @@ CREATE TABLE t_ds_environment_worker_group_relation (
|
|
|
|
|
CONSTRAINT environment_worker_group_unique UNIQUE (environment_code,worker_group) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
-- uc_dolphin_T_t_ds_task_definition_A_drop_UN_taskName |
|
|
|
|
delimiter d// |
|
|
|
|
CREATE OR REPLACE FUNCTION uc_dolphin_T_t_ds_task_definition_A_drop_UN_taskName() RETURNS void AS $$ |
|
|
|
|
BEGIN |
|
|
|
|
IF EXISTS (SELECT 1 FROM pg_stat_all_indexes |
|
|
|
|
WHERE relname='t_ds_task_definition' |
|
|
|
|
AND indexrelname ='task_definition_unique') |
|
|
|
|
ALTER TABLE t_ds_task_definition drop CONSTRAINT task_definition_unique; |
|
|
|
|
END IF; |
|
|
|
|
END; |
|
|
|
|
$$ LANGUAGE plpgsql; |
|
|
|
|
d// |
|
|
|
|
|
|
|
|
|
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 |
|
|
|
|
-- ---------------------------- |
|
|
|
|