data-services/geocoder/extension/sql/00_install_test.sql
2015-12-02 17:31:29 +01:00

20 lines
440 B
PL/PgSQL

-- Install dependencies
CREATE EXTENSION postgis;
CREATE EXTENSION schema_triggers;
CREATE EXTENSION plpythonu;
CREATE EXTENSION cartodb;
-- Mock the quota check
SELECT cartodb.CDB_SetUserQuotaInBytes(0);
-- Install the extension
CREATE EXTENSION cdb_geocoder;
-- Mock the varnish invalidation function
CREATE OR REPLACE FUNCTION public.cdb_invalidate_varnish(table_name text) RETURNS void AS $$
BEGIN
RETURN;
END
$$
LANGUAGE plpgsql;