From ca7cd140476a145d47112cad129a32688a7b1f97 Mon Sep 17 00:00:00 2001 From: Jonathan Clemons <36673787+j-clemons@users.noreply.github.com> Date: Thu, 14 Aug 2025 09:21:03 -0500 Subject: [PATCH] feat: add functions to grant_ownership_on_schema_objects --- macros/grant_ownership_on_schema_objects.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/macros/grant_ownership_on_schema_objects.sql b/macros/grant_ownership_on_schema_objects.sql index 056b244..cd69a3c 100644 --- a/macros/grant_ownership_on_schema_objects.sql +++ b/macros/grant_ownership_on_schema_objects.sql @@ -20,6 +20,8 @@ TO {{ new_owner_role }} REVOKE CURRENT GRANTS; GRANT OWNERSHIP ON ALL VIEWS IN SCHEMA {{ destination_database }}.{{ destination_schema }} TO {{ new_owner_role }} REVOKE CURRENT GRANTS; + GRANT OWNERSHIP ON ALL FUNCTIONS IN SCHEMA {{ destination_database }}.{{ destination_schema }} + TO {{ new_owner_role }} REVOKE CURRENT GRANTS; GRANT ALL PRIVILEGES ON SCHEMA {{ destination_database }}.{{ destination_schema }} TO {{ new_owner_role }}; {%- endcall %}