MINOR: fix syntax in migration (#19540)

This commit is contained in:
Imri Paran 2025-01-27 19:03:54 +01:00 committed by GitHub
parent 36d8519b09
commit 5fb7abb820
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
UPDATE workflow_definition_entity
SET json = jsonb_set(json, '{trigger,type}', '"eventBasedEntity"')
fixWHERE json->'trigger'->>'type' = 'eventBasedEntityTrigger';
WHERE json->'trigger'->>'type' = 'eventBasedEntityTrigger';
UPDATE workflow_definition_entity
SET json = jsonb_set(json, '{trigger,type}', '"periodicBatchEntity"')
WHERE json->'trigger'->>'type' = 'periodicBatchEntityTrigger';
WHERE json->'trigger'->>'type' = 'periodicBatchEntityTrigger';