Skip to content

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

fix: use ->> operator to return sql null instead of jsonb null (#18467)

h3n4ld2f5c86cd21d
diff --git a/backend/migrator/migration/3.13/0007##plan_check_ddl_dml_consolidation.sql b/backend/migrator/migration/3.13/0007##plan_check_ddl_dml_consolidation.sql
index 230194e8af..968fbf3bb2 100644
--- a/backend/migrator/migration/3.13/0007##plan_check_ddl_dml_consolidation.sql
+++ b/backend/migrator/migration/3.13/0007##plan_check_ddl_dml_consolidation.sql
@@ -27,5 +27,5 @@ SET payload = jsonb_set(
'[]'::jsonb
)
)
-WHERE payload->'sqlReviewRules' IS NOT NULL
+WHERE payload->>'sqlReviewRules' IS NOT NULL
AND jsonb_array_length(payload->'sqlReviewRules') > 0;