From 87b9ff619dace628296f86425983a3ec1ed44556 Mon Sep 17 00:00:00 2001 From: Maxime Vergez Date: Wed, 12 Oct 2022 16:06:10 +0200 Subject: [PATCH] feat(install): add call to .sql in install.sh --- install_db.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install_db.sh b/install_db.sh index 04fd0fa9c..bf28f88a1 100755 --- a/install_db.sh +++ b/install_db.sh @@ -413,6 +413,11 @@ if ! database_exists $db_name -f data/atlas/12.atlas.t_mailles_territoire.sql \ -v type_maille=$type_maille &>> log/install_db.log echo "[$(date +'%H:%M:%S')] Passed - Duration : $((($SECONDS-$time_temp)/60))m$((($SECONDS-$time_temp)%60))s" + + echo "[$(date +'%H:%M:%S')] Creating atlas.vm_l_areas, atlas.vm_bib_areas_types, atlas.vm_cor_area_observation ..." + export PGPASSWORD=$owner_atlas_pass;psql -d $db_name -U $owner_atlas -h $db_host \ + -f data/atlas_with_extended_areas.sql &>> log/install_db.log + echo "[$(date +'%H:%M:%S')] Passed - Duration : $((($SECONDS-$time_temp)/60))m$((($SECONDS-$time_temp)%60))s" fi # FR: Création de la vue matérialisée vm_mailles_observations (nombre d'observations par maille et par taxon) # EN: Creation of the materialized view vm_meshes_observations (number of observations per mesh and per taxon)