Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: use risk title as the approval flow title (#18215)
p0nyba18d1990a69
diff --git a/backend/migrator/migration/3.13/0000##migrate_risk_to_approval_rules.sql b/backend/migrator/migration/3.13/0000##migrate_risk_to_approval_rules.sqlindex e62fdeb090..9a2097af38 100644--- a/backend/migrator/migration/3.13/0000##migrate_risk_to_approval_rules.sql+++ b/backend/migrator/migration/3.13/0000##migrate_risk_to_approval_rules.sql@@ -108,6 +108,7 @@ WITHactive_risks AS (SELECTr.id,+ r.name,r.source AS source_str,pg_temp.risk_source_to_enum(r.source) AS source_enum,r.level,@@ -143,7 +144,7 @@ risk_to_template AS (ar.source_enum,ar.expression,ar.priority,- orr.template+ jsonb_set(orr.template, '{title}', to_jsonb(ar.name::TEXT)) AS templateFROM active_risks arCROSS JOIN old_rules orrWHERE pg_temp.cel_matches_source_level(orr.condition_expr, ar.source_enum, ar.level)@@ -162,7 +163,7 @@ unspecified_fallbacks AS (swr.source_enum,'"true"'::jsonb AS expression,100 AS priority, -- Lower priority than any actual risk- orr.template+ jsonb_set(orr.template, '{title}', to_jsonb('Fallback rule'::TEXT)) AS templateFROM sources_with_rules swrCROSS JOIN old_rules orrWHERE pg_temp.cel_matches_source_level(orr.condition_expr, swr.source_enum, 'RISK_LEVEL_UNSPECIFIED')