From 7f63688a2f90a3d9748275d96458655f76f7e4bf Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Mon, 24 Aug 2015 15:20:50 +0200 Subject: [PATCH] New version 0.9.2 --- Makefile | 3 ++- NEWS.md | 4 ++++ scripts-available/CDB_CartodbfyTable.sql | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 134d78c..9c4d9af 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # cartodb/Makefile EXTENSION = cartodb -EXTVERSION = 0.9.1 +EXTVERSION = 0.9.2 SED = sed @@ -44,6 +44,7 @@ UPGRADABLE = \ 0.8.2 \ 0.9.0 \ 0.9.1 \ + 0.9.2 \ $(EXTVERSION)dev \ $(EXTVERSION)next \ $(END) diff --git a/NEWS.md b/NEWS.md index ff07482..ae2fc43 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +0.9.2 (2015-08-24) +------------------ +* Fix for `the_geom` column present but not SRID (EWKT) and other corner cases [#121](https://github.com/CartoDB/cartodb-postgresql/pull/121) + 0.9.1 (2015-08-19) ------------------ * Fix for transformation to webmercator in corner cases [#116](https://github.com/CartoDB/cartodb-postgresql/issues/116) diff --git a/scripts-available/CDB_CartodbfyTable.sql b/scripts-available/CDB_CartodbfyTable.sql index 2c8cf3e..1dc1ac1 100644 --- a/scripts-available/CDB_CartodbfyTable.sql +++ b/scripts-available/CDB_CartodbfyTable.sql @@ -98,7 +98,7 @@ BEGIN ELSIF rec.seq IS NULL THEN -- }{ RAISE NOTICE 'Existing cartodb_id field does not have an associated sequence, renaming'; ELSE -- }{ - sql := Format('ALTER TABLE %s ALTER COLUMN cartodb_id SET NOT NULL', reloid::text); + sql := Format('ALTER TABLE %s ALTER COLUMN cartodb_id SET NOT NULL', reloid::text); IF NOT EXISTS ( SELECT c.conname FROM pg_constraint c, pg_attribute a WHERE c.conkey = ARRAY[a.attnum] AND c.conrelid = reloid AND a.attrelid = reloid @@ -127,7 +127,7 @@ BEGIN LOOP --{ new_name := '_cartodb_id' || i; BEGIN - sql := Format('ALTER TABLE %s RENAME COLUMN cartodb_id TO %I', reloid::text, new_name); + sql := Format('ALTER TABLE %s RENAME COLUMN cartodb_id TO %I', reloid::text, new_name); RAISE DEBUG 'Running %', sql; EXECUTE sql; EXCEPTION