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-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);
|