Fix functions schema

This commit is contained in:
Javier Goizueta 2017-03-21 16:17:39 +01:00
parent 63c03894cc
commit cf7460c27d

View File

@ -17,7 +17,7 @@ RETURNS JSON AS $$
$$ LANGUAGE SQL STABLE SECURITY DEFINER; $$ LANGUAGE SQL STABLE SECURITY DEFINER;
CREATE OR REPLACE CREATE OR REPLACE
FUNCTION cartodb.CDB_Conf_SetConf(key text, value JSON) FUNCTION cdb_dataservices_server.CDB_Conf_SetConf(key text, value JSON)
RETURNS void AS $$ RETURNS void AS $$
BEGIN BEGIN
PERFORM cartodb.CDB_Conf_RemoveConf(key); PERFORM cartodb.CDB_Conf_RemoveConf(key);
@ -26,7 +26,7 @@ END
$$ LANGUAGE PLPGSQL VOLATILE; $$ LANGUAGE PLPGSQL VOLATILE;
CREATE OR REPLACE CREATE OR REPLACE
FUNCTION cartodb.CDB_Conf_RemoveConf(key text) FUNCTION cdb_dataservices_server.CDB_Conf_RemoveConf(key text)
RETURNS void AS $$ RETURNS void AS $$
BEGIN BEGIN
EXECUTE 'DELETE FROM cartodb.CDB_CONF WHERE KEY = $1;' USING key; EXECUTE 'DELETE FROM cartodb.CDB_CONF WHERE KEY = $1;' USING key;