Migration scripts for client
This commit is contained in:
parent
b7c9ff8dac
commit
24df64681d
@ -6,3 +6,14 @@
|
|||||||
SET search_path = "$user",cartodb,public,cdb_dataservices_client;
|
SET search_path = "$user",cartodb,public,cdb_dataservices_client;
|
||||||
|
|
||||||
-- HERE goes your code to upgrade/downgrade
|
-- HERE goes your code to upgrade/downgrade
|
||||||
|
-- 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 cdb_dataservices_client.geomval AS (
|
||||||
|
geom geometry,
|
||||||
|
val double precision
|
||||||
|
);
|
||||||
|
END IF;
|
||||||
|
END$$;
|
@ -6,3 +6,9 @@
|
|||||||
SET search_path = "$user",cartodb,public,cdb_dataservices_client;
|
SET search_path = "$user",cartodb,public,cdb_dataservices_client;
|
||||||
|
|
||||||
-- HERE goes your code to upgrade/downgrade
|
-- HERE goes your code to upgrade/downgrade
|
||||||
|
-- PG12_DEPRECATED
|
||||||
|
-- Create geomval if it doesn't exist (in postgis 3+ it only exists in postgis_raster)
|
||||||
|
DO $$
|
||||||
|
BEGIN
|
||||||
|
DROP TYPE IF EXISTS cdb_dataservices_client.geomval RESTRICT;
|
||||||
|
END$$;
|
Loading…
Reference in New Issue
Block a user