2020-01-14 20:34:02 +08:00
|
|
|
--DO NOT MODIFY THIS FILE, IT IS GENERATED AUTOMATICALLY FROM SOURCES
|
|
|
|
-- Complain if script is sourced in psql, rather than via CREATE EXTENSION
|
2020-03-09 18:15:23 +08:00
|
|
|
\echo Use "ALTER EXTENSION cdb_dataservices_client UPDATE TO '0.29.0'" to load this file. \quit
|
2020-01-14 20:34:02 +08:00
|
|
|
|
|
|
|
-- Make sure we have a sane search path to create/update the extension
|
|
|
|
SET search_path = "$user",cartodb,public,cdb_dataservices_client;
|
|
|
|
|
|
|
|
-- HERE goes your code to upgrade/downgrade
|
2020-04-07 18:26:51 +08:00
|
|
|
|
|
|
|
-- Create cdb_dataservices_client.geomval if it doesn't exist (in postgis 3+ it only exists in postgis_raster)
|
2020-03-17 18:20:47 +08:00
|
|
|
DO $$
|
|
|
|
BEGIN
|
|
|
|
IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'geomval') THEN
|
|
|
|
CREATE TYPE cdb_dataservices_client.geomval AS (
|
|
|
|
geom geometry,
|
|
|
|
val double precision
|
|
|
|
);
|
|
|
|
END IF;
|
2020-04-07 18:26:51 +08:00
|
|
|
END$$;
|