From ed7fa24c39619103674ae8f5e21e3e90ad9d75b3 Mon Sep 17 00:00:00 2001 From: Mohit Yadav <105265192+mohityadav766@users.noreply.github.com> Date: Thu, 11 Apr 2024 19:41:50 +0530 Subject: [PATCH] Fix Migration SQL , not executing from Handle (#15873) * Fix Migration SQL , not executing from Handle * fix --- .../sql/migrations/native/1.3.3/postgres/schemaChanges.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap/sql/migrations/native/1.3.3/postgres/schemaChanges.sql b/bootstrap/sql/migrations/native/1.3.3/postgres/schemaChanges.sql index 840557a6173..4173eb4a968 100644 --- a/bootstrap/sql/migrations/native/1.3.3/postgres/schemaChanges.sql +++ b/bootstrap/sql/migrations/native/1.3.3/postgres/schemaChanges.sql @@ -21,7 +21,7 @@ SET json = jsonb_set( '{system}', json->'systemApp' ) - 'systemApp' -WHERE json ? 'systemApp'; +WHERE jsonb_exists(json::jsonb, 'systemApp') = true; UPDATE apps_marketplace SET json = jsonb_set( @@ -29,4 +29,4 @@ SET json = jsonb_set( '{system}', json->'systemApp' ) - 'systemApp' -WHERE json ? 'systemApp'; +WHERE jsonb_exists(json::jsonb, 'systemApp') = true;