|
|
@ -52,7 +52,8 @@ BEGIN |
|
|
|
WHERE TABLE_NAME='t_ds_process_definition' |
|
|
|
WHERE TABLE_NAME='t_ds_process_definition' |
|
|
|
AND COLUMN_NAME ='warning_group_id') |
|
|
|
AND COLUMN_NAME ='warning_group_id') |
|
|
|
THEN |
|
|
|
THEN |
|
|
|
ALTER TABLE t_ds_process_definition ADD COLUMN `warning_group_id` int4 DEFAULT NULL COMMENT 'alert group id' AFTER `connects`; |
|
|
|
ALTER TABLE t_ds_process_definition ADD COLUMN warning_group_id int4 DEFAULT NULL; |
|
|
|
|
|
|
|
COMMENT ON COLUMN t_ds_process_definition.warning_group_id IS 'alert group id'; |
|
|
|
END IF; |
|
|
|
END IF; |
|
|
|
END; |
|
|
|
END; |
|
|
|
$$ LANGUAGE plpgsql; |
|
|
|
$$ LANGUAGE plpgsql; |
|
|
@ -70,7 +71,8 @@ BEGIN |
|
|
|
WHERE TABLE_NAME='t_ds_process_definition_version' |
|
|
|
WHERE TABLE_NAME='t_ds_process_definition_version' |
|
|
|
AND COLUMN_NAME ='warning_group_id') |
|
|
|
AND COLUMN_NAME ='warning_group_id') |
|
|
|
THEN |
|
|
|
THEN |
|
|
|
ALTER TABLE t_ds_process_definition_version ADD COLUMN `warning_group_id` int4 DEFAULT NULL COMMENT 'alert group id' AFTER `connects`; |
|
|
|
ALTER TABLE t_ds_process_definition_version ADD COLUMN warning_group_id int4 DEFAULT NULL; |
|
|
|
|
|
|
|
COMMENT ON COLUMN t_ds_process_definition_version.warning_group_id IS 'alert group id'; |
|
|
|
END IF; |
|
|
|
END IF; |
|
|
|
END; |
|
|
|
END; |
|
|
|
$$ LANGUAGE plpgsql; |
|
|
|
$$ LANGUAGE plpgsql; |
|
|
@ -88,7 +90,8 @@ BEGIN |
|
|
|
WHERE TABLE_NAME='t_ds_alertgroup' |
|
|
|
WHERE TABLE_NAME='t_ds_alertgroup' |
|
|
|
AND COLUMN_NAME ='alert_instance_ids') |
|
|
|
AND COLUMN_NAME ='alert_instance_ids') |
|
|
|
THEN |
|
|
|
THEN |
|
|
|
ALTER TABLE t_ds_alertgroup ADD COLUMN `alert_instance_ids` varchar (255) DEFAULT NULL COMMENT 'alert instance ids' AFTER `id`; |
|
|
|
ALTER TABLE t_ds_alertgroup ADD COLUMN alert_instance_ids varchar (255) DEFAULT NULL; |
|
|
|
|
|
|
|
COMMENT ON COLUMN t_ds_alertgroup.alert_instance_ids IS 'alert instance ids'; |
|
|
|
END IF; |
|
|
|
END IF; |
|
|
|
END; |
|
|
|
END; |
|
|
|
$$ LANGUAGE plpgsql; |
|
|
|
$$ LANGUAGE plpgsql; |
|
|
@ -106,7 +109,8 @@ BEGIN |
|
|
|
WHERE TABLE_NAME='t_ds_alertgroup' |
|
|
|
WHERE TABLE_NAME='t_ds_alertgroup' |
|
|
|
AND COLUMN_NAME ='create_user_id') |
|
|
|
AND COLUMN_NAME ='create_user_id') |
|
|
|
THEN |
|
|
|
THEN |
|
|
|
ALTER TABLE t_ds_alertgroup ADD COLUMN `create_user_id` int4 DEFAULT NULL COMMENT 'create user id' AFTER `alert_instance_ids`; |
|
|
|
ALTER TABLE t_ds_alertgroup ADD COLUMN create_user_id int4 DEFAULT NULL; |
|
|
|
|
|
|
|
COMMENT ON COLUMN t_ds_alertgroup.create_user_id IS 'create user id'; |
|
|
|
END IF; |
|
|
|
END IF; |
|
|
|
END; |
|
|
|
END; |
|
|
|
$$ LANGUAGE plpgsql; |
|
|
|
$$ LANGUAGE plpgsql; |
|
|
|