Create the type geomval
if not exist
Related to https://github.com/CartoDB/cartodb-platform/issues/6237
This commit is contained in:
parent
d5b0d86997
commit
b2a06c6ed6
11
server/extension/sql/05_postgis3_adapter.sql
Normal file
11
server/extension/sql/05_postgis3_adapter.sql
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
-- PG12_DEPRECATED
|
||||||
|
-- Create geomval if it doesn't exist (in postgis 3+ it only exists in postgis_raster)
|
||||||
|
DO $$
|
||||||
|
BEGIN
|
||||||
|
IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'geomval') THEN
|
||||||
|
CREATE TYPE geomval AS (
|
||||||
|
geom geometry,
|
||||||
|
val double precision
|
||||||
|
);
|
||||||
|
END IF;
|
||||||
|
END$$;
|
Loading…
Reference in New Issue
Block a user