Skip to content

Commit

Permalink
feat(install): add call to .sql in install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Vergez committed Oct 12, 2022
1 parent 7a2830f commit 87b9ff6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 87b9ff6

Please sign in to comment.