diff --git a/hasura.planx.uk/migrations/1731944794522_add_research_opt_in_to_allow_list/up.sql b/hasura.planx.uk/migrations/1731944794522_add_research_opt_in_to_allow_list/up.sql index 102159ec35..9c671d1968 100644 --- a/hasura.planx.uk/migrations/1731944794522_add_research_opt_in_to_allow_list/up.sql +++ b/hasura.planx.uk/migrations/1731944794522_add_research_opt_in_to_allow_list/up.sql @@ -48,8 +48,8 @@ CREATE OR REPLACE VIEW "public"."analytics_summary" AS ((al.allow_list_answers -> 'service.type'::text))::text AS pre_app_service_type, ((al.allow_list_answers -> 'application.information.harmful'::text))::text AS pre_app_harmful_info, ((al.allow_list_answers -> 'application.information.sensitive'::text))::text AS pre_app_sensitive_info, - (((al.allow_list_answers -> 'application.type'::text) -> 0))::text AS application_type, - (((al.allow_list_answers -> 'applicant.researchOptIn'::text) -> 0))::text AS applicant_research_opt_in + al.allow_list_answers -> 'application.type' ->> 0 AS application_type, + al.allow_list_answers -> 'applicant.researchOptIn' ->> 0 AS applicant_research_opt_in FROM (((analytics a LEFT JOIN analytics_logs al ON ((a.id = al.analytics_id))) LEFT JOIN flows f ON ((a.flow_id = f.id))) @@ -142,8 +142,8 @@ 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 -> 'applicant.researchOptIn'::text) -> 0))::text AS applicant_research_opt_in + ls.allow_list_answers -> 'application.type' ->> 0 AS application_type, + ls.allow_list_answers -> 'applicant.researchOptIn' ->> 0 AS applicant_research_opt_in FROM (((((((((lowcal_sessions ls LEFT JOIN flows f ON ((f.id = ls.flow_id))) LEFT JOIN teams t ON ((t.id = f.team_id)))