This commit is contained in:
Ian Gulliver
2026-10-18 21:24:41 -07:00
parent 7728484e86
commit 57788cc711
59 changed files with 465 additions and 512 deletions
@@ -0,0 +1,4 @@
UPDATE users SET focus = json_set(focus,
'$.tab', CASE json_extract(focus, '$.tab') WHEN 'preview' THEN 'transcript' ELSE json_extract(focus, '$.tab') END,
'$.tabs', json((SELECT json_group_array(value) FROM json_each(users.focus, '$.tabs') WHERE value != 'preview')));
UPDATE users SET focus = json_set(focus, '$.tabs', json('["transcript"]')) WHERE json_array_length(focus, '$.tabs') = 0;