Skip to content

Commit

Permalink
add grant usage on schema
Browse files Browse the repository at this point in the history
  • Loading branch information
abimichel committed Jul 17, 2024
1 parent 437525e commit 865873c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions permitting/ownership_transfer.sql
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ BEGIN
END LOOP;
END$$;

GRANT USAGE ON SCHEMA ods_data_management TO ats_replication;

GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA ods_data_management TO ats_replication;

GRANT USAGE, CREATE ON SCHEMA rrs_replication TO rrs_replication;
Expand All @@ -52,6 +54,8 @@ BEGIN
END LOOP;
END$$;

GRANT USAGE ON SCHEMA ods_data_management TO rrs_replication;

GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA ods_data_management TO rrs_replication;

GRANT USAGE, CREATE ON SCHEMA lexis_replication TO lexis_replication;
Expand All @@ -68,6 +72,8 @@ BEGIN
END LOOP;
END$$;

GRANT USAGE ON SCHEMA ods_data_management TO lexis_replication;

GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA ods_data_management TO lexis_replication;

GRANT USAGE, CREATE ON SCHEMA fta_replication TO fta_replication;
Expand All @@ -84,4 +90,6 @@ BEGIN
END LOOP;
END$$;

GRANT USAGE ON SCHEMA ods_data_management TO fta_replication;

GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA ods_data_management TO fta_replication;

0 comments on commit 865873c

Please sign in to comment.