Skip to content

Commit a55fb43

Browse files
Update analytics_controls_full_data view
1 parent b0b7be0 commit a55fb43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/main/resources/db/migration/internal/V0.273__Update_analytics_controls_full_data_view.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ SELECT
124124
''
125125
) as comments,
126126
a.number_of_vessels_flown_over,
127-
a.flight_goals
127+
COALESCE(a.flight_goals, '{}'::VARCHAR[]) AS flight_goals
128128
FROM mission_actions a
129129
LEFT JOIN LATERAL jsonb_array_elements(CASE WHEN jsonb_typeof(segments) = 'array' THEN segments ELSE '[]' END) AS segment on true
130130
LEFT JOIN controls_infraction_natinfs_array inf ON inf.id = a.id

0 commit comments

Comments
 (0)