dataservices-api/server/extension/expected/00_install_test.out

31 lines
872 B
Plaintext
Raw Normal View History

2015-11-07 00:22:39 +08:00
-- Install dependencies
CREATE EXTENSION postgis;
CREATE EXTENSION schema_triggers;
CREATE EXTENSION plpythonu;
2015-11-10 18:13:21 +08:00
CREATE EXTENSION cartodb;
CREATE EXTENSION cdb_geocoder;
2015-11-07 00:22:39 +08:00
-- Install the extension
CREATE EXTENSION cdb_geocoder_server;
2015-11-23 18:48:24 +08:00
-- Mock the redis server connection to point to this very test db
SELECT cartodb.cdb_conf_setconf('redis_conf', '{"sentinel_host": "localhost", "sentinel_port": 26739, "sentinel_master_id": "mymaster", "timeout": 0.1, "redis_db": 5}');
cdb_conf_setconf
------------------
(1 row)
-- Mock the varnish invalidation function
-- (used by cdb_geocoder tests)
CREATE OR REPLACE FUNCTION public.cdb_invalidate_varnish(table_name text) RETURNS void AS $$
BEGIN
RETURN;
END
$$
LANGUAGE plpgsql;
-- Set user quota
SELECT cartodb.CDB_SetUserQuotaInBytes(0);
cdb_setuserquotainbytes
-------------------------
0
(1 row)