Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
BMG PUBLIC RESOURCES
SIG-TOPO-BMG
Commits
55efa543
Commit
55efa543
authored
Nov 19, 2020
by
Alice Salsé
Browse files
👤
add db roles
parent
68ad9627
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/all/function_set_default_value.sql
View file @
55efa543
\
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
,
...
...
sql/create_db_roles.sql
View file @
55efa543
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment