Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: prevent null values in migration results aggregation (#18606)

p0ny603325e6acf9
diff --git a/backend/migrator/migration/3.14/0006##consolidate_plan_check_runs.sql b/backend/migrator/migration/3.14/0006##consolidate_plan_check_runs.sql
index e60d420ee2..fb17661376 100644
--- a/backend/migrator/migration/3.14/0006##consolidate_plan_check_runs.sql
+++ b/backend/migrator/migration/3.14/0006##consolidate_plan_check_runs.sql
@@ -73,8 +73,8 @@ SELECT
END
)
), '[]'::jsonb)
- FROM plan_check_run_deduped d3
- LEFT JOIN LATERAL jsonb_array_elements(d3.result->'results') r ON true
+ FROM plan_check_run_deduped d3,
+ LATERAL jsonb_array_elements(d3.result->'results') r
WHERE d3.plan_id = d.plan_id
))
END,