Skip to content

Commit

Permalink
chore: add postgrest roles to big_schema.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-chavez committed Mar 14, 2024
1 parent 4a2c851 commit ec7ab27
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/io/big_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ SET check_function_bodies = false;
SET client_min_messages = warning;
SET row_security = off;


CREATE SCHEMA apflora;

CREATE SCHEMA auth;
Expand Down Expand Up @@ -11375,3 +11374,13 @@ ALTER TABLE ONLY apflora.zielber
ADD CONSTRAINT zielber_ziel_id_fkey FOREIGN KEY (ziel_id) REFERENCES apflora.ziel(id) ON UPDATE CASCADE ON DELETE CASCADE;

ALTER TABLE apflora."user" ENABLE ROW LEVEL SECURITY;

DROP ROLE IF EXISTS postgrest_test_anonymous;
CREATE ROLE postgrest_test_anonymous;

GRANT postgrest_test_anonymous TO :PGUSER;

GRANT USAGE ON SCHEMA apflora TO postgrest_test_anonymous;

GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA apflora
TO postgrest_test_anonymous;

0 comments on commit ec7ab27

Please sign in to comment.