changeset 1110:ed8fbbc48440

Add demo-data for published OGC services
author Tom Gottfried <tom@intevation.de>
date Mon, 05 Nov 2018 15:08:28 +0100
parents 74a75a5ce770
children ca754bdfae00
files schema/demo-data/published_services.sql schema/install-db.sh
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/schema/demo-data/published_services.sql	Mon Nov 05 15:08:28 2018 +0100
@@ -0,0 +1,6 @@
+INSERT INTO sys_admin.published_services (name) VALUES
+    ('waterway.fairway_dimensions'),
+    ('waterway.distance_marks_geoserver'),
+    ('waterway.sounding_results_contour_lines_geoserver'),
+    ('waterway.bottlenecks'),
+    ('waterway.bottleneck_overview')
--- a/schema/install-db.sh	Mon Nov 05 13:07:16 2018 +0100
+++ b/schema/install-db.sh	Mon Nov 05 15:08:28 2018 +0100
@@ -122,9 +122,10 @@
        -f "$BASEDIR/std_login_roles.sql"
 
   if [[ $demo -eq 1 ]] ; then
-    psql -qv ON_ERROR_STOP= -p "$port" \
+    psql -qv ON_ERROR_STOP= -p "$port" -d "$db" \
          -f "$BASEDIR/demo-data/responsibility_areas.sql" \
-         -f "$BASEDIR/demo-data/users.sql" -d "$db"
+         -f "$BASEDIR/demo-data/users.sql" \
+         -f "$BASEDIR/demo-data/published_services.sql"
     psql -q -p "$port" -f "$BASEDIR/demo-data/roles.sql" \
          -d "$db"
   fi