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: list plan check runs (#13839)
boojack6126216aea35
diff --git a/backend/store/plan_check_run.go b/backend/store/plan_check_run.goindex 98dd1c90ab..d52e04e6ea 100644--- a/backend/store/plan_check_run.go+++ b/backend/store/plan_check_run.go@@ -144,8 +144,8 @@ func (s *Store) ListPlanCheckRuns(ctx context.Context, find *FindPlanCheckRunMes}var distinctOn, orderBy stringif find.LatestOnly {- distinctOn = "DISTINCT ON (plan_check_run.type, plan_check_run.config->>'instanceUid', plan_check_run.config->>'databaseName') "- orderBy = "ORDER BY plan_check_run.type, plan_check_run.config->>'instanceUid', plan_check_run.config->>'databaseName', plan_check_run.id DESC"+ distinctOn = "DISTINCT ON (plan_check_run.type, plan_check_run.config->>'instanceUid', plan_check_run.config->>'databaseName', plan_check_run.config->>'sheetUid')"+ orderBy = "ORDER BY plan_check_run.type, plan_check_run.config->>'instanceUid', plan_check_run.config->>'databaseName', plan_check_run.config->>'sheetUid', plan_check_run.id DESC"} else {orderBy = "ORDER BY plan_check_run.id DESC"}