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 %}