From 944bc8c3ffaf8b58c99be989beb2d7b377af2c47 Mon Sep 17 00:00:00 2001 From: manmorjim Date: Mon, 2 Mar 2020 09:09:10 +0100 Subject: [PATCH] Create the type `geomval` in the extension schema Having it as public.geomval means that we would block ourselves from installing `postgis_raster` if this extension is installed. --- client/sql/05_utils.sql | 2 +- server/extension/sql/05_postgis3_adapter.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/sql/05_utils.sql b/client/sql/05_utils.sql index d766a3b..582a5d0 100644 --- a/client/sql/05_utils.sql +++ b/client/sql/05_utils.sql @@ -25,7 +25,7 @@ $f$ LANGUAGE sql IMMUTABLE; DO $$ BEGIN IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'geomval') THEN - CREATE TYPE geomval AS ( + CREATE TYPE cdb_dataservices_client.geomval AS ( geom geometry, val double precision ); diff --git a/server/extension/sql/05_postgis3_adapter.sql b/server/extension/sql/05_postgis3_adapter.sql index 4facb46..addad2e 100644 --- a/server/extension/sql/05_postgis3_adapter.sql +++ b/server/extension/sql/05_postgis3_adapter.sql @@ -3,7 +3,7 @@ DO $$ BEGIN IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'geomval') THEN - CREATE TYPE geomval AS ( + CREATE TYPE cdb_dataservices_server.geomval AS ( geom geometry, val double precision );