Commit e63d0123 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Notes de version : pas de version 8.6.1, on passe directement à la 9.0.0

parent e458c310
Loading
Loading
Loading
Loading
+1 −1
Changes for doc/release-notes/9.0.0/01_divers.sql: 1 added line, 1 removed line.
Original line number Diff line number Diff line
--
-- 8.6.1
-- 9.0.0
--

create or replace procedure unicaen_indicateur_recreate_matviews()
+84 −0
Changes for doc/release-notes/9.0.0/02_roles.sql: 84 added lines, 0 removed lines.
Original line number Diff line number Diff line
--
-- 9.0.0
--

--
-- Profils devant être typés 'etablissement' (certains l'étaient déjà)
--
update profil
set structure_type = (select id from type_structure where code = 'etablissement')
where role_id in (
                  'A', -- Rapporteur Absent
                  'ADMIN', -- Administrateur
                  'BDD', -- Bureau des doctorats
                  'BU', -- Bibliothèque universitaire
                  'D', -- Directeur de thèse
                  'DOCTORANT', -- Doctorant
                  'GEST_FORM', -- Gestionnaire de formation
                  'K', -- Co-directeur
                  'M', -- Membre
                  'OBSERV', -- Observateur
                  'P', -- Président du jury
                  'R' -- Rapporteur
    );

--
-- Troncature préalable du structure.code nécessaire (cf. role__create_roles_from_profils_for_structure()).
--
update structure set code = substring(code, 1, 16) where length(code) > 16;

--
-- Création des rôles typés 'etablissement', en se basant sur les profils
--
select e.id etablissement_id, e.structure_id, role__create_roles_from_profils_for_structure(s.id)
from etablissement e
         join structure s on e.structure_id = s.id and s.histo_destruction is null
         join type_structure ts on s.type_structure_id = ts.id and ts.code = 'etablissement'
where e.histo_destruction is null and e.est_etab_inscription = true;

--
-- Création des rôles typés 'ecole-doctorale', en se basant sur les profils
--
select e.id ecole_doct_id, e.structure_id, role__create_roles_from_profils_for_structure(s.id)
from ecole_doct e
         join structure s on e.structure_id = s.id and s.histo_destruction is null
         join type_structure ts on s.type_structure_id = ts.id and ts.code = 'ecole-doctorale'
where e.histo_destruction is null;

--
-- Création des rôles typés 'ecole-doctorale', en se basant sur les profils
--
select e.id unite_rech_id, e.structure_id, role__create_roles_from_profils_for_structure(s.id)
from unite_rech e
         join structure s on e.structure_id = s.id and s.histo_destruction is null
         join type_structure ts on s.type_structure_id = ts.id and ts.code = 'unite-recherche'
where e.histo_destruction is null;

/* verifs
select * from role where structure_id in (
    select s.id
    from etablissement e
    join structure s on e.structure_id = s.id and s.histo_destruction is null
    join type_structure ts on s.type_structure_id = ts.id and ts.code = 'etablissement'
    where e.histo_destruction is null and e.est_etab_inscription = true
)
order by histo_creation desc;

select * from role where structure_id in (
    select s.id
    from ecole_doct e
    join structure s on e.structure_id = s.id and s.histo_destruction is null
    join type_structure ts on s.type_structure_id = ts.id and ts.code = 'ecole-doctorale'
    where e.histo_destruction is null
)
order by histo_creation desc;

select * from role where structure_id in (
    select s.id
    from unite_rech e
    join structure s on e.structure_id = s.id and s.histo_destruction is null
    join type_structure ts on s.type_structure_id = ts.id and ts.code = 'unite-recherche'
    where e.histo_destruction is null
)
order by histo_creation desc;
*/
+3 −3
Changes for doc/release-notes/v9.0.0.md: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
# Version 8.6.1
# Version 9.0.0

## 1. Sur le serveur d'application

@@ -6,9 +6,9 @@
  pour installer la nouvelle version :

  ```bash
  git fetch --tags && git checkout --force 8.6.1 && bash ./install.sh
  git fetch --tags && git checkout --force 9.0.0 && bash ./install.sh
  ```

## 2. Dans la base de données

Exécutez dans l'ordre les scripts SQL présents dans le répertoire [8.6.1](8.6.1).
Exécutez dans l'ordre les scripts SQL présents dans le répertoire [9.0.0](9.0.0).