Merge pull request #161 from CartoDB/160-add-drop-function-if-exists

Add DROP FUNCTION back to allow migrations #160
This commit is contained in:
Rafa de la Torre
2015-09-24 18:26:30 +02:00
3 changed files with 7 additions and 1 deletions
+2 -1
View File
@@ -1,7 +1,7 @@
# cartodb/Makefile # cartodb/Makefile
EXTENSION = cartodb EXTENSION = cartodb
EXTVERSION = 0.10.1 EXTVERSION = 0.10.2
SED = sed SED = sed
@@ -49,6 +49,7 @@ UPGRADABLE = \
0.9.4 \ 0.9.4 \
0.10.0 \ 0.10.0 \
0.10.1 \ 0.10.1 \
0.10.2 \
$(EXTVERSION)dev \ $(EXTVERSION)dev \
$(EXTVERSION)next \ $(EXTVERSION)next \
$(END) $(END)
+4
View File
@@ -1,6 +1,10 @@
next (2015-mm-dd) 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) 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) * Get back the `update_updated_at` function (still used by old tables) [#143](https://github.com/CartoDB/cartodb-postgresql/pull/143)
+1
View File
@@ -5,6 +5,7 @@
-- --
-- Currently accepted permissions are: 'public', 'private' or 'all' -- 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') CREATE OR REPLACE FUNCTION CDB_UserTables(perm text DEFAULT 'all')
RETURNS SETOF name RETURNS SETOF name
AS $$ AS $$