Commit 55efa543 authored by Alice Salsé's avatar Alice Salsé
Browse files

👤 add db roles

parent 68ad9627
\encoding UTF8
-- INUTILISEE : ne fonctionnne pas correstement
set search_path to utils, public;
CREATE OR REPLACE FUNCTION fnc_set_default_value(
IN i_regclass regclass,
......
......@@ -14,6 +14,16 @@ BEGIN
CREATE ROLE editeur
NOSUPERUSER NOCREATEDB NOCREATEROLE NOINHERIT;
END IF;
-- ROLE EDITION / NETWORK
IF NOT EXISTS (SELECT FROM pg_catalog.pg_roles WHERE rolname = 'editeur_nw') THEN
CREATE ROLE editeur_nw
NOSUPERUSER NOCREATEDB NOCREATEROLE NOINHERIT;
END IF;
-- ROLE EDITION / INTERVENTION
IF NOT EXISTS (SELECT FROM pg_catalog.pg_roles WHERE rolname = 'editeur_events') THEN
CREATE ROLE editeur_events
NOSUPERUSER NOCREATEDB NOCREATEROLE NOINHERIT;
END IF;
-- ROLE CONSULTATION
IF NOT EXISTS (SELECT FROM pg_catalog.pg_roles WHERE rolname = 'viewer') THEN
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment