From ac53d6b0005db6426c12279233ed5e136db9b183 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 30 May 2014 12:22:54 +0200 Subject: [PATCH] Formatting only change --- scripts-available/CDB_CartodbfyTable.sql | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts-available/CDB_CartodbfyTable.sql b/scripts-available/CDB_CartodbfyTable.sql index 72cd4ad..1c9157e 100644 --- a/scripts-available/CDB_CartodbfyTable.sql +++ b/scripts-available/CDB_CartodbfyTable.sql @@ -100,9 +100,9 @@ BEGIN AND a.attname = 'cartodb_id' INTO STRICT rec; -- 20=int2, 21=int4, 23=int8 - IF rec.oid NOT IN (20,21,23) THEN + IF rec.oid NOT IN (20,21,23) THEN -- { RAISE NOTICE 'Existing cartodb_id field is of invalid type % (need int2, int4 or int8), renaming', rec.typname; - 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'; ELSE -- }{ sql := 'ALTER TABLE ' || reloid::text || ' ALTER COLUMN cartodb_id SET NOT NULL'; @@ -191,7 +191,8 @@ BEGIN END IF; -- We need created_at and updated_at - FOR rec IN SELECT * FROM ( VALUES ('created_at'), ('updated_at') ) t(cname) LOOP --{ + FOR rec IN SELECT * FROM ( VALUES ('created_at'), ('updated_at') ) t(cname) + LOOP --{ new_name := null; << column_setup >> LOOP --{