From 04ba77e97acd884af5ecd017cf945f38e768a475 Mon Sep 17 00:00:00 2001 From: Jo Humphrey <31373245+jamdelion@users.noreply.github.com> Date: Tue, 19 Nov 2024 12:36:19 +0000 Subject: [PATCH] Fix sql - readd application.type --- .../migrations/1731498724636_run_sql_migration/up.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/hasura.planx.uk/migrations/1731498724636_run_sql_migration/up.sql b/hasura.planx.uk/migrations/1731498724636_run_sql_migration/up.sql index 4ed518f02c..2f1d4b7642 100644 --- a/hasura.planx.uk/migrations/1731498724636_run_sql_migration/up.sql +++ b/hasura.planx.uk/migrations/1731498724636_run_sql_migration/up.sql @@ -142,6 +142,7 @@ CREATE OR REPLACE VIEW "public"."submission_services_summary" AS ((ls.allow_list_answers -> 'service.type'::text))::text AS pre_app_service_type, ((ls.allow_list_answers -> 'application.information.harmful'::text))::text AS pre_app_harmful_info, ((ls.allow_list_answers -> 'application.information.sensitive'::text))::text AS pre_app_sensitive_info, + (((ls.allow_list_answers -> 'application.type'::text) -> 0))::text AS application_type, ((ls.allow_list_answers -> '_feedback') ->> 'feedbackScore'::text)::int AS feedback_score FROM (((((((((lowcal_sessions ls LEFT JOIN flows f ON ((f.id = ls.flow_id)))