mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-01 20:04:52 +00:00
Add missing domain migrations for entity version history (#23032)
This commit is contained in:
parent
5d790455b0
commit
f1df209bed
@ -0,0 +1,8 @@
|
||||
-- Update entity_extension to move domain to array
|
||||
update entity_extension set json = JSON_SET(
|
||||
JSON_REMOVE(json, '$.domain'),
|
||||
'$.domains',
|
||||
JSON_ARRAY(
|
||||
JSON_EXTRACT(json, '$.domain')
|
||||
)
|
||||
) where json -> '$.domain' is not null;
|
@ -0,0 +1,3 @@
|
||||
-- Update entity_extension to move domain to array
|
||||
update entity_extension set json = jsonb_set(json#-'{domain}', '{domains}',
|
||||
jsonb_build_array(json#>'{domain}')) where json #>> '{domain}' is not null;
|
Loading…
x
Reference in New Issue
Block a user