Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sygal
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
sygal
Commits
fbd40de8
You need to sign in or sign up before continuing.
Commit
fbd40de8
authored
5 years ago
by
Bertrand Gauthier
Browse files
Options
Downloads
Patches
Plain Diff
Script SQL à passer pour installer la version 1.2.2
parent
8838be62
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
data/SQL/1.2.2/10_fichier_divers.sql
+27
-0
27 additions, 0 deletions
data/SQL/1.2.2/10_fichier_divers.sql
with
27 additions
and
0 deletions
data/SQL/1.2.2/10_fichier_divers.sql
0 → 100644
+
27
−
0
View file @
fbd40de8
--
-- Insertions oubliées dans le script SQL de la version 1.2.1.
--
-- Ajout des privilèges fichier-divers/* au profil 'ADMIN_TECH'
insert
into
PROFIL_PRIVILEGE
(
PRIVILEGE_ID
,
PROFIL_ID
)
with
data
(
categ
,
priv
)
as
(
select
'fichier-divers'
,
'televerser'
from
dual
union
select
'fichier-divers'
,
'telecharger'
from
dual
)
select
p
.
id
as
PRIVILEGE_ID
,
profil
.
id
as
PROFIL_ID
from
data
join
PROFIL
on
profil
.
ROLE_ID
in
(
'ADMIN_TECH'
)
join
CATEGORIE_PRIVILEGE
cp
on
cp
.
CODE
=
data
.
categ
join
PRIVILEGE
p
on
p
.
CATEGORIE_ID
=
cp
.
id
and
p
.
code
=
data
.
priv
/
-- Attribution (si pas déjà fait) des privilèges fichier-divers/* au rôle 'ADMIN_TECH' (grâce au profil).
insert
into
ROLE_PRIVILEGE
(
ROLE_ID
,
PRIVILEGE_ID
)
SELECT
r
.
id
as
ROLE_ID
,
p
.
ID
as
PRIVILEGE_ID
from
PROFIL_PRIVILEGE
pp
join
profil
on
PROFIL
.
ID
=
pp
.
PROFIL_ID
and
profil
.
ROLE_ID
in
(
'ADMIN_TECH'
)
join
PRIVILEGE
p
on
p
.
id
=
pp
.
PRIVILEGE_ID
join
CATEGORIE_PRIVILEGE
cp
on
cp
.
id
=
p
.
CATEGORIE_ID
and
cp
.
CODE
=
'fichier-divers'
join
role
r
on
r
.
CODE
=
PROFIL
.
ROLE_ID
where
not
exists
(
select
*
from
ROLE_PRIVILEGE
rp
where
rp
.
ROLE_ID
=
r
.
id
and
rp
.
PRIVILEGE_ID
=
p
.
id
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment