Commit 4d045fa8 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Mise à jour des scripts d'install de la bdd

parent 9d017270
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -212,7 +212,7 @@ replacePgDatabaseAndUserInScript $OUTPUT_FILE
echo "> $OUTPUT_FILE"

#
# other data
# other data : roles sans structure liée
#
i=$((i+1))
OUTPUT_FILE=$OUTPUT_DIR/sql/02_other/$(printf "%02d_%s.sql" $i $NAME_INSERT_DATA)
@@ -222,6 +222,17 @@ psql -c "copy (select * from role where structure_id is null) to STDOUT with (FO
printf "\.\n" >> $OUTPUT_FILE
echo "> $OUTPUT_FILE"

#
# other data : fichiers communs ayant un id permanent (ex : CHARTE-DE-DEPOT-ET-DIFFUSION-DES-THESES)
#
i=$((i+1))
OUTPUT_FILE=$OUTPUT_DIR/sql/02_other/$(printf "%02d_%s.sql" $i $NAME_INSERT_DATA)
# role
printf "copy fichier from stdin with (FORMAT CSV, delimiter '|', HEADER);\n" > $OUTPUT_FILE && \
psql -c "copy (select f.* from fichier f, nature_fichier nf where f.permanent_id is not null and nature_id = nf.id and nf.code = 'COMMUNS') to STDOUT with (FORMAT CSV, delimiter '|', HEADER);" >> $OUTPUT_FILE && \
printf "\.\n" >> $OUTPUT_FILE
echo "> $OUTPUT_FILE"

#
# prepare data
#
+759 −244

File changed.

Preview size limit exceeded, changes collapsed.

+2972 −1823

File changed.

Preview size limit exceeded, changes collapsed.

+9 −4
Original line number Diff line number Diff line
copy role from stdin with (FORMAT CSV, delimiter '|', HEADER);
id|code|libelle|source_code|source_id|role_id|is_default|ldap_filter|attrib_auto|these_dep|histo_createur_id|histo_creation|histo_modificateur_id|histo_modification|histo_destructeur_id|histo_destruction|structure_id|type_structure_dependant_id|ordre_affichage
506|OBSERVATOIRE|Observatoire|SyGAL::OBSERVATOIRE|1|Observatoire|||f|f|1|2019-11-05 08:59:16|1|2019-11-05 08:59:23|||||zzz
3663|GEST_UR|Gestionnaire Unité de recherche|SyGAL::GEST_UR_SyGAL::66db06d340815|1|Gestionnaire Unité de recherche SYGAL::sygal|f||f|f|27965|2024-09-06 15:42:43|27965|2024-09-06 15:42:43|||||zzz
3683|GEST_UR|Gestionnaire Unité de recherche|SyGAL::GEST_UR_SyGAL::66e03f67c0bb6|1|Gestionnaire Unité de recherche SYGAL::sygal|f||f|f|27965|2024-09-10 14:45:27|27965|2024-09-10 14:45:27|||||zzz
3703|GEST_UR|Gestionnaire Unité de recherche|SyGAL::GEST_UR_SyGAL::66f529a36beb4|1|Gestionnaire Unité de recherche SYGAL::sygal|f||f|f|1461|2024-09-26 11:30:11|1461|2024-09-26 11:30:11|||||zzz
3723|GEST_UR|Gestionnaire Unité de recherche|SyGAL::GEST_UR_SyGAL::66f529e545350|1|Gestionnaire Unité de recherche SYGAL::sygal|f||f|f|1461|2024-09-26 11:31:17|1461|2024-09-26 11:31:17|||||zzz
3743|GEST_UR|Gestionnaire Unité de recherche|SyGAL::GEST_UR_SyGAL::6704f4bacbbb0|1|Gestionnaire Unité de recherche SYGAL::sygal|f||f|f|27965|2024-10-08 11:00:42|27965|2024-10-08 11:00:42|||||zzz
3803|GEST_UR|Gestionnaire Unité de recherche|SyGAL::GEST_UR_SyGAL::6708c727377a9|1|Gestionnaire Unité de recherche SYGAL::sygal|f||f|f|27965|2024-10-11 08:35:19|27965|2024-10-11 08:35:19|||||zzz
1101|user|Authentifié·e|user|1|user|f||f|f|1|2020-11-03 14:41:51|1||||||a
241|OBSERV|Observateur|COMUE::OBSERV|1|Observateur COMUE|f||f|f|1|2018-09-18 09:15:46|1|2018-09-18 09:15:46|||||yy
1|ADMIN_TECH|Administrateur technique|ADMIN_TECH|1|Administrateur technique|f||f|f|1|2018-07-12 11:17:12|1|2018-07-12 11:17:12|||||zzz
2763|GEST_FORMATION|Gestionnaire de formation|SYGAL::GEST_FORMATION|1|Gestionnaire de formation|f||f|f|1|2022-07-12 13:30:43.510998||||||1|formation_aaa
2762|FORMATEUR|Formateur·trice|SYGAL::FORMATEUR|1|Formateur·trice|f||f|f|1|2022-07-12 13:30:43.510998|||||||formation_aab
241|OBSERV|Observateur|OBSERV|1|Observateur COMUE|f||f|f|1|2018-09-18 09:15:46|1|2018-09-18 09:15:46|||||yy
506|OBSERVATOIRE|Observatoire|OBSERVATOIRE|1|Observatoire|f||f|f|1|2019-11-05 08:59:16|1|2019-11-05 08:59:23|||||zzz
2762|FORMATEUR|Formateur·trice|FORMATEUR|1|Formateur·trice|f||f|f|1|2022-07-12 13:30:43.510998|||||||formation_aab
4000|ADMISSION_CANDIDAT|Candidat|ADMISSION_CANDIDAT|1|Candidat|f||t|f|1|2024-03-14 13:21:02.082939|1||||||zzz
4001|ADMISSION_DIRECTEUR_THESE|Potentiel directeur de thèse|ADMISSION_DIRECTEUR_THESE|1|Potentiel directeur de thèse|f||t|f|1|2024-03-14 13:21:02.082939|1||||||zzz
4002|ADMISSION_CODIRECTEUR_THESE|Potentiel co-directeur de thèse|ADMISSION_CODIRECTEUR_THESE|1|Potentiel co-directeur de thèse|f||t|f|1|2024-03-14 13:21:02.082939|1||||||zzz
+12 −0
Original line number Diff line number Diff line
copy fichier from stdin with (FORMAT CSV, delimiter '|', HEADER);
id|uuid|nature_id|nom|nom_original|type_mime|taille|description|version_fichier_id|histo_creation|histo_createur_id|histo_modification|histo_modificateur_id|histo_destruction|histo_destructeur_id|permanent_id
2221|b0a20575-1c5e-411d-86cc-32b03548b92e|22|CHARTE-DE-DEPOT-ET-DIFFUSION-DES-THESES-VALIDE-20180921-b0a20575-COMMUNS.pdf|Charte de depot et diffusion des theses valide 20180921.pdf|application/pdf|211944||3|2019-08-28 09:50:08|1442|2019-08-28 09:50:08|1442|||CHARTE_DEPOT_DIFFUSION_THESE
11321|d2d628ff-7c63-4477-8ebf-5fd555e29fae|22|SYGAL---DELEGATION-DE-SIGNATURE-AU-PRESIDENT-DU-JURY-DE-SOUTENANCE-DE-THESE-d2d628ff-DIVERS.docx|SyGAL - Délégation de signature au Président du jury de soutenance de thèse.docx|application/vnd.openxmlformats-officedocument.wordprocessingml.document|60469||3|2020-06-09 12:56:02|2681|2020-06-09 12:56:02|2681|||DEMANDE_DELEGATION_SIGNATURE
11322|1b28305e-485c-40e3-a56a-afc4001fdac0|22|SYGAL---DEMANDE-DELOCALISATION-SOUTENANCE-THESE-1b28305e-DIVERS.docx|SyGAL - Demande_délocalisation_soutenance_these.docx|application/vnd.openxmlformats-officedocument.wordprocessingml.document|69036||3|2020-06-09 12:56:37|2681|2020-06-09 12:56:37|2681|||DEMANDE_DELOCALISATION_SOUTENANCE
11324|4e79c1fe-1523-4404-8c9a-7cb689292a6a|22|SYGAL---DEMANDE-DE-CONFIDENTIALITE-DE-SOUTENANCE-DE-THESE-4e79c1fe-DIVERS.docx|SyGAL - Demande de confidentialité de soutenance de thèse.docx|application/vnd.openxmlformats-officedocument.wordprocessingml.document|64644||3|2020-06-09 12:57:41|2681|2020-06-09 12:57:41|2681|||DEMANDE_DE_CONFIDENTIALITE
11325|860ec254-551b-4f1f-a2c1-9852ccd847ed|22|SYGAL-FORMULAIRE-DEMANDE-LABEL-EUROPEEN-27-05-860ec254-DIVERS.rtf|SYGAL Formulaire_demande_label_europeen 27 05.rtf|application/msword|245742||3|2020-06-09 12:58:05|2681|2020-06-09 12:58:05|2681|||DEMANDE_LABEL_EUROPEEN
17688|34df2aba-45c0-4ba6-bb46-968e6e3c631a|22|RAPPORT-ANNUEL-DOCTORANT-REGION-2020-34df2aba-COMMUNS.docx|rapport-annuel-doctorant Région 2020.docx|application/vnd.openxmlformats-officedocument.wordprocessingml.document|101226||3|2021-03-11 13:58:24|1442|2021-03-11 13:58:24|1442|||RAPPORT_ANNUEL_MODELE
101358|b754028a-1a1e-4bae-b71b-5e68a2a2b399|22|RAPPORT-D-ACTIVITE-ANNUEL-2022---V2-b754028a-COMMUNS.docx|Rapport d'activité annuel 2022 - v2.docx|application/vnd.openxmlformats-officedocument.wordprocessingml.document|986557||3|2022-05-09 15:22:22|1442|2022-05-09 15:22:22|1442|||RAPPORT_ACTIVITE_ANNUEL
101359|fcba3ff1-7e4c-4c36-89d3-521fd443c82f|22|RAPPORT-DE-FIN-DE-CONTRAT-DE-THESE-2022---V1-fcba3ff1-COMMUNS.docx|Rapport de fin de contrat de thèse 2022 - v1.docx|application/vnd.openxmlformats-officedocument.wordprocessingml.document|984282||3|2022-05-09 15:22:22|1442|2022-05-09 15:22:22|1442|||RAPPORT_ACTIVITE_FINTHESE
373718|fdb96856-4314-4ae8-ba81-5d0bead6885b|22|CHARTE-DU-DOCTORAT-fdb96856-COMMUNS.pdf|Charte du doctorat.pdf|application/pdf|343190||3|2024-03-14 14:34:35|143423|2024-03-14 14:34:35|143423|||CHARTE_DOCTORAT
\.
Loading