From 7e683e985b5429a16ad9cd7bf88761e7e89a9669 Mon Sep 17 00:00:00 2001 From: Claire Dagan Date: Mon, 18 Dec 2023 18:28:41 +0100 Subject: [PATCH] [Migration] fix migration for control_plan_tags --- .../db/migration/internal/V0.103__create_action_theme.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/main/resources/db/migration/internal/V0.103__create_action_theme.sql b/backend/src/main/resources/db/migration/internal/V0.103__create_action_theme.sql index 56ae3eb79e..508435088a 100644 --- a/backend/src/main/resources/db/migration/internal/V0.103__create_action_theme.sql +++ b/backend/src/main/resources/db/migration/internal/V0.103__create_action_theme.sql @@ -118,6 +118,7 @@ WITH themes AS ( jsonb_array_elements(value->'themes')->>'theme' as theme, jsonb_array_elements(value->'themes')->'protectedSpecies' as protectedspecies FROM env_actions + WHERE jsonb_typeof(value->'themes') = 'array' ) SELECT themes.env_action_id, control_plan_tags.id FROM themes,