New version 0.9.2
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# cartodb/Makefile
|
# cartodb/Makefile
|
||||||
|
|
||||||
EXTENSION = cartodb
|
EXTENSION = cartodb
|
||||||
EXTVERSION = 0.9.1
|
EXTVERSION = 0.9.2
|
||||||
|
|
||||||
SED = sed
|
SED = sed
|
||||||
|
|
||||||
@@ -44,6 +44,7 @@ UPGRADABLE = \
|
|||||||
0.8.2 \
|
0.8.2 \
|
||||||
0.9.0 \
|
0.9.0 \
|
||||||
0.9.1 \
|
0.9.1 \
|
||||||
|
0.9.2 \
|
||||||
$(EXTVERSION)dev \
|
$(EXTVERSION)dev \
|
||||||
$(EXTVERSION)next \
|
$(EXTVERSION)next \
|
||||||
$(END)
|
$(END)
|
||||||
|
|||||||
@@ -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)
|
0.9.1 (2015-08-19)
|
||||||
------------------
|
------------------
|
||||||
* Fix for transformation to webmercator in corner cases [#116](https://github.com/CartoDB/cartodb-postgresql/issues/116)
|
* Fix for transformation to webmercator in corner cases [#116](https://github.com/CartoDB/cartodb-postgresql/issues/116)
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ BEGIN
|
|||||||
ELSIF rec.seq IS NULL THEN -- }{
|
ELSIF rec.seq IS NULL THEN -- }{
|
||||||
RAISE NOTICE 'Existing cartodb_id field does not have an associated sequence, renaming';
|
RAISE NOTICE 'Existing cartodb_id field does not have an associated sequence, renaming';
|
||||||
ELSE -- }{
|
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
|
IF NOT EXISTS ( SELECT c.conname FROM pg_constraint c, pg_attribute a
|
||||||
WHERE c.conkey = ARRAY[a.attnum] AND c.conrelid = reloid
|
WHERE c.conkey = ARRAY[a.attnum] AND c.conrelid = reloid
|
||||||
AND a.attrelid = reloid
|
AND a.attrelid = reloid
|
||||||
@@ -127,7 +127,7 @@ BEGIN
|
|||||||
LOOP --{
|
LOOP --{
|
||||||
new_name := '_cartodb_id' || i;
|
new_name := '_cartodb_id' || i;
|
||||||
BEGIN
|
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;
|
RAISE DEBUG 'Running %', sql;
|
||||||
EXECUTE sql;
|
EXECUTE sql;
|
||||||
EXCEPTION
|
EXCEPTION
|
||||||
|
|||||||
Reference in New Issue
Block a user