OK, I'm now happy with the issue experts' workflow.

This commit is contained in:
Simon Brooke 2018-09-06 16:08:51 +01:00
parent 54ad57349c
commit 863a7e3c0e
2 changed files with 30 additions and 2 deletions

View file

@ -1,3 +1,22 @@
------------------------------------------------------------------------
-- User `youyesyet` (the app, and less secure parts of the site)
-- must have the permissions of `canvassers`.
------------------------------------------------------------------------
DO
$do$
BEGIN
IF NOT EXISTS (
SELECT -- SELECT list can stay empty for this
FROM pg_catalog.pg_roles
WHERE rolname = 'youyesyet') THEN
CREATE ROLE youyesyet LOGIN PASSWORD 'thisisnotsecure';
END IF;
END
$do$;
grant canvassers to youyesyet;
------------------------------------------------------------------------
-- convenience view lv_followupactions of entity followupactions for
-- lists, et cetera