From 567e815fd0c6e1b2cf40e37cac61b74533b35be3 Mon Sep 17 00:00:00 2001 From: Rafa de la Torre Date: Thu, 24 Sep 2015 17:54:47 +0200 Subject: [PATCH] Add DROP FUNCTION back to allow migrations #160 --- Makefile | 3 ++- NEWS.md | 4 ++++ scripts-available/CDB_UserTables.sql | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 107e94a..f18ce74 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # cartodb/Makefile EXTENSION = cartodb -EXTVERSION = 0.10.1 +EXTVERSION = 0.10.2 SED = sed @@ -49,6 +49,7 @@ UPGRADABLE = \ 0.9.4 \ 0.10.0 \ 0.10.1 \ + 0.10.2 \ $(EXTVERSION)dev \ $(EXTVERSION)next \ $(END) diff --git a/NEWS.md b/NEWS.md index 6a1bdbf..b9df9ea 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,6 +1,10 @@ next (2015-mm-dd) ----------------- +0.10.2 (2015-09-24) +------------------- +* Add back the `DROP FUNCTION IF EXISTS CDB_UserTables(text);` to be able to upgrade from `0.7.3` upward [#160](https://github.com/CartoDB/cartodb-postgresql/issues/160) + 0.10.1 (2015-09-16) ------------------- * Get back the `update_updated_at` function (still used by old tables) [#143](https://github.com/CartoDB/cartodb-postgresql/pull/143) diff --git a/scripts-available/CDB_UserTables.sql b/scripts-available/CDB_UserTables.sql index 7d65965..24d797c 100644 --- a/scripts-available/CDB_UserTables.sql +++ b/scripts-available/CDB_UserTables.sql @@ -5,6 +5,7 @@ -- -- Currently accepted permissions are: 'public', 'private' or 'all' -- +DROP FUNCTION IF EXISTS CDB_UserTables(text); CREATE OR REPLACE FUNCTION CDB_UserTables(perm text DEFAULT 'all') RETURNS SETOF name AS $$