From c756fafd9d61d7f2aed4f0c127314b9eb7ffac0e Mon Sep 17 00:00:00 2001 From: Claus Nagel Date: Thu, 7 Nov 2024 07:40:25 +0100 Subject: [PATCH] updated 3DCityDB SQL scripts to 5.0.0-beta.1 --- .../docker-scripts/3dcitydb-initdb.sh | 22 +++++++---- .../postgresql/sql-scripts/schema/schema.sql | 39 +++++++++---------- 2 files changed, 34 insertions(+), 27 deletions(-) diff --git a/resources/3dcitydb/postgresql/docker-scripts/3dcitydb-initdb.sh b/resources/3dcitydb/postgresql/docker-scripts/3dcitydb-initdb.sh index 3f82743f..a4f59567 100644 --- a/resources/3dcitydb/postgresql/docker-scripts/3dcitydb-initdb.sh +++ b/resources/3dcitydb/postgresql/docker-scripts/3dcitydb-initdb.sh @@ -44,6 +44,13 @@ else fi fi +# CHANGELOG ------------------------------------------------------------------- +if [ -z ${CHANGELOG+x} ]; then + CHANGELOG="no" +else + CHANGELOG="$CHANGELOG" +fi + # Add PostGIS raster extension ------------------------------------------------ # Get major version from POSTGIS_VERSION, POSTGIS_MAJOR may return string postgis_major=$( echo $POSTGIS_VERSION | cut -f1 -d '.' ) @@ -74,7 +81,7 @@ echo echo "Setting up 3DCityDB database schema in database '$POSTGRES_DB' ..." "${psql[@]}" -d "$POSTGRES_DB" -f "create-db.sql" \ - -v srid="$SRID" -v srs_name="$SRS_NAME" > /dev/null + -v srid="$SRID" -v srs_name="$SRS_NAME" -v changelog="$CHANGELOG" > /dev/null echo "Setting up 3DCityDB database schema in database '$POSTGRES_DB' ...done!" @@ -90,12 +97,13 @@ cat <