Commit 92689fba authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Mise à jour des scripts SQL d'install from scratch

parent afd149f0
Pipeline #12935 failed with stages
in 24 seconds
......@@ -52,7 +52,7 @@ NB: Vérifiez dans le script `Dockerfile.sh` que vous venez de lancer mais norma
### Installation d'une version précise du WS
Normalement, vous ne devez installer que les versions officielles du WS, c'est à dire les versions taguées, du genre `1.2.1`
Normalement, vous ne devez installer que les versions officielles du WS, c'est à dire les versions taguées, du genre `2.0.0`
par exemple.
Placez-vous dans le répertoire des sources du web service puis lancez les commandes git suivantes pour obtenir la liste des
......@@ -61,10 +61,10 @@ versions officielles du WS :
git fetch && git fetch --tags && git tag
```
Si la version la plus récente est par exemple la `1.2.1`, utilisez les commandes suivantes pour "installer" cette version
Si la version la plus récente est par exemple la `2.0.0`, utilisez les commandes suivantes pour "installer" cette version
sur votre serveur :
```bash
git checkout --force 1.2.1 && bash install.sh
git checkout --force 2.0.0 && bash install.sh
```
......@@ -154,7 +154,7 @@ Réseau
------
Vous devez autoriser le serveur sur lequel est installé le WS à être interrogé par le serveur sur lequel est installé
SyGAL.
ESUP-SyGAL.
Il est conseillé de restreindre cette autorisation à cette seule adresse IP d'origine.
......@@ -164,4 +164,4 @@ Test
----
Reportez-vous au [README.md](README.md) pour tester l'appel du WS en ligne de commande depuis le serveur
sur lequel est installé SyGAL.
sur lequel est installé ESUP-SyGAL.
......@@ -9,203 +9,217 @@
-- Tables à créer par chaque établissement.
--
create table SYGAL_ACTEUR
create table SYGAL_ACTEUR_V2
(
ID VARCHAR2(104),
SOURCE_ID VARCHAR2(50 char),
THESE_ID NUMBER(8),
ROLE_ID CHAR,
COD_ROJ_COMPL VARCHAR2(1 char),
LIB_ROJ_COMPL VARCHAR2(21),
COD_PER NUMBER(8),
INDIVIDU_ID VARCHAR2(4000),
ACTEUR_ETABLISSEMENT_ID VARCHAR2(8),
COD_PAY_ETB VARCHAR2(3),
LIB_PAY_ETB VARCHAR2(40),
COD_CPS VARCHAR2(10),
LIB_CPS VARCHAR2(40),
TEM_HAB_RCH_PER VARCHAR2(1) not null,
SOURCE_INSERT_DATE DATE default sysdate,
TEM_RAP_RECU VARCHAR2(1),
SOURCE_INSERT_DATE DATE default sysdate not null
TEM_HAB_RCH_PER VARCHAR2(1) not null,
LIB_CPS VARCHAR2(40),
COD_CPS VARCHAR2(10),
LIB_PAY_ETB VARCHAR2(40),
COD_PAY_ETB VARCHAR2(3),
ACTEUR_ETABLISSEMENT_ID VARCHAR2(8),
INDIVIDU_ID VARCHAR2(4000),
COD_PER NUMBER(8),
LIB_ROJ_COMPL VARCHAR2(21),
COD_ROJ_COMPL VARCHAR2(1 char),
ROLE_ID CHAR,
THESE_ID NUMBER(8),
SOURCE_ID CHAR(6),
SOURCE_CODE VARCHAR2(104),
ID VARCHAR2(104)
)
/
create table SYGAL_DOCTORANT
create table SYGAL_DOCTORANT_V2
(
SOURCE_ID VARCHAR2(50 char),
ID NUMBER(8),
INDIVIDU_ID NUMBER(8),
SOURCE_INSERT_DATE DATE default sysdate,
INE VARCHAR2(12),
SOURCE_INSERT_DATE DATE default sysdate not null
INDIVIDU_ID NUMBER(8),
ID NUMBER(8),
SOURCE_ID CHAR(6),
SOURCE_CODE NUMBER(8)
)
/
create table SYGAL_ECOLE_DOCT
create table SYGAL_ECOLE_DOCT_V2
(
SOURCE_ID VARCHAR2(50 char),
SOURCE_INSERT_DATE DATE default sysdate,
SOURCE_CODE VARCHAR2(4),
STRUCTURE_ID VARCHAR2(4),
ID VARCHAR2(4),
SOURCE_INSERT_DATE DATE default sysdate not null
SOURCE_ID CHAR(6),
ID VARCHAR2(4)
)
/
create table SYGAL_ETABLISSEMENT
create table SYGAL_ETABLISSEMENT_V2
(
SOURCE_ID VARCHAR2(50 char),
STRUCTURE_ID VARCHAR2(8),
SOURCE_INSERT_DATE DATE default sysdate,
ID VARCHAR2(8),
SOURCE_ID CHAR(6),
CODE VARCHAR2(8),
SOURCE_INSERT_DATE DATE default sysdate not null
STRUCTURE_ID VARCHAR2(8),
SOURCE_CODE VARCHAR2(8)
)
/
create table SYGAL_FINANCEMENT
create table SYGAL_FINANCEMENT_V2
(
ID NUMBER,
SOURCE_ID VARCHAR2(50 char),
THESE_ID NUMBER(8) not null,
ANNEE_ID VARCHAR2(4),
ORIGINE_FINANCEMENT_ID VARCHAR2(2),
COMPLEMENT_FINANCEMENT VARCHAR2(4000),
DATE_FIN_FINANCEMENT DATE,
QUOTITE_FINANCEMENT NUMBER(3),
ORIGINE_FINANCEMENT_ID VARCHAR2(2),
CODE_TYPE_FINANCEMENT VARCHAR2(1),
THESE_ID NUMBER(8) not null,
SOURCE_CODE NUMBER,
SOURCE_INSERT_DATE DATE default sysdate,
DATE_DEBUT_FINANCEMENT DATE,
DATE_FIN_FINANCEMENT DATE,
CODE_TYPE_FINANCEMENT varchar2(8),
LIBELLE_TYPE_FINANCEMENT varchar2(100),
SOURCE_INSERT_DATE DATE default sysdate not null
COMPLEMENT_FINANCEMENT VARCHAR2(4000),
LIBELLE_TYPE_FINANCEMENT VARCHAR2(40),
ANNEE_ID VARCHAR2(4),
SOURCE_ID CHAR(6),
ID NUMBER
)
/
create table SYGAL_INDIVIDU
create table SYGAL_INDIVIDU_V2
(
SOURCE_ID VARCHAR2(50 char),
TYPE VARCHAR2(9),
ID VARCHAR2(4000),
SUPANN_ID VARCHAR2(4000),
CIV VARCHAR2(5),
LIB_NOM_PAT_IND VARCHAR2(40),
LIB_NOM_USU_IND VARCHAR2(40),
LIB_PR1_IND VARCHAR2(20),
LIB_PR2_IND VARCHAR2(20),
LIB_PR3_IND VARCHAR2(20),
EMAIL VARCHAR2(4000),
LIB_NAT VARCHAR2(40),
DATE_NAI_IND DATE,
LIB_PR3_IND VARCHAR2(20),
LIB_PR1_IND VARCHAR2(20),
LIB_NOM_PAT_IND VARCHAR2(40),
SUPANN_ID VARCHAR2(4000),
TYPE VARCHAR2(9),
SOURCE_CODE VARCHAR2(4000),
SOURCE_INSERT_DATE DATE default sysdate,
COD_PAY_NAT VARCHAR2(3),
LIB_NAT VARCHAR2(40),
SOURCE_INSERT_DATE DATE default sysdate not null
EMAIL VARCHAR2(4000),
LIB_PR2_IND VARCHAR2(20),
LIB_NOM_USU_IND VARCHAR2(40),
CIV VARCHAR2(5),
ID VARCHAR2(4000),
SOURCE_ID CHAR(6)
)
/
create table SYGAL_ORIGINE_FINANCEMENT
create table SYGAL_ORIGINE_FINANCEMENT_V2
(
ID CHAR(2),
SOURCE_ID VARCHAR2(50 char),
LIB_OFI VARCHAR2(40),
COD_OFI CHAR(2),
ID CHAR(2),
SOURCE_INSERT_DATE DATE default sysdate,
LIC_OFI VARCHAR2(10),
LIB_OFI VARCHAR2(40),
SOURCE_INSERT_DATE DATE default sysdate not null
SOURCE_ID CHAR(6),
SOURCE_CODE CHAR(2)
)
/
create table SYGAL_ROLE
create table SYGAL_ROLE_V2
(
SOURCE_ID VARCHAR2(50 char),
LIC_ROJ VARCHAR2(10),
ID CHAR,
SOURCE_CODE CHAR,
SOURCE_INSERT_DATE DATE default sysdate,
LIB_ROJ VARCHAR2(21),
LIC_ROJ VARCHAR2(10),
SOURCE_INSERT_DATE DATE default sysdate not null
SOURCE_ID CHAR(6)
)
/
create table SYGAL_STRUCTURE
create table SYGAL_STRUCTURE_V2
(
SOURCE_ID VARCHAR2(50 char),
TYPE_STRUCTURE_ID VARCHAR2(15),
ID VARCHAR2(10),
SIGLE VARCHAR2(25),
LIBELLE VARCHAR2(100),
CODE_PAYS VARCHAR2(3),
TYPE_STRUCTURE_ID VARCHAR2(15),
SOURCE_ID CHAR(6),
SOURCE_CODE VARCHAR2(10),
LIBELLE_PAYS VARCHAR2(40),
SOURCE_INSERT_DATE DATE default sysdate not null
CODE_PAYS VARCHAR2(3),
ID VARCHAR2(10),
SOURCE_INSERT_DATE DATE default sysdate,
LIBELLE VARCHAR2(100)
)
/
create table SYGAL_THESE_ANNEE_UNIV
create table SYGAL_THESE_V2
(
SOURCE_INSERT_DATE DATE default sysdate,
CORRECTION_POSSIBLE VARCHAR2(11),
DAT_SOU_THS DATE,
TEM_SOU_AUT_THS VARCHAR2(1),
LIB_PAY VARCHAR2(40),
ECOLE_DOCT_ID VARCHAR2(4),
COD_LNG VARCHAR2(4),
LIB_INT1_DIS VARCHAR2(200),
DAT_FIN_CFD_THS DATE,
DAT_PREV_SOU DATE,
TEM_AVENANT VARCHAR2(1),
SOURCE_ID CHAR(6),
SOURCE_CODE NUMBER(8) not null,
ID NUMBER(8) not null,
UNITE_RECH_ID VARCHAR2(10),
DAT_ABANDON DATE,
CORRECTION_EFFECTUEE VARCHAR2(1),
COD_DIS NUMBER(7),
ETA_RPD_THS VARCHAR2(1),
COD_NEG_TRE VARCHAR2(1),
LIB_ETB_COT VARCHAR2(120),
DAT_DEB_THS DATE,
LIB_THS VARCHAR2(800),
DOCTORANT_ID NUMBER(8),
ETA_THS VARCHAR2(1),
DAT_TRANSFERT_DEP DATE,
DAT_AUT_SOU_THS DATE
)
/
create table SYGAL_THESE_ANNEE_UNIV_V2
(
SOURCE_ID VARCHAR2(50 char),
ID VARCHAR2(45),
THESE_ID NUMBER(8) not null,
SOURCE_ID CHAR(6),
ANNEE_UNIV VARCHAR2(4) not null,
SOURCE_INSERT_DATE DATE default sysdate not null
THESE_ID NUMBER(8) not null,
SOURCE_INSERT_DATE DATE default sysdate,
SOURCE_CODE VARCHAR2(45)
)
/
create table SYGAL_TITRE_ACCES
create table SYGAL_TITRE_ACCES_V2
(
SOURCE_ID VARCHAR2(50 char),
CODE_DEPT_TITRE_ACCES VARCHAR2(100),
ID NUMBER(8) not null,
THESE_ID NUMBER(8) not null,
SOURCE_CODE NUMBER(8) not null,
SOURCE_INSERT_DATE DATE default sysdate,
TITRE_ACCES_INTERNE_EXTERNE VARCHAR2(1),
LIBELLE_TITRE_ACCES VARCHAR2(120),
TYPE_ETB_TITRE_ACCES VARCHAR2(40),
LIBELLE_ETB_TITRE_ACCES VARCHAR2(100),
CODE_DEPT_TITRE_ACCES VARCHAR2(100),
LIBELLE_TITRE_ACCES VARCHAR2(120),
CODE_PAYS_TITRE_ACCES VARCHAR2(3),
SOURCE_INSERT_DATE DATE default sysdate not null
THESE_ID NUMBER(8) not null,
LIBELLE_ETB_TITRE_ACCES VARCHAR2(100),
SOURCE_ID CHAR(6)
)
/
create table SYGAL_UNITE_RECH
create table SYGAL_UNITE_RECH_V2
(
SOURCE_ID VARCHAR2(50 char),
STRUCTURE_ID VARCHAR2(10) not null,
ID VARCHAR2(10) not null,
SOURCE_INSERT_DATE DATE default sysdate not null
SOURCE_ID CHAR(6),
SOURCE_INSERT_DATE DATE default sysdate,
SOURCE_CODE VARCHAR2(10) not null,
STRUCTURE_ID VARCHAR2(10) not null
)
/
create table SYGAL_VARIABLE
create table SYGAL_VARIABLE_V2
(
SOURCE_ID VARCHAR2(50 char),
PAR_VAP VARCHAR2(100),
ID VARCHAR2(20),
DATE_FIN_VALIDITE DATE,
SOURCE_ID CHAR(6),
DATE_DEB_VALIDITE DATE,
SOURCE_CODE VARCHAR2(20),
COD_VAP VARCHAR2(20),
LIB_VAP VARCHAR2(47),
PAR_VAP VARCHAR2(100),
DATE_DEB_VALIDITE DATE,
DATE_FIN_VALIDITE DATE,
SOURCE_INSERT_DATE DATE default sysdate not null
SOURCE_INSERT_DATE DATE default sysdate
)
/
create table SYGAL_THESE
(
SOURCE_ID VARCHAR2(50 char),
ID NUMBER(8) not null,
ETA_THS VARCHAR2(1),
DOCTORANT_ID NUMBER(8),
COD_DIS NUMBER(7),
LIB_INT1_DIS VARCHAR2(200),
LIB_THS VARCHAR2(800),
COD_LNG VARCHAR2(4),
DAT_DEB_THS DATE,
ECOLE_DOCT_ID VARCHAR2(4),
UNITE_RECH_ID VARCHAR2(10),
LIB_PAY VARCHAR2(40),
LIB_ETB_COT VARCHAR2(120),
TEM_AVENANT VARCHAR2(1),
DAT_PREV_SOU DATE,
TEM_SOU_AUT_THS VARCHAR2(1),
DAT_AUT_SOU_THS DATE,
DAT_SOU_THS DATE,
DAT_FIN_CFD_THS DATE,
COD_NEG_TRE VARCHAR2(1),
ETA_RPD_THS VARCHAR2(1),
CORRECTION_POSSIBLE VARCHAR2(11),
CORRECTION_EFFECTUEE VARCHAR2(11),
COD_ANU_PRM_IAE VARCHAR2(20),
DAT_ABANDON DATE,
DAT_TRANSFERT_DEP DATE,
SOURCE_INSERT_DATE DATE default sysdate not null
)
/
This diff is collapsed.
......@@ -66,41 +66,41 @@ create view V_SYGAL_ROLE_TR as
--
-- Vues des seules origines de financement à prendre en compte (éventuellement renommées).
--
create view V_SYGAL_ORIGINE_FINANCEMENT as
with tmp(ID, SOURCE_ID, COD_OFI, LIC_OFI, LIB_OFI) as (
select '10', 'apogee', '10', 'SALARIE', 'Etudiant salarié' from dual union all
select '11', 'apogee', '11', 'SANS FIN', 'Sans financement' from dual union all
select '13', 'apogee', '13', 'DOT EPSCP', 'Dotation des EPSCP' from dual union all
select '14', 'apogee', '14', 'DOT EPST', 'Dotation des EPST' from dual union all
select '15', 'apogee', '15', 'POLYTECH', 'Programmes Spé. Normaliens, Polytechnici' from dual union all
select '16', 'apogee', '16', 'HANDICAP', 'Programme Spécifique Handicap' from dual union all
select '17', 'apogee', '17', 'DEFENSE', 'Ministère de la Défense (dont DGA)' from dual union all
select '18', 'apogee', '18', 'AGRICULTUR', 'Ministère de l''Agriculture' from dual union all
select '19', 'apogee', '19', 'AFF ETRANG', 'Ministère des Affaires Etrangères' from dual union all
select '20', 'apogee', '20', 'SANTE', 'Ministère de la Santé' from dual union all
select '21', 'apogee', '21', 'AUTRES MIN', 'Autres Ministères' from dual union all
select '22', 'apogee', '22', 'DOT EPIC', 'Dotation des EPIC' from dual union all
select '23', 'apogee', '23', 'DOT EPA', 'Dotation des EPA' from dual union all
select '24', 'apogee', '24', 'NORMANDIE', 'Région Normandie' from dual union all
select '25', 'apogee', '25', 'AUT COLLEC', 'Autre Collectivité Territoriale' from dual union all
select '26', 'apogee', '26', 'ANR', 'ANR' from dual union all
select '27', 'apogee', '27', 'IDEX', 'IDEX' from dual union all
select '28', 'apogee', '28', 'PIA', 'Autres dispositifs du PIA (dont LABEX)' from dual union all
select '29', 'apogee', '29', 'AUT AFFPR', 'Autres Finan. Pub. d''Agences Françaises' from dual union all
select '30', 'apogee', '30', 'FI PUB PRV', 'Financements Mixtes Public Privé' from dual union all
select '31', 'apogee', '31', 'CIFRE', 'Conventions CIFRE' from dual union all
select '32', 'apogee', '32', 'PART RECH', 'Partenariat de Recherche' from dual union all
select '33', 'apogee', '33', 'MECENAT', 'Mécénat y compris Fondations et Asso.' from dual union all
select '34', 'apogee', '34', 'ERC', 'ERC' from dual union all
select '35', 'apogee', '35', 'MARIE CURI', 'Actions Marie Sklodowska Curie' from dual union all
select '36', 'apogee', '36', 'ERASMUS', 'ERASMUS' from dual union all
select '37', 'apogee', '37', 'AUT PRO EU', 'Autre Programme Européen' from dual union all
select '38', 'apogee', '38', 'GOUV EUROP', 'Gouvernement Etranger Européen' from dual union all
select '39', 'apogee', '39', 'GOUV NON E', 'Gouvernement Etranger Hors Europe' from dual union all
select '40', 'apogee', '40', 'AUT FI ETR', 'Autres Financements Etrangers' from dual union all
select '41', 'apogee', '41', 'ENT ETR', 'Entreprise Etrangère' from dual union all
select '42', 'apogee', '42', 'ORG FC', 'Financements Organismes FC' from dual union all
select '43', 'apogee', '43', 'ORG INTER', 'Organismes Internationaux' from dual
create or replace view V_SYGAL_ORIGINE_FINANCEMENT_V2 as
with tmp(source_id, COD_OFI, LIC_OFI, LIB_OFI) as (
select 'apogee', '10', 'SALARIE', 'Etudiant salarié' from dual union all
select 'apogee', '11', 'SANS FIN', 'Sans financement' from dual union all
select 'apogee', '13', 'DOT EPSCP', 'Dotation des EPSCP' from dual union all
select 'apogee', '14', 'DOT EPST', 'Dotation des EPST' from dual union all
select 'apogee', '15', 'POLYTECH', 'Programmes Spé. Normaliens, Polytechnici' from dual union all
select 'apogee', '16', 'HANDICAP', 'Programme Spécifique Handicap' from dual union all
select 'apogee', '17', 'DEFENSE', 'Ministère de la Défense (dont DGA)' from dual union all
select 'apogee', '18', 'AGRICULTUR', 'Ministère de l''Agriculture' from dual union all
select 'apogee', '19', 'AFF ETRANG', 'Ministère des Affaires Etrangères' from dual union all
select 'apogee', '20', 'SANTE', 'Ministère de la Santé' from dual union all
select 'apogee', '21', 'AUTRES MIN', 'Autres Ministères' from dual union all
select 'apogee', '22', 'DOT EPIC', 'Dotation des EPIC' from dual union all
select 'apogee', '23', 'DOT EPA', 'Dotation des EPA' from dual union all
select 'apogee', '24', 'NORMANDIE', 'Région Normandie' from dual union all
select 'apogee', '25', 'AUT COLLEC', 'Autre Collectivité Territoriale' from dual union all
select 'apogee', '26', 'ANR', 'ANR' from dual union all
select 'apogee', '27', 'IDEX', 'IDEX' from dual union all
select 'apogee', '28', 'PIA', 'Autres dispositifs du PIA (dont LABEX)' from dual union all
select 'apogee', '29', 'AUT AFFPR', 'Autres Finan. Pub. d''Agences Françaises' from dual union all
select 'apogee', '30', 'FI PUB PRV', 'Financements Mixtes Public Privé' from dual union all
select 'apogee', '31', 'CIFRE', 'Conventions CIFRE' from dual union all
select 'apogee', '32', 'PART RECH', 'Partenariat de Recherche' from dual union all
select 'apogee', '33', 'MECENAT', 'Mécénat y compris Fondations et Asso.' from dual union all
select 'apogee', '34', 'ERC', 'ERC' from dual union all
select 'apogee', '35', 'MARIE CURI', 'Actions Marie Sklodowska Curie' from dual union all
select 'apogee', '36', 'ERASMUS', 'ERASMUS' from dual union all
select 'apogee', '37', 'AUT PRO EU', 'Autre Programme Européen' from dual union all
select 'apogee', '38', 'GOUV EUROP', 'Gouvernement Etranger Européen' from dual union all
select 'apogee', '39', 'GOUV NON E', 'Gouvernement Etranger Hors Europe' from dual union all
select 'apogee', '40', 'AUT FI ETR', 'Autres Financements Etrangers' from dual union all
select 'apogee', '41', 'ENT ETR', 'Entreprise Etrangère' from dual union all
select 'apogee', '42', 'ORG FC', 'Financements Organismes FC' from dual union all
select 'apogee', '43', 'ORG INTER', 'Organismes Internationaux' from dual
)
select * from tmp
select COD_OFI as ID, COD_OFI as SOURCE_CODE, source_id, COD_OFI, LIC_OFI, LIB_OFI from tmp
/
......@@ -17,7 +17,7 @@
-- drop materialized view SYGAL_MV_EMAIL
--/
create materialized view UCBN_SODOCT.SYGAL_MV_EMAIL
create materialized view SYGAL_MV_EMAIL
refresh complete on demand using trusted constraints
as
select sysdate as last_update, tmp.*
......
......@@ -14,99 +14,103 @@
--
-- Vue fournissant les "variables d'environnement" requises.
--
CREATE OR REPLACE VIEW V_SYGAL_VARIABLE AS
CREATE OR REPLACE VIEW "API_SCOLARITE"."V_SYGAL_VARIABLE_V2" ("SOURCE_ID", "SOURCE_CODE", "ID", "COD_VAP", "LIB_VAP", "PAR_VAP", "DATE_DEB_VALIDITE", "DATE_FIN_VALIDITE") AS
select
'physalis' as source_id,
'ETB_LIB' as SOURCE_CODE,
'ETB_LIB' as id,
'ETB_LIB' as cod_vap,
'Nom de l''établissement de référence' as lib_vap,
------------ CORRIGEZ, SVP -----------
'L''Étable ISSEMENT' as par_vap,
--------------------------------------
'Université d''Exemple' as par_vap,
to_date('2017-01-01', 'YYYY-MM-DD') as DATE_DEB_VALIDITE,
to_date('9999-12-31', 'YYYY-MM-DD') as DATE_FIN_VALIDITE
from dual
union all
select
'physalis' as source_id,
'ETB_LIB_NOM_RESP' as SOURCE_CODE,
'ETB_LIB_NOM_RESP' as id,
'ETB_LIB_NOM_RESP' as cod_vap,
'Nom du responsable de l''établissement' as lib_vap,
------------ CORRIGEZ, SVP -----------
'M. Alain Térieur' as par_vap,
--------------------------------------
'Paule Hochon' as par_vap,
to_date('2017-01-01', 'YYYY-MM-DD') as DATE_DEB_VALIDITE,
to_date('9999-12-31', 'YYYY-MM-DD') as DATE_FIN_VALIDITE
from dual
union all
select
'physalis' as source_id,
'ETB_LIB_TIT_RESP' as SOURCE_CODE,
'ETB_LIB_TIT_RESP' as id,
'ETB_LIB_TIT_RESP' as cod_vap,
'Titre du responsable de l''établissement' as lib_vap,
------------ CORRIGEZ, SVP -----------
'Directeur' as par_vap,
--------------------------------------
'Présidente' as par_vap,
to_date('2017-01-01', 'YYYY-MM-DD') as DATE_DEB_VALIDITE,
to_date('9999-12-31', 'YYYY-MM-DD') as DATE_FIN_VALIDITE
from dual
union all
select
'physalis' as source_id,
'ETB_ART_ETB_LIB' as SOURCE_CODE,
'ETB_ART_ETB_LIB' as id,
'ETB_ART_ETB_LIB' as cod_vap,
'Article du nom de l''etb de référence' as lib_vap,
------------ CORRIGEZ, SVP -----------
'Le' as par_vap,
--------------------------------------
'L''' as par_vap,
to_date('2017-01-01', 'YYYY-MM-DD') as DATE_DEB_VALIDITE,
to_date('9999-12-31', 'YYYY-MM-DD') as DATE_FIN_VALIDITE
from dual
union all
select
'physalis' as source_id,
'EMAIL_ASSISTANCE' as SOURCE_CODE,
'EMAIL_ASSISTANCE' as id,
'EMAIL_ASSISTANCE' as cod_vap,
'Adresse mail de l''assistance utilisateur' as lib_vap,
------------ CORRIGEZ, SVP -----------
'assistance-sygal@etable-issement.fr' as par_vap,
--------------------------------------
'assistance-sygal@univ-exemple.fr' as par_vap,
to_date('2017-01-01', 'YYYY-MM-DD') as DATE_DEB_VALIDITE,
to_date('9999-12-31', 'YYYY-MM-DD') as DATE_FIN_VALIDITE
from dual
union all
select
'physalis' as source_id,
'EMAIL_BU' as SOURCE_CODE,
'EMAIL_BU' as id,
'EMAIL_BU' as cod_vap,
'Adresse mail de contact de la BU' as lib_vap,
------------ CORRIGEZ, SVP -----------
'bu@etable-issement.fr' as par_vap,
--------------------------------------
'bu-sygal@univ-exemple.fr' as par_vap,
to_date('2017-01-01', 'YYYY-MM-DD') as DATE_DEB_VALIDITE,
to_date('9999-12-31', 'YYYY-MM-DD') as DATE_FIN_VALIDITE
from dual
union all
select
'physalis' as source_id,
'EMAIL_BDD' as SOURCE_CODE,
'EMAIL_BDD' as id,
'EMAIL_BDD' as cod_vap,
'Adresse mail de contact de la Maison des doctorats' as lib_vap,
------------ CORRIGEZ, SVP -----------
'doctorat@etable-issement.fr' as par_vap,
--------------------------------------
'Adresse mail de contact du bureau des doctorats' as lib_vap,
'doctorat-sygal@univ-exemple.fr' as par_vap,
to_date('2017-01-01', 'YYYY-MM-DD') as DATE_DEB_VALIDITE,
to_date('9999-12-31', 'YYYY-MM-DD') as DATE_FIN_VALIDITE
from dual
;
union all
select
'physalis' as source_id,
'TRIBUNAL_COMPETENT' as SOURCE_CODE,
'TRIBUNAL_COMPETENT' as id,
'TRIBUNAL_COMPETENT' as cod_vap,
'Tribunal compétent' as lib_vap,
'Le Tribunal Administratif d''Exemple' as par_vap,
to_date('1900-01-01', 'YYYY-MM-DD') as DATE_DEB_VALIDITE,
to_date('9999-12-31', 'YYYY-MM-DD') as DATE_FIN_VALIDITE
from dual
/
--------------------------------------------------------------------------------
--
-- Vues des seules origines de financement à prendre en compte (éventuellement renommées).
--
CREATE OR REPLACE FORCE EDITIONABLE VIEW "API_SCOLARITE"."V_SYGAL_ORIGINE_FINANCEMENT" ("ID", "SOURCE_ID", "COD_OFI", "LIC_OFI", "LIB_OFI") AS
with tmp(ID, SOURCE_ID, COD_OFI, LIC_OFI, LIB_OFI) as (
CREATE OR REPLACE VIEW "API_SCOLARITE"."V_SYGAL_ORIGINE_FINANCEMENT_V2" ("ID", "SOURCE_CODE", "SOURCE_ID", "COD_OFI", "LIC_OFI", "LIB_OFI") AS
with tmp(ID, SOURCE_ID, COD_OFI, LIC_OFI, LIB_OFI) as (