mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-09 01:58:53 +00:00

* Fix SQLs * Update SQls * Update bootstrap/sql/migrations/native/1.3.3/postgres/schemaChanges.sql * Update bootstrap/sql/migrations/native/1.3.3/mysql/schemaChanges.sql --------- Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com>
33 lines
869 B
SQL
33 lines
869 B
SQL
-- change scheduleType to scheduleTimeline, this was failing earlier in 1.3.2 so updating it here
|
|
UPDATE installed_apps
|
|
SET json = jsonb_set(
|
|
json::jsonb,
|
|
'{appSchedule}',
|
|
jsonb_set(
|
|
json->'appSchedule',
|
|
'{scheduleTimeline}',
|
|
json->'appSchedule'->'scheduleType'
|
|
) - 'scheduleType',
|
|
true
|
|
)
|
|
WHERE json->'appSchedule'->>'scheduleType' IS NOT NULL;
|
|
|
|
delete from apps_extension_time_series;
|
|
|
|
-- Change systemApp to system, this was failing earlier in 1.3.2 so updating it here
|
|
UPDATE installed_apps
|
|
SET json = jsonb_set(
|
|
json::jsonb,
|
|
'{system}',
|
|
json->'systemApp'
|
|
) - 'systemApp'
|
|
WHERE json ? 'systemApp';
|
|
|
|
UPDATE apps_marketplace
|
|
SET json = jsonb_set(
|
|
json::jsonb,
|
|
'{system}',
|
|
json->'systemApp'
|
|
) - 'systemApp'
|
|
WHERE json ? 'systemApp';
|