Commit 3e2cf357 authored by Johnny Leveneur's avatar Johnny Leveneur
Browse files

maj des v_insc_suac_*

parent 67825edc
Loading
Loading
Loading
Loading
+12 −11
Original line number Diff line number Diff line
@@ -22,7 +22,8 @@ from individu;

-- modification de la vue v_suac_etudiant
-- octo
create view public.v_suac_etudiant(id, prenom, nom, numero_etudiant, email, login) as
drop view v_insc_suac_etudiant;
create view public.v_insc_suac_etudiant(id, prenom, nom, numero_etudiant, email, login) as
SELECT DISTINCT i.c_individu_chaine                  AS id,
                i.prenom,
                COALESCE(i.nom_usage, i.nom_famille) AS nom,
@@ -33,7 +34,7 @@ FROM individu i
         JOIN individu_insc_admin iia ON i.c_individu_chaine = iia.individu_id
         JOIN individu_compte ic ON i.c_individu_chaine = ic.individu_id
         JOIN individu_compte_statut ics ON ic.statut_id = ics.id
WHERE ics.code = 'ACT';
WHERE ics.code = 'ACT'
;

-- 46 622
@@ -80,7 +81,7 @@ from v_objectifreussite_etudiant;
-- ad-dummy_octopus
-- vue inscription (postgres)
drop view v_suac_ia;
create or replace view public.v_suac_ia
create or replace view public.v_insc_suac_ia
            (id, etudiant_id, annee_univ,
             etape_id, formation_lib_court, formation,
             diplome_id, diplome_lib_court, diplome, cycle, composante,
@@ -89,8 +90,8 @@ create or replace view public.v_suac_ia
as

SELECT
       ROWNUM                                            AS ID,
       -- ROW_NUMBER() over ()                               AS ID,  -- postgres
       -- ROWNUM                                            AS ID,
       ROW_NUMBER() over ()                               AS ID,  -- postgres
       iia.individu_id                                    AS etudiant_id,
       iia.annee_univ,
       E.ETAPE_ID                                         AS etape_id,
@@ -99,8 +100,8 @@ SELECT
       D.DIPLOME_ID                                       AS diplome_id,
       D.LIB_COURT                                        AS diplome_lib_court,
       D.LIB_LONG                                         AS diplome,
       D.LIB_TYPE_DIPLOME_ETB AS DIPLOME_TYPE,
       -- SUBSTR(D.LIB_LONG, 1, POSITION(' ' IN D.LIB_LONG)) AS cycle, -- ad_dummy_octopus
       -- D.LIB_TYPE_DIPLOME_ETB AS DIPLOME_TYPE,
       SUBSTR(D.LIB_LONG, 1, POSITION(' ' IN D.LIB_LONG)) AS cycle, -- ad_dummy_octopus
       S.LIBELLE_LONG                                     AS composante,
       ETAB.LIBELLE_COURT                                 AS etablissement_libelle_court,
       ETAB.LIBELLE_LONG                                  AS etablissement
@@ -234,8 +235,8 @@ order by im.LIBELLE_COMMUNICATION
 */

-- ad_dummy_octopus
drop view v_suac_site;
create view v_suac_site(id, ville_id, libelle) as
drop view v_insc_suac_site;
create view v_insc_suac_site(id, ville_id, libelle) as
select id, ville_id, libelle
from (values (9, 61143, 'Damigny', 'Alençon-Damigny'),
             (10, 14118, 'Caen', 'Caen Campus 1'),
@@ -262,8 +263,8 @@ where isa.ville_code is not null
;

-- ad_dummy_octopus
drop view v_suac_ville;
create or replace view v_suac_ville(id, nom) as
drop view v_insc_suac_ville;
create or replace view v_insc_suac_ville(id, nom) as
select *
from (values (61143, 'Damigny'),
             (14118, 'Caen'),
+4 −4
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ return [
            'order' => 1,
            'source' => 'OCTOPUS',
            'orm_source' => 'orm_octopus',
            'table_source' => 'V_SUAC_ETUDIANT',
            'table_source' => 'v_insc_suac_etudiant',
            'orm_destination' => 'orm_default',
            'table_destination' => 'etudiant_etudiant',

@@ -30,7 +30,7 @@ return [
            'source' => 'OCTOPUS',
            'orm_source' => 'orm_octopus',
            'orm_destination' => 'orm_default',
            'table_source' => 'V_SUAC_IA',
            'table_source' => 'v_insc_suac_ia',
            'table_destination' => 'etudiant_inscription_administrative',
            'correspondance' => [
                'id' => 'id',
@@ -50,7 +50,7 @@ return [
            'source' => 'OCTOPUS',
            'orm_source' => 'orm_octopus',
            'orm_destination' => 'orm_default',
            'table_source' => 'V_SUAC_VILLE',
            'table_source' => 'v_insc_suac_ville',
            'table_destination' => 'site_ville',
            'correspondance' => [
                'id' => 'id',
@@ -64,7 +64,7 @@ return [
            'source' => 'OCTOPUS',
            'orm_source' => 'orm_octopus',
            'orm_destination' => 'orm_default',
            'table_source' => 'V_SUAC_SITE',
            'table_source' => 'v_insc_suac_site',
            'table_destination' => 'site_site',
            'correspondance' => [
                'id' => 'id',