This commit is contained in:
chyoo
2026-06-22 18:17:02 +09:00
parent 324728304b
commit 62d7f6ae09
122 changed files with 22484 additions and 1 deletions
@@ -0,0 +1,11 @@
UPDATE "platforms"
SET "sensors" = (
SELECT COALESCE(jsonb_agg(sensor || jsonb_build_object('enabled', COALESCE((sensor->>'enabled')::boolean, true))), '[]'::jsonb)
FROM jsonb_array_elements("platforms"."sensors") AS sensor
);
UPDATE "instructor_platforms"
SET "sensors" = (
SELECT COALESCE(jsonb_agg(sensor || jsonb_build_object('enabled', COALESCE((sensor->>'enabled')::boolean, true))), '[]'::jsonb)
FROM jsonb_array_elements("instructor_platforms"."sensors") AS sensor
);