9 lines
262 B
SQL
9 lines
262 B
SQL
ALTER TABLE sidebar_shortcuts ADD COLUMN root_uri TEXT;
|
|
|
|
UPDATE sidebar_shortcuts
|
|
SET root_uri = COALESCE(
|
|
NULLIF(json_extract(metadata_json, '$.rootUri'), ''),
|
|
NULLIF(json_extract(metadata_json, '$.root_uri'), '')
|
|
)
|
|
WHERE root_uri IS NULL OR root_uri = '';
|