fix sql query

This commit is contained in:
sawka 2024-10-23 12:18:54 -07:00
parent a71195ee34
commit 893f877c22

View File

@ -1,4 +1,4 @@
UPDATE db_block UPDATE db_block
SET data = json_set(data, '$.parentoref', 'tab:' || db_tab.oid) SET data = json_set(db_block.data, '$.parentoref', 'tab:' || db_tab.oid)
FROM db_tab FROM db_tab
WHERE db_block.oid IN (SELECT value FROM json_each(db_tab.data, '$.blockids')); WHERE db_block.oid IN (SELECT value FROM json_each(db_tab.data, '$.blockids'));