Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: plan check run status (#12389)
boojack7e237f095d99
diff --git a/backend/store/plan.go b/backend/store/plan.goindex 4e4fa78455..3315dfabf8 100644--- a/backend/store/plan.go+++ b/backend/store/plan.go@@ -185,11 +185,11 @@ func (s *Store) ListPlans(ctx context.Context, find *FindPlanMessage) ([]*PlanMee->>'status' AS status,COUNT(*) AS countFROM (- SELECT DISTINCT ON (plan_check_run.type)+ SELECT DISTINCT ON (plan_check_run.type, plan_check_run.config->>'instanceUid', plan_check_run.config->>'databaseName')jsonb_array_elements(plan_check_run.result->'results') eFROM plan_check_runWHERE plan_check_run.plan_id = plan.id- ORDER BY plan_check_run.type, plan_check_run.id DESC+ ORDER BY plan_check_run.type, plan_check_run.config->>'instanceUid', plan_check_run.config->>'databaseName', plan_check_run.id DESC) rGROUP BY e->>'status') a