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
|
2016-02-06 00:57:22 +08:00
|
|
|
CREATE EXTENSION cdb_dataservices_server;
|
2015-11-07 00:22:39 +08:00
|
|
|
|
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}');
|
|
|
|
|
2015-11-11 02:27:05 +08:00
|
|
|
-- 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);
|