Skip to content
Snippets Groups Projects
Commit 09d6d7c0 authored by lecluse's avatar lecluse
Browse files

v1.5.3

parent 034da365
Branches
Tags
No related merge requests found
......@@ -12,8 +12,8 @@ $settings = [
'app_infos' => [
'nom' => "OSE",
'desc' => "Organisation des Services d'Enseignement",
'version' => "1.5.1",
'date' => "04/06/2015",
'version' => "1.5.3",
'date' => "10/06/2015",
'contact' => ['mail' => "Contactez votre composante.", /*'tel' => "01 02 03 04 05"*/],
'mentionsLegales' => "http://www.unicaen.fr/outils-portail-institutionnel/mentions-legales/",
'informatiqueEtLibertes' => "http://www.unicaen.fr/outils-portail-institutionnel/informatique-et-libertes/",
......
......@@ -24,33 +24,20 @@ INSERT INTO PRIVILEGE (
select
--p.id, cp.code categorie, p.code privilege,
' const '
|| rpad( upper( replace( cp.code, '-', '_' ) || '_' || replace( p.code, '-', '_' ) ), MAX( length( cp.code ) + length( p.code ) ) OVER (PARTITION BY 1 )+1, ' ' )
|| ' = ' || '''' || cp.code || '-' || p.code || '''' || ';' php_const
p.id, cp.code categorie, p.code privilege
--' const '
-- || rpad( upper( replace( cp.code, '-', '_' ) || '_' || replace( p.code, '-', '_' ) ), MAX( length( cp.code ) + length( p.code ) ) OVER (PARTITION BY 1 )+1, ' ' )
-- || ' = ' || '''' || cp.code || '-' || p.code || '''' || ';' php_const
from
privilege p
join categorie_privilege cp on cp.id = p.categorie_id
order by
cp.code, p.code;
cp.code, p.ordre;
-- EXPORT
update privilege set ordre = 1 where id = 6;
update privilege set ordre = 2 where id = 5;
update privilege set ordre = 3 where id = 10;
role_privilege
statut_privilege
;
SELECT 'INSERT INTO PERIMETRE (
ID,
CODE,
LIBELLE
) VALUES (
PERIMETRE_ID_SEQ.NEXTVAL,
''' || code || ''',
q''$' || libelle || '$''
);'
FROM perimetre;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment