Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions macros/grant_ownership_on_schema_objects.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down