From a0fcf67a4e9b656901a04d04b983c691d64d9c40 Mon Sep 17 00:00:00 2001 From: Imri Paran Date: Mon, 27 Jan 2025 14:29:15 +0100 Subject: [PATCH] fix(governance-workflows): fix migrations for 1.7.0 (#19533) eventBasedEntityWorkflow -> eventBasedEntity periodicBatchEntityWorkflow -> periodicBatchEntity --- .../native/1.7.0/mysql/postDataMigrationSQLScript.sql | 4 ++-- .../native/1.7.0/postgres/postDataMigrationSQLScript.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bootstrap/sql/migrations/native/1.7.0/mysql/postDataMigrationSQLScript.sql b/bootstrap/sql/migrations/native/1.7.0/mysql/postDataMigrationSQLScript.sql index db7398c184f..6ce9818d6fe 100644 --- a/bootstrap/sql/migrations/native/1.7.0/mysql/postDataMigrationSQLScript.sql +++ b/bootstrap/sql/migrations/native/1.7.0/mysql/postDataMigrationSQLScript.sql @@ -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'; \ No newline at end of file +WHERE JSON_EXTRACT(json, '$.trigger.type') = 'periodicBatchEntityTrigger'; \ No newline at end of file diff --git a/bootstrap/sql/migrations/native/1.7.0/postgres/postDataMigrationSQLScript.sql b/bootstrap/sql/migrations/native/1.7.0/postgres/postDataMigrationSQLScript.sql index 8950262f519..7c1b35d9280 100644 --- a/bootstrap/sql/migrations/native/1.7.0/postgres/postDataMigrationSQLScript.sql +++ b/bootstrap/sql/migrations/native/1.7.0/postgres/postDataMigrationSQLScript.sql @@ -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'; \ No newline at end of file +WHERE json->'trigger'->>'type' = 'periodicBatchEntityTrigger'; \ No newline at end of file