Add DROP FUNCTION back to allow migrations #160

This commit is contained in:
Rafa de la Torre 2015-09-24 17:54:47 +02:00
parent 255618f57d
commit 567e815fd0
3 changed files with 7 additions and 1 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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 $$