Fix for upgrade issue from 0.7.4 to 0.8.0

This fixes the following problem found during testing:
```
ALTER EXTENSION cartodb UPDATE TO '0.8.0';
ERROR:  cannot change return type of existing function
HINT:  Use DROP FUNCTION cdb_usertables(text) first.
```
This commit is contained in:
Rafa de la Torre
2015-06-30 12:17:46 +02:00
parent 0045fb20e8
commit a6fd829669

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