File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
cli/macrostrat/cli/database/migrations/ingest_preprocess_updates Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,23 @@ create or replace view macrostrat_api.maps_sources AS
5454 keywords,
5555 language,
5656 description
57- from maps .sources
57+ from maps .sources ;
58+
59+
5860
5961GRANT SELECT , UPDATE ON macrostrat_api .map_ingest TO web_user, web_admin;
6062GRANT SELECT , UPDATE ON macrostrat_api .map_ingest_tags TO web_user, web_admin;
6163GRANT SELECT , UPDATE ON macrostrat_api .maps_sources TO web_user, web_admin;
6264
65+ ALTER VIEW macrostrat_api .map_ingest OWNER TO web_admin;
66+ ALTER VIEW macrostrat_api .map_ingest_tags OWNER TO web_admin;
67+ ALTER VIEW macrostrat_api .maps_sources OWNER TO web_admin;
68+
69+ GRANT USAGE ON SCHEMA macrostrat_api TO web_anon;
70+ GRANT SELECT ON macrostrat_api .map_ingest TO web_anon;
71+ GRANT SELECT ON macrostrat_api .map_ingest_tags TO web_anon;
72+ GRANT SELECT ON macrostrat_api .maps_sources TO web_anon;
73+
6374NOTIFY pgrst, ' reload schema' ;
6475
6576
You can’t perform that action at this time.
0 commit comments