Fix Migration SQL , not executing from Handle (#15873)

* Fix Migration SQL , not executing from Handle

* fix
This commit is contained in:
Mohit Yadav 2024-04-11 19:41:50 +05:30 committed by GitHub
parent 0c3e580592
commit ed7fa24c39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;