Add _redis_conf_params type alter

In order to add or remove redis_host attribute to upgrade/downgrade path
This commit is contained in:
Luis Bosque
2016-02-17 18:24:12 +01:00
committed by Mario de Frutos
parent 93463b3032
commit 04617332a2
2 changed files with 4 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
ALTER TYPE cdb_dataservices_server._redis_conf_params ADD ATTRIBUTE redis_host text;
-- Get the Redis configuration from the _conf table --
CREATE OR REPLACE FUNCTION cdb_dataservices_server._get_redis_conf_v2(config_key text)
RETURNS cdb_dataservices_server._redis_conf_params AS $$

View File

@@ -1,3 +1,5 @@
ALTER TYPE cdb_dataservices_server._redis_conf_params DROP ATTRIBUTE IF EXISTS redis_host;
-- Get the Redis configuration from the _conf table --
CREATE OR REPLACE FUNCTION cdb_dataservices_server._get_redis_conf_v2(config_key text)
RETURNS cdb_dataservices_server._redis_conf_params AS $$