mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-13 03:59:45 +00:00
29 lines
906 B
SQL
29 lines
906 B
SQL
ALTER TABLE test_case ADD COLUMN status VARCHAR(56) GENERATED ALWAYS AS (json -> 'testCaseResult' ->> 'testCaseStatus') STORED NULL;
|
|
ALTER TABLE test_case ADD COLUMN entityLink VARCHAR(512) GENERATED ALWAYS AS (json ->> 'entityLink') STORED NOT NULL;
|
|
|
|
-- change scheduleType to scheduleTimeline
|
|
UPDATE installed_apps
|
|
SET json = jsonb_set(
|
|
json::jsonb #- '{appSchedule,scheduleType}',
|
|
'{appSchedule,scheduleTimeline}',
|
|
(json #> '{appSchedule,scheduleType}')::jsonb,
|
|
true
|
|
);
|
|
delete from apps_extension_time_series;
|
|
|
|
-- Change systemApp to system
|
|
UPDATE installed_apps
|
|
SET json = jsonb_set(
|
|
json::jsonb #- '{systemApp}',
|
|
'{system}',
|
|
(json #> '{systemApp}')::jsonb,
|
|
true
|
|
);
|
|
UPDATE apps_marketplace
|
|
SET json = jsonb_set(
|
|
json::jsonb #- '{systemApp}',
|
|
'{system}',
|
|
(json #> '{systemApp}')::jsonb,
|
|
true
|
|
);
|