Add _redis_conf_params type alter
In order to add or remove redis_host attribute to upgrade/downgrade path
This commit is contained in:
committed by
Mario de Frutos
parent
93463b3032
commit
04617332a2
@@ -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 --
|
-- Get the Redis configuration from the _conf table --
|
||||||
CREATE OR REPLACE FUNCTION cdb_dataservices_server._get_redis_conf_v2(config_key text)
|
CREATE OR REPLACE FUNCTION cdb_dataservices_server._get_redis_conf_v2(config_key text)
|
||||||
RETURNS cdb_dataservices_server._redis_conf_params AS $$
|
RETURNS cdb_dataservices_server._redis_conf_params AS $$
|
||||||
|
|||||||
@@ -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 --
|
-- Get the Redis configuration from the _conf table --
|
||||||
CREATE OR REPLACE FUNCTION cdb_dataservices_server._get_redis_conf_v2(config_key text)
|
CREATE OR REPLACE FUNCTION cdb_dataservices_server._get_redis_conf_v2(config_key text)
|
||||||
RETURNS cdb_dataservices_server._redis_conf_params AS $$
|
RETURNS cdb_dataservices_server._redis_conf_params AS $$
|
||||||
|
|||||||
Reference in New Issue
Block a user