migration (#488)

This commit is contained in:
Louis Knight-Webb
2025-08-15 11:17:17 +01:00
committed by GitHub
parent ba8650cfca
commit 6d65ea18af

View File

@@ -0,0 +1,13 @@
-- JSON format changed, means you can access logs from old execution_processes
UPDATE execution_processes
SET executor_action = json_set(
json_remove(executor_action, '$.typ.profile'),
'$.typ.profile_variant_label',
json_object(
'profile', json_extract(executor_action, '$.typ.profile'),
'variant', json('null')
)
)
WHERE json_type(executor_action, '$.typ') IS NOT NULL
AND json_type(executor_action, '$.typ.profile') = 'text';