dataservices-api/server/extension/test/0.1.0/sql/00_install_test.sql

25 lines
745 B
MySQL
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_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}');
-- 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);