mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-05 03:54:23 +00:00
fix(governance-workflows): fix migrations for 1.7.0 (#19533)
eventBasedEntityWorkflow -> eventBasedEntity periodicBatchEntityWorkflow -> periodicBatchEntity
This commit is contained in:
parent
d2dc7bd038
commit
a0fcf67a4e
@ -1,7 +1,7 @@
|
||||
UPDATE workflow_definition_entity
|
||||
SET json = JSON_SET(json, '$.trigger.type', 'eventBasedEntity')
|
||||
WHERE JSON_EXTRACT(json, '$.trigger.type') = 'eventBasedEntityWorkflow';
|
||||
WHERE JSON_EXTRACT(json, '$.trigger.type') = 'eventBasedEntityTrigger';
|
||||
|
||||
UPDATE workflow_definition_entity
|
||||
SET json = JSON_SET(json, '$.trigger.type', 'periodicBatchEntity')
|
||||
WHERE JSON_EXTRACT(json, '$.trigger.type') = 'periodicBatchEntityWorkflow';
|
||||
WHERE JSON_EXTRACT(json, '$.trigger.type') = 'periodicBatchEntityTrigger';
|
||||
@ -1,7 +1,7 @@
|
||||
UPDATE workflow_definition_entity
|
||||
SET json = jsonb_set(json, '{trigger,type}', '"eventBasedEntity"')
|
||||
WHERE json->'trigger'->>'type' = 'eventBasedEntityWorkflow';
|
||||
fixWHERE json->'trigger'->>'type' = 'eventBasedEntityTrigger';
|
||||
|
||||
UPDATE workflow_definition_entity
|
||||
SET json = jsonb_set(json, '{trigger,type}', '"periodicBatchEntity"')
|
||||
WHERE json->'trigger'->>'type' = 'periodicBatchEntityWorkflow';
|
||||
WHERE json->'trigger'->>'type' = 'periodicBatchEntityTrigger';
|
||||
Loading…
x
Reference in New Issue
Block a user