mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
5 lines
181 B
MySQL
5 lines
181 B
MySQL
|
UPDATE db_block
|
||
|
SET data = json_set(db_block.data, '$.parentoref', 'tab:' || db_tab.oid)
|
||
|
FROM db_tab
|
||
|
WHERE db_block.oid IN (SELECT value FROM json_each(db_tab.data, '$.blockids'));
|